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
Yizhe Gao –
Phenomenal job done!!!
David Leedberg –
Incredibly concise, yet detailed, answer to the question that had me stumped. After receiving the help I so desperately needed, I was like, ‘oh my goodness, I’m an idiot!’ But I mean that as a compliment to my assigned answer specialist. I really really appreciated the prompt service and excellent breakdown of the solution. You really can’t put a price on that, but you guys did, and it was so very worth every penny.