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.

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

-29%

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!

(2 customer reviews)

Free worldwide shipping on all orders over $50

  • 30 days easy returns
  • Order yours before 2.30pm for same day dispatch
Guaranteed Safe Checkout

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.
$7.00 Original price was: $7.00.$5.00Current price is: $5.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

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