Question: Write a flowchart and C code for a program that does the following: Calls two functions. The first function should display a message and prompt
Write a flowchart and code for a program that does the following:
Calls two functions. The first function should display a message and prompt the user to enter their dog's age. The second function will compute and display the dog's age in human years dog age The second function should receive the dog's age from main into the function definition to be computed.
DisplayMessage:
Use puts function to Welcome user see screenshot example of output
Use puts function to prompt user to enter dog age
Do not receive input for age in this function This should be done from the main program
There will be no return for this function
CalculateAgeint a:
Computea
Display dog age in human years see screenshot example of output
There will be no return for this function
Receive input for age in the main function
An "End of Program" message should be displayed inside of main as the last statement, using a puts function
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
