Sale!

Write a C++ program that asks the user to enter the coupon color and the haircut type (adult, kid) and then determine the haircut charge.

(2 customer reviews)

Original price was: $7.00.Current price is: $5.00.

Download button will appear immediately after successful payment.

Search this document clicking CTRL + F (Win) or ⌘ + F (Mac).

Book your next exam with us and get A+ in entire semester, guaranteed!

Description

Write a C++ program that asks the user to enter the coupon color and the haircut type (adult, kid) and then determine the haircut charge. It is possible that a customers may not have a coupon, in that case, no discount will be offered. You can assume that green, blue colors are represented using 1 and 2 respectively. Write the program so it will generate the output as shown in the sample runs below where user input is in bold. Without coupons adult haircut is 15.50 and the child haircut is 10.50. Sample Run 1 Enter coupon color(θ=no coupon,1=green,2=blue):1 Enter the type of haircut (a=adult ork=kid):a The charge is 12.00

Write a C++ program that asks the user to enter the coupon color and the haircut type (adult, kid) and then determine the haircut charge.

It is possible that a customers may not have a coupon, in that case, no discount will be offered. You can assume that green, blue colors are represented using 1 and 2 respectively. Write the program so it will generate the output as shown in the sample runs below where user input is in bold.

Without coupons adult haircut is 15.50 and the child haircut is 10.50.

Sample Run 1

Enter coupon color(θ=no coupon,1=green,2=blue):1

Enter the type of haircut (a=adult ork=kid):a

The charge is 12.00

You may also like…

Billing details

Additional information

Your order

Product
Quantity
Total
Cart Subtotal $0.00
Order Total $0.00