5.1. There are three possible sources of user error in calculate.cpp:
5.2. Write a menu-driven "police sketch artist" program. The program should use four different menus for:
-----
| | ....... \|||||||/
--------- . . | |
(| O O |) (|-0-0-|) (| . . |)
| _\ | | ^ | | > |
|\___/| | --- | |||-|||
----- ----- |||||
|||
Organize your program in such a way that it contains no redundant code.
For each of the user's choices, write a separate function to process
that choice.
5.3. A year is a leap year if it is evenly divisible by 4, unless it is divisible by 100, in which case it must also be divisible by 400. That is, 1996 was a leap year because it is divisible by 4 and not 100, 1997 was not a leap year because it is not divisible by 4, 2000 will be a leap year because it is divisible by 4 and 400, but 2100 will not be a leap year because it is divisible by 4 and 100 but not 400.
Write a LeapYear() function that, given a year, returns true if that year is a leap year, and returns false otherwise. Then write a driver program that tests your function.
5.4. Using the metric library you created in lab 3a, write a menu-driven program that permits the user to select and perform any one of the metric conversions in the library.
Turn In: A hard copy of this grade sheet, attached to hard copies of
Don't forget to clean up your directory when you are all finished...