2
answers
1
watching
204
views
14 Oct 2022
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++
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++
kapikad1451Lv6
25 Dec 2022