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 (6) for the current month and the current year should be set to 2021.
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
1200012200015
Example Output
For example, if the current month is June (6) and the current year is 2021, then the output would look like:
The user is 21 years old.
The user is 20 years old.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!