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

Using the #includes <iostream>, <iomanip>,<fstream> and <string> to complete the

ID: 3615598 • Letter: U

Question

Using the #includes <iostream>, <iomanip>,<fstream> and <string> to complete the followingprogram.

You just got a job at SellUAnything Inc. and they want you towrite a program that will analyze their sales force for meetingquotas over the last year. Based on the results of thisanalysis they can determine what actions they should take withtheir salespeople.

SellUAnything Inc. has the last year’s informationrecorded by salesperson by month which you'll use asinput. What they what to know is if there appears to be aselling problem with not meeting total yearly quotas and whichsalesperson is the worst offender. They've identified that if morethan 20% of the sales force did not meet yearly quotas they shouldimplement a "Sell IT! OR Else Campaign" as an incentive. Provide aprogram that

-          reads inthe number of salespeople

-          reads inthe quota for that salesperson

-          reads in12 actual monthly sales counts for that salesperson

-         determines number of months the salesperson did or did not meetquota

-          decideswhether a campaign should be mounted

-         identifies the worst salesperson for meeting quotas

You will use prog3a.dat as input, this file has the followingformat: [call it Fig. 3a]

number of salespeople - int

salesperson name - string

quota - int,

12 actual monthly sales - int

Example output from prog3a.dat: [call it Fig. 3b]

Total Salespeople: 4

Salesperson       Quota                 Monthly Sales                  Under   =>

MBanner          35        35 35 35 35 35 35 3534 35 35 35 36     1       11

BHunter            40        20 40 70 35 45 78 3456 73 15 41 55     4     8

GJorgensen       60        62 47 68 40 53 62 8818 15 72 12 19      7     5

TSmith              25        66 32 41 89 27 25 2933 54 27 32 45     0       12

      

A "Sell IT! OR Else Campaign" must be mounted - 75% did notmake yearly quotas Consider firing: GJorgensen

Hint: use the Olympics1.cpp and Olympics2.cpp as examples alsolook at page 250 to 259 Programming Example in your text.

          

Program requirements:

1.    Provide specifications detailing: [ascomments at the start of your program. ]

Program Name: Program 2

Author: {your name}

Narrative: (brief description of what the program is about)

Inputs:      (what you are supplying asinput or reference a Figure #)  

Outputs:   (what you are supplying as output orreference a Figure #)

Constants or Constraints:   (what you must adhere toor be limited by)    

Operations: (logical series of steps - written in English,not C++)

2.   Provide your source code

Note: Make sure you re-run your program usingprog3b.dat as input to verify that it actually works becauseI will. J

Explanation / Answer

please rate - thanks #include #include #include #include using namespace std; int main() {intnum,quota,i,j,under,over,month,worst=-1,year,total,madequota=0; string name,worstname; double percent; ifstream in; ofstream out; char filename[30]; coutfilename; in.open(filename);       if(in.fail())                { coutname;    in>>quota;    year=quota*12;    out
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