UMBC CMSC104 | CSEE | UMBC |
Since you are not at that percentage now, you will have to keep trying ages until you get there, so use a loop and keep adding one to both ages until you get to the goal.
You must make sure that all ages are greater than zero, that all ages are less than some value (maybe 150 or something reasonable), and that the parent is older than the child. If the ages are not valid, then make the user re-enter the ages.
You must use at least these functions for the following:
What is your age? 20 What is yor parent's age: 40 When you are 60, you will be 75% of your parent's age.
Documentation | 25 points |
Correct Results | 25 points |
Correct Sytle | 25 points |
Other | 25 points |
You will lose 5 points if you do not name the file correctly.
You will lose 5 points if you email the project instead of submitting
it via Blackboard.
You will lose 5 points if the prompt is not on the next line.
You will lose 5 points if you have less than four functions (not counting main).
/*****************************************************/ /* Program Header Block */ /* Filename: 6789prj3.c */ /* Name: Ima Student */ /* SSAN: 6789 */ /* Date: 28 Oct 2003 */ /* Course/section: CMSC-104/0102 */ /* Description: */ /* Analysis: */ /* Input: */ /* Output: */ /* Constraints: */ /* Formulas: */ /* Assumptions: */ /* Design: */ /* (Your psuedocode goes here.) */ /* */ /* Notes: (As needed.) */ /*****************************************************/
/*********************************************************** * Function name: function_name * * Description: (Your function psuedocode goes here) * * Input Parameters: Name and data type of each parameter. * * Return Value: Data type and description of what * * the return value is. * ***********************************************************/
UMBC CMSC104 | CSEE | UMBC |