Question: C++ Programming In this project you will be calculating how much money a vet visit will cost for a particular animal. 1) First, prompt the

C++ Programming

In this project you will be calculating how much money a vet visit will cost for a particular animal.

1) First, prompt the user for their name (the person paying the bill, full name).

2) Prompt the user for the name of their animal (string including spaces).

3) Prompt the user for the weight of their animal (in lbs, as a double).

4) Then give the user a menu to select what type of animal they have. Example menu below:

C: Cat

D: Dog

O: Other

Which type of pet do you have(C,D,O):

Now you have all necessary information from the user, so you need to verify inputs and calculate the cost. The cost for a visit is based on what type of animal and whether it is a small/medium/large variety. In addition, there is a maximum size for each animal at which point you will deny service.

The range for animals is as follows:

Small/Medium/Large

Dog: 30/60/240

Cat: 5/10/50

Other: 100/500/6000

To interpret these numbers, for example a small dog is from 0-30, a medium dog is from 30-60, a large dog is anything from 60-240. Over 240, you should deny service.

The cost for this visit per animal is then...

Dog: $45/90/135

Cat: $30/60/90

Other: $15/$100/$200

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!