Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

in python only please, thank you Lab 3 SUBMIT original code in Python to solve the problem below. Please be aware that copying and pasting

in python only please, thank you image text in transcribed
image text in transcribed
Lab 3 SUBMIT original code in Python to solve the problem below. Please be aware that copying and pasting code from any other source other than code you have explicitly written on your own is considered plagiarism. If you receive help, that is fine (document help in the comments of your code) however you need to write your own code, name your own variables, and comment your own code. Students turning in the exact same work as another student will all be given zeros. Plagiarism is not tolerated, and students found to be plagiarizing will be given a zero and reported to the University with the possibility of termination of the class and degree program. Write a program that will allow a manager to determine and display the total sales for the department. The manager will enter the sales goal for the month. Then the manager will enter (input) the sales for each salesperson for four (4) weeks. After each salesperson, the program should ask the manager if there is another. Once all the sales are entered the program will accumulate the total sales for the department. Display the total number of employees in the department and total sales for the department. The manager earns a 2% bonus on all sales for the month. If the total department's sales exceed the sales goal, then the manager's bonus is 5% of the total sales. Determine and display the sales goal and manager's bonus amount. Hint: two loops are required - use a loop to allow for another salesperson's monthly sales to be entered and a second loop for the four (4) weeks of sales of the individual salesperson. Some sample input/Output is provided on the next page. The output is based on the input for two (2) employees one with weekly sales of (1200,1300,1250,2250) and second salesperson's sales (2399,2103,1900,1000). Sales goal for the month $11000. You do not need to round or truncate your output Save your program as Lab3.py and upload your source file to the appropriate dropbox in GradeScope, NOT D2LI Input Sales goal: 11000 Salesperson 1 week 1: 1200 Salesperson 1 week 4:2250 Another salesperson?: y Salesperson 2 week 1: 2399 Salesperson 2 week 4: 1000 Another salesperson?: n Output Department Monthly Sales and Commission Number of Employees: 2 Department Sales Goal: $11000 Total Sales: $13,402.00 Mgr. Bonus: $670.10

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

Step: 3

blur-text-image

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

Oracle Database 19c DBA By Examples Installation And Administration

Authors: Ravinder Gupta

1st Edition

B09FC7TQJ6, 979-8469226970

More Books

Students also viewed these Databases questions