Question: Using Coral Pseudocode, design the logic for a program based on the following prompt: Design the Main ( ) program to: Create the logic for
Using Coral Pseudocode, design the logic for a program based on the following prompt:
Design the Main program to:
Create the logic for the Main program that continuously accepts a users birth month and year.
Verify the month entered by the user is valid and exit the loop when an invalid entry is given.
Test this out by using birth dates both before and after the month of the current month.
Declare variables that have the value of the current month and year should be set to June for the current month and the current year should be set to
Pass the Users birth month and year as well as the current month and year in the function call.
Displays the result of the calculation with the output "The user is X years old."
Design the ageCalc function to:
Accept the arguments in the parameters from the function call in the Main function.
Return back the calculated age to the calling program.
Example Input
Example Output
For example, if the current month is June and the current year is then the output would look like:
The user is years old.
The user is years old.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
