For this assignment, you are two write two small programs that prompt the user for numeric values, perform computations on those values, and display the (formatted) results.
Write a C++ program called ages.cpp that asks for a person's age (an integer) and prints out that age using different units of time. In particular, the program should print out the person's age in months, in days, in hours, in minutes, and in seconds. To simplify matters, you may ignore leap years and assume that every year is 365 days long. For example, if the user enters 20 for their age, the output of the program should appear as:
Hint: use separate variables for each of the intermediate numbers. For example, once you have computed the number of days, it is fairly simple to compute the number of hours (24 * days); then minutes (60 * hours) and seconds (60 * minutes).
Write a C++ program called grades.cpp that can be used to compute your average for this course. The program should prompt the user for their quiz average, homework average, test1 score, test 2 score, and final exam score. Using the weightings posted in the class syllabus, the program should compute and display the overall average for the course (with 1 digit to the right of the decimal place). For example,
You should use constants for the various weightings so that changing any of the weights would be simple.