more
more

More Exercises

You may work on these in any order.

  1. Design your own ASCII art dinosaur. Keep it somewhat simple: ten output lines or fewer.
     
     
  2. Write a program that takes two command-line arguments, one for x and another for y,
    1. computes the Euclidean distance between that point in 2D space and 0.
    2. converts from provided Cartesian coordinates to polar coordinates.

  3. Write a program that takes two command-line arguments, converts both to integer and then prints out the result of all operations possible between them. Your program should echo the operation with the command line arguments and the result for each operation one per line. For example, if a user entered 2 and 4...
                     2 + 4 evaluates to 6
                     2 * 4 evaluates to 8
                     etc...