Get Instant Help From 5000+ Experts For
question

Writing: Get your essay and assignment written from scratch by PhD expert

Rewriting: Paraphrase or rewrite your friend's essay with similar meaning at reduced cost

Editing:Proofread your work by experts and improve grade at Lowest cost

And Improve Your Grades
myassignmenthelp.com
loader
Phone no. Missing!

Enter phone no. to receive critical updates and urgent messages !

Attach file

Error goes here

Files Missing!

Please upload all relevant files for quick & complete assistance.

Guaranteed Higher Grade!
Free Quote
wave
C++ Program for Salon Haircut Charge Calculation
Answered

Color coded coupons and discount information

A salon offers coupons to its customers time to time. Without coupons adult haircut is 15.50 and the child haircut is 10.50. Coupons that this salon offers are color coded. The following table shows the color code and discount information

Color code Discount
Green (code # 1)

3.50 from adult, 2.50 from kids

Blue (code # 2)

2.59 from adult, 1.50 from kids

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.


Develop a C++ program that implements your algorithm Note: The following link may be useful as you compare strings in this program

http://www.cplusplus.com/reference/string/string/compare/


Name your program as extraCredit1.cpp and Submit the correct program online

support
close