2
answers
1
watching
204
views

We would like to create a program that asks the user how many family members they have and what are their names/roles (like: Jeff or Father). Then, the user is going to insert the family members' ages one by one.
If the user inserts wrong numbers such as "-5" for one of the family members we need to eliminate the inserted number and ask the user to re-insert it. If the user inserts someone's age more than two times wrongly, our program recognizes the user as a robot and spam and will not allow the user to continue anymore.


Finally, the user is going to print the family members in a sorted way from the oldest family member to the youngest one with their names and their ages. answer in c++

For unlimited access to Homework Help, a Homework+ subscription is required.

Unlock all answers

Get 1 free homework help answer.
Already have an account? Log in
Already have an account? Log in

Related questions

Weekly leaderboard

Start filling in the gaps now
Log in