Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Morgan State University Booksellers has a book club thatawards monthly paychecks

ID: 3614240 • Letter: M

Question

Morgan State University Booksellers has a book club thatawards monthly paychecks to its customers based on the number ofbooks purchased each month. The paycheck are awarded asfollows: -If a customer purchase 0 books, s/he earns a 0% payback -If a customer purchase 1 books, s/he earns a 2% payback -If a customer purchase 2 books, s/he earns a 3.5%payback -If a customer purchase 3 books, s/he earns a 5% payback -If a customer purchase 4 books, s/he earns a 10%payback -If a customer purchase more than 4, s/he earns a 15%payback here is a table to explain books bought      TotalSpent      Payback%      PaybackAmount    1                        $10                  2%                     $2.00    4                        $250               10%                     $25.00    10                     $1000               15%                    $150.00 Write a program that asks the user to enter the number ofbooks purchased (assume a 0/zero or positive integer is entered)& the total amount spent at the store this month. Then display the 'Payback Amount' awarded. Ex : "You willrecieve a $150 reward check for the $1000 spent on 10 books lastmonth. We value your support and please come again." MUST use a 'switch' statement. Morgan State University Booksellers has a book club thatawards monthly paychecks to its customers based on the number ofbooks purchased each month. The paycheck are awarded asfollows: -If a customer purchase 0 books, s/he earns a 0% payback -If a customer purchase 1 books, s/he earns a 2% payback -If a customer purchase 2 books, s/he earns a 3.5%payback -If a customer purchase 3 books, s/he earns a 5% payback -If a customer purchase 4 books, s/he earns a 10%payback -If a customer purchase more than 4, s/he earns a 15%payback here is a table to explain books bought      TotalSpent      Payback%      PaybackAmount    1                        $10                  2%                     $2.00    4                        $250               10%                     $25.00    10                     $1000               15%                    $150.00 Write a program that asks the user to enter the number ofbooks purchased (assume a 0/zero or positive integer is entered)& the total amount spent at the store this month. Then display the 'Payback Amount' awarded. Ex : "You willrecieve a $150 reward check for the $1000 spent on 10 books lastmonth. We value your support and please come again." MUST use a 'switch' statement.

Explanation / Answer

please rate - thanks #include #include using namespace std; int main() {int books; double spent,rate; coutbooks; coutspent; switch(books)    {case 0: rate=0/100.;            break;     case 1: rate=2/100.;            break;     case 2: rate=3.5/100.;            break;           case 3: rate=5/100.;            break;     case 4: rate=10/100.;            break;     default: rate=15/100.;            break;     } cout
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote