Reference no: EM13939555
I need to write a program to produce a sales report similar to the one below that indicates individual percentage contribution by each employee. The program must allow the user to enter a user id number and sales amount for up to 10 employees, but must allow fewer to be entered if desired, stopping input when the user enters the value zero for an employee id number.
Emp.ID $ Sales % Sales
-------------------------
p12345 $3000.00 30%
24681 $1000.00 10%
35791 $4000.00 40%
48484 $2000.00 20%
-------------------------
Total: $10000.00 100%
My output window should be similar to the following:
Employee ID Number (0 when done)? 12345
Sales volume for this period? $ 3000.00
Employee ID Number (0 when done)? 24681
Sales volume for this period? $ 1000.00
Employee ID Number (0 when done)? 35791
Sales volume for this period? $ 4000.00
Employee ID Number (0 when done)? 48484
Sales volume for this period? $ 2000.00
Employee ID Number (0 when done)? 0
User input complete.
EMPLOYEE SALES WITH PERCENTAGE BREAKDOWN
Emp.ID $ Sales % Sales
-------------------------
12345 $3000.00 30%
24681 $1000.00 10%
35791 $4000.00 40%
48484 $2000.00 20%
-------------------------
Total: $10000.00 100%
Press any key to continue...
I need to declare 3 arrays. The first array will hold the employee ID. The second array will hold the amount of sales for that employee. Finally, the third array will hold the percentage of sales for each employee.
The percentage sales for each employee should be the last thing to be calculated. You have to read the ID and the sales amount first, and as you do that, you accumulate the sales of each employee to a total. To get the percentage of each employee's sales, use the following formula:
Percentage = 100 * Sales Amount/Total Sales
I need to calculate the percentage, add the percentage to a total as well, so that you can print it at the bottom of your sales report table.
How familiarity with the system aids in cancer management
: Give an overview of the lymphatic system. Decribe the anatomical tissues and organs that comprise the lymphatic system.
|
Which is an advantage of federalism
: This system creates some level of consistency (across the U.S. and Oregon) and standards, which is an advantage of federalism, but also prevents local governments from responding directly to the needs of their community, and could result in a pat..
|
Technical expertise in effective leadership
: Communication skills are secondary to technical expertise in effective leadership.
|
Reward-to-risk ratios for stocks
: Stock Y has a beta of 1.6 and an expected return of 16.6 percent. Stock Z has a beta of .8 and an expected return of 9.4 percent. If the risk-free rate is 5.1 percent and the market risk premium is 6.6 percent, the reward-to-risk ratios for stocks Y ..
|
Calculate the percentageand & add the percentage to a total
: I need to declare 3 arrays. The first array will hold the employee ID. The second array will hold the amount of sales for that employee. Finally, the third array will hold the percentage of sales for each employee.
|
How much will the cost of direct labor increase
: Further suppose that production for the next year is expected to increase by an additional 500 units. By how much will the cost of direct labor increase? Cost of supervision?
|
Post exercise findings and recommendations
: 1. How do you plan to manage post exercise findings and recommendations? How will they be reported to the stakeholders? What will the governance structure be? THIS QUESTION NEEDS TO IDENTIFY AND DESCRIBE OUTCOME IMPLEMENTATION PROCESSES
|
Show an elevated risk for cystic fibrosis in her children
: The two main organ systems affected by cystic fibrosis are the respiratory and digestive systems. What is the common ground between these two seemingly dissimilar systems? Why are both affected in cystic fibrosis?
|
Injecting huge liquidity
: We have the X bond which has a duration of 4, a ytm of 12% and a maturity of 25 years. The central bank is injecting huge liquidity, and there is no fear of inflation. If the yields alter by 100 basis points, what would the price change be? If the yi..
|