Question: QUESTION 1 Problem 1 (10 points) Write a complete C++ program that asks the user to enter their age and the number of pets that

 QUESTION 1 Problem 1 (10 points) Write a complete C++ program

QUESTION 1 Problem 1 (10 points) Write a complete C++ program that asks the user to enter their age and the number of pets that they have at home. A legal age must be between 1 and 100 (inclusive). If the user enters an illegal age the program should print I don't believe you! Otherwise if the number of pets is divisible by the age (without a remainder) the program should print That is a lot of pets. Here is a sample to show how the program rune. Enter the your age and number of pets: 20 200 That is a lot of pets. TT T Arial 3 (12pt) TE Path: Words:0

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!