Second GSOC Exercise
Questions
-
Write a program that given the time of the day (hours, minutes) returns the angle between the hands on a clock. (outputs 0 because the hands are parallel.)
-
Write a program that reverses a string in place (UX Tip: if spaces are included, remove them).
-
Now write a routine that reverses each word in a string (words are characters separated by spaces)
-
Write a program that will sort characters in a string in ascending or descending order. (UX Tip: if spaces are included, removethem)
-
Write a program that will display all prime numbers from 1 - 500. (bonus: make the range customizable)
-
If the above is recursive, make non recursive and vice versa.
-
Write a program that will determine the second lowest and greatest numbers in an array.