mercredi 21 novembre 2018

How to solve this question using for loop?

I am learning c++ and I am new to it. I am currently learning c++ and I am stuck on the looping part. This question is driving me crazy. I have no idea on how to make this program. Please help and thank you in advance.

Write a program for JumpZone playground. JumpZone is a fun place for kids of all ages (1- 100) who can come and have fun. Group rates are available and pricing depending on the jumper’s age. You also offer promo codes on-line. Your program should accommodate the following requirements.

• Your program should greet the user and introduce your company.

• Ask how many jumpers will participate in your group.

• Ask the age of each jumper and assign admission price according to the following chart.

• Ask each user if they need socks. Socks are $2 extra. Age of Jumper Admission Fee

Under the age of 1 Free but not allowed to jump. (Provide a message)

1 to 4 years $9

5 to 16 years $15.75

17 to 59 years $22.50

Over 60 years old $12.25

• Calculate the total cost of group including any extra socks.

• Ask if the group has a valid promo code and apply it.

• Calculate the amount of tax and the final cost for the group’s time at JumpZone.

Aucun commentaire:

Enregistrer un commentaire