Question: Write a program to behave exactly as shown with these 5 sample runs. ( no global variables or global code other than a call to

Write a program to behave exactly as shown with these 5 sample runs. (no global variables or global code other than a call to main) The user input is shown in bold type, but your program does not have to make anything bold. Your program should have at least 2 functions, including a main() function (no global variables or global code other than a call to main). Your program should ask the user how many siblings they have, input that value, and output the appropriate response to make the program behave as shown below, along with the part asking for the names of your siblings, if appropriate. (You don't need to keep or do anything with the names. Just input them.) The sample output is intended to demonstrate ranges of behavior. So all negative inputs should produce output like shown in the first example, and all inputs greater than 3 should produce output like shown in the last example. Similarly, all inputs between 1 and 3 should produce output like shown for those numbers. Remember to include comments at the top of the program, and with each function.
 Write a program to behave exactly as shown with these 5

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 Databases Questions!