Question: any help with this program? thanks!! Program 3 CS2010 Spring. 2019 25 pts Due: 11:59pm, Wednesday, Mar.13, 2019 Program description: The Adventure Campus Rewards credit

 any help with this program? thanks!! Program 3 CS2010 Spring. 2019any help with this program? thanks!!

Program 3 CS2010 Spring. 2019 25 pts Due: 11:59pm, Wednesday, Mar.13, 2019 Program description: The Adventure Campus Rewards credit card offers cardbolders the opportunity to earm points every time they use the card. Card holders earn 5 points for every $1 spent on entertainment (music, movies, video game rentals and sporting events), 2 points for every $1 spent on food (at restaurants, fast food places and coffee shops) and 1 point for every SI spent on everything else. Cardholders can redeem their earned points for movie reatals (150 points each), pizzas (300 points each) or downloads from iTunes (60 points each). Create a complete C++ project in Visual Studio to find the number of points earned and the type and number of rewards selected by a cardholder for charges made on the card. Use your last name, first initial and pgm3 as the project folder and C++ file name (eg ShortM pem3 and ShortM pgm3.cpp) Inpat: Prompt the user to enter the dollar amount of entertainment purchases, food purchases and all other purchases charged on the Adventure Campus Rewards credit card. Then ask the user to enter a one- letter code indicating the student's first choice for rewards: "M" for movie rentals, "P" for pizzas, T for Tunes downloads Processing: 1. First find the total points earned by a cardholder based on the dollar amount of each kind of purchase. For example, if the user spent $100 on entertainment purchases, $60 on food purchases and $155 on all other purchases, heshe would have earned 775 ponts (5 * $100 + 2S60 + 1 *Si 55). 2. Then look at the students preference for rewards. If a "P is entered, indicating that the cardbolder's first choice for rewards is pizzas then determine how many pizzas he/she may get with the points earned. If there are any points left over, figure out how many movie rentals he/she may get with the remaining points. Figure the number of iTunes downloads with any remaining points For example, if the student eamed 775 points and choose pizzas as the first choice for rewards, he'sbe could get 2 pizzas, I movie rental and 0 iTunes downloads with 25 points left over. If a student enters "M" for movie rentals as his/ber first choice for rewards then figure the number of movie rentals he/she could get first (5 in this case) and the number of iTunes downloads (0 in this case) any remaining points with 25 points left over. If a student enters "I" for iTunes as his/her preference for rewards then just figure the number of iTunes dowaloads he/'sbe could get (12) with 55 points left over Outpst: Test your program with several different sets of values. Do the calculations by hand and compare them to your program results to make sure that your program is working correctly. Here is an example of a program run showing the input and output. Adventure Campus Revards Program Enter dollar amount of your Entertainnent prchases: $100 Enter dollar amount of your Food purchasesi Enter dollar anount of any other purchasess $60 $155 Total number of points earned: Enter your first choice for rewards- (Mjovies, (P)izzas or (1)tunes: P You have earned the followina rewards for vour credit card purchases! 775

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!