Computer Science Homework Help

Columbia Basin College Complete a Registration Process Using C++ Exercise

 

Use a C++ program to solve the following word problem:

There is a fund-raising program for walkers and runners, and they need to complete a registration process. There is a fee and an 8.6% sales tax. First, all participants must answer the following questions:

Are you a runner or a walker?

The program must use a loop to validate their answer to ensure that a response is entered. The next question is as follows:

How old are you?

The program must use a loop to check if it is in the range of ages between 13 and 70.

Furthermore, the program uses the following conditions to calculate the registration fee:

For a runner, the registration fee is $45.5 and $35.0 for a walker.

Also, use the following table to calculate a discount.

Age Percentage of Discount

13-25 10%

26-60 15%

61-70 20%