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

1 Introduction A fishing company, BaitFishing.com, is looking to implement a new

ID: 3610910 • Letter: 1

Question

1 Introduction
A fishing company, BaitFishing.com, is looking to implement a newscheme to pay its fisherman
employees. The fishermen each work for a maximum of 26 weeks attime. Currently, a fisherman
is paid a weekly salary according to average weight of the fish heor she caught during their last
expedition at $1/lbs. For example, if a fisherman caught 100 poundsof fish per week during their
last expedition, they would be paid $100 per week during theircurrent expedition.
Unfortunately, the fishermen are quite unhappy with their paymentscheme. The fishermen may
do extremely well several weeks of their expeditions but decide notto work on other weeks. This
results in a negative effect in their weekly salaries, even thoughthey may return with many pounds
of fish.

2 Problem
BaitFishing.com has proposed a new payment scheme for theirfisherman that you are to implement.
The company has agreed not to incorporate weeks that the fishermandecided not to work in computing the average weight of the caughtfish. However, as a compromise, the company will, instead,
drop both the smallest and the largest weight of sh caught in anexpedition before performing the
average calculation. The company will also decrease the pay rateper pound by 10%.
As an example, if fisherman Joe sailed on a 5 week expedition andcaught 1000, 32, -1, 743, and
432 pounds of fish each week, respectively, where -1 represents aweek Joe did not work, his weekly
salary would be $528.75.
3 Requirements
You are to write a complete C++ program to simulate the companysnew payroll scheme before it
is implemented in production. You will run the simulation for areasonable, predetermined amount
of runs (sample size). Your program will prompt the user for thename of a fisherman, perform the
simulation, and then return the following information:

The name of the fisherman.
The fishermans weekly pay.
The number of weeks of the fishermans last expedition.
The smallest discarded weight.
The largest discarded weight.

Explanation / Answer

please rate - thanks you can fix the input if necessary   -- note the extraline of output #include #include using namespace std; int main() {string name; double salary; int max=0,min=0,total,weeks,n,hours[52],exp,i,j; coutn; for(i=0;i