A salon offers coupons to its customers time to time. Without coupons adult haircut is 15.50 andthe child haircut is 10.50. Coupons that this salon offers are color coded. The following tableshows the color code and discount informationColor code DiscountGreen (code # 1) 3.50 from adult, 2.50 from kidsBlue (code # 2) 2.59 from adult, 1.50 from kidsWrite 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, inthat case, no discount will be offered. You can assume that green, blue colors are representedusing 1 and 2 respectively.Develop a C++ program that implements your algorithmNote: The following link may be useful as you compare strings in this programhttp://www.cplusplus.com/reference/string/string/compare/Name your program as extraCredit1.cpp and Submit the correct program online
CSE100
[Solved] CSE 100 Extra Credit Assignment 1:
$25
File Name: CSE_100_Extra_Credit_Assignment_1:.zip
File Size: 320.28 KB
Only logged in customers who have purchased this product may leave a review.
Reviews
There are no reviews yet.