More Exercises
You may work on these in any order.
-
Design your own ASCII art dinosaur.
Keep it somewhat simple: ten output lines or fewer.
-
Write a program that takes two command-line arguments,
one for x and another for y,
- computes the Euclidean distance between that point in 2D space and 0.
- converts from provided Cartesian coordinates to polar coordinates.
-
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...