Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Instructions: Write a C + + program. Document every program block properly. Instructions Morgan's Department Store distributes bonuses to its salespeople after the holiday rush.

Instructions: Write a C++ program. Document every program block properly. Instructions
Morgan's Department Store distributes bonuses to its salespeople after the holiday rush. Table below
shows the bonuses, which are based on full weeks worked during the season and the number of positive
online customer reviews. Write a program that allows a user to continuously enter values for the
number of weeks worked and the number of positive reviews received and displays the appropriate
bonus until the user enter a sentinel value: 99.
Table 9-6 Morgan's Department Store bonuses
Conditions:
1: You Must use a 2-dimensional array (C++) for this assignment to store the table above.
2: You MUST document every program block properly
Sample Run (below):
An example of the program is shown below:
This program will allow a user to continuously enter values for the number of weeks worked and the
number of positive reviews received and displays the appropriate bonus until the user enters a sentinel
value: 99- to stop.
Enter number of full weeks worked or 99 to quit >2
Enter number of positive reviews received >3
Bonus for 2 weeks and 3 positive reviews is 42.0
Enter number of full weeks worked or 99 to quit >99
///*********************************************************************
Starting File: ??**w
Programming Exercise MakeUp Instructions:
Objective: a program that allows a user to continuously enter values for the number of
Weeks
*worked and the number of positive reviews received and displays the appropriate bonus until the
*user enter a sentinel value: 99.
w
Outputs are: Display: state expected output
4
w.
.
afilename: LastnameMakeUp.cpp
@author StudentFname StudentLname
@version 1.0
asince 2024-11-28
*/
//Header Files and/or preprocessors used:
#include ???,x??88888888888888888888888888888
Morgan's Department Store distributes bonuses to its salespeople after the holiday rush. Table below shows the bonuses, which are based on full weeks worked during the season and the number of positive online customer reviews. Write a program that allows a user to continuously enter values for the number of weeks worked and the number of positive reviews received and displays the appropriate bonus until the user enter a sentinel value: 99.
\table[[,Positive Reviews Received],[Full Weeks Worked,0,1,2,3,4 or More],[0,5.00,9.00,16.00,22.00,30.00],[1,10.00,12.00,18.00,24.00,36.00],[2,20.00,25.00,32.00,42.00,53.00],[3,32.00,38.00,45.00,55.00,68.00],[4,46.00,54.00,65.00,77.00,90.00],[5,60.00,72.00,84.00,96.00,120.00],[6 or more,85.00,100.00,120.00,140.00,175.00]]
Table 9-6 Morgan's Department Store bonuses
Conditions:
1: You Must use a 2-dimensional array (C++) for this assignment to store the table above.
2: You MUST document every program block properly
Sample Run (below):
An example of the program is shown below:
This program will allow a user to continuously enter values for the number of weeks worked and the number of positive reviews received and displays the appropriate bonus until the user enters a sentinel value: 99- to stop.
Enter number of full weeks worked or 99 to quit >>2
Enter number of positive reviews received >3
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

AutoCAD Database Connectivity

Authors: Scott McFarlane

1st Edition

0766816400, 978-0766816404

More Books

Students also viewed these Databases questions