Base Salary Commission Years 0-5 Base Salary $ 9,000 Sales Commission 0-$3,999.99 $1000 6-11 $12,000 $4,000.00...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Base Salary Commission Years 0-5 Base Salary $ 9,000 Sales Commission 0-$3,999.99 $1000 6-11 $12,000 $4,000.00 11,999.99 $2000 12-17 $15,000 $12,000.00 15,999.99 $5000 18-29 >=30 $22,000 $16,000.00 23,999.99 $8000 $26,000 $24,000.00-27,999.99 $12,000 >=$28,000 $15,000 Your programs should prompt the user to enter employee's name, the number years the employee has worked at the company (store the years worked as a whole number), confirm that the user entered a number >= 0 (if not allow the user to enter again), then determine the base salary using an if-elif-else structure. Next your programs should prompt the user to enter the sales for the previous quarter (store the value as a floating point number) confirm that the user entered a number >0 (if not allow the user to enter again), then determine the commission using another if-elif-else structure. Once the base salary and commission had been determined, your program should sum these two values and display the total salary using a comma notation. Design your program to minimize the number of relational operators used. Store the results of arithmetic expressions in variables, do not include arithmetic expressions in print statements. Base Salary Commission Years 0-5 Base Salary $ 9,000 Sales Commission 0-$3,999.99 $1000 6-11 $12,000 $4,000.00 11,999.99 $2000 12-17 $15,000 $12,000.00 15,999.99 $5000 18-29 >=30 $22,000 $16,000.00 23,999.99 $8000 $26,000 $24,000.00-27,999.99 $12,000 >=$28,000 $15,000 Your programs should prompt the user to enter employee's name, the number years the employee has worked at the company (store the years worked as a whole number), confirm that the user entered a number >= 0 (if not allow the user to enter again), then determine the base salary using an if-elif-else structure. Next your programs should prompt the user to enter the sales for the previous quarter (store the value as a floating point number) confirm that the user entered a number >0 (if not allow the user to enter again), then determine the commission using another if-elif-else structure. Once the base salary and commission had been determined, your program should sum these two values and display the total salary using a comma notation. Design your program to minimize the number of relational operators used. Store the results of arithmetic expressions in variables, do not include arithmetic expressions in print statements.
Expert Answer:
Related Book For
Posted Date:
Students also viewed these programming questions
-
can someone solve this Modern workstations typically have memory systems that incorporate two or three levels of caching. Explain why they are designed like this. [4 marks] In order to investigate...
-
This assignment requires you to complete the 2022 tax reporting for a fictional woman named Anna Smith. Question 1 T1 - step 4 - line 66 This is Anna's taxable income Answer: Question 2 T1 - step...
-
Which of these situations would require auditors to append an emphasis- of- matter paragraph about consistency to an otherwise unmodified opinion? a. Entity changed its estimated allowance for...
-
When conducting a systems conversion audit, why does the auditor need to test the data details between the old and the new master files in both directions, that is, from old to new and from new to...
-
Draw the influence lines for (a) The moment at C, (b) The reaction at B, and (c) The shear at C. Assume A is pinned and Bis a roller. Solve Prob. 61 using the Muller-Breslau principle. IB 10 ft 10...
-
What do you like best about working at this company?
-
On June 1, Cindy Godfrey started Divine Designs Co., a company that provides craft opportunities, by investing $12,000 cash in the business. Following are the assets and liabilities of the company at...
-
Use the attached image and SQL DDL Commands to query the appropriate tables and populate with four rows of data. Please include explanation for script. CUSTOMER PK CustomerID CustomerName Address...
-
Assume we have a $500,000 mortgage at 3.5% original interest rate, with a 30- year term and monthly payments. The interest rate can be adjusted at the end of each year, and we assume the rate...
-
The following is the unadjusted trial balance for Panorama Resort Inc. at its year end, December 31, 2018. The company adjusts its accounts annually. Debit Credit Cash $ 42,580 Accounts receivable...
-
Financial Indicators/Ratios 2018 2017 Current ratio ? 2.92 : 1 Acid test ratio ? 1.28 : 1 Debtors collection period ? 16 days Creditors payment period ? 27 days Inventory turnover rate ? 24...
-
What would the basic and diluted earnings per share for XYZ for 2024 be? 1. On January 1, 2024, XYZ Company had 200,000 shares of $0.25 par common stock outstanding. On May 1, 2024, XYZ sold 30,000...
-
Use the following information for the Exercises below. [The following information applies to the questions displayed below.] Turner, Roth, and Lowe are partners who share income and loss in a 1:4:5...
-
When do we know that a city is "officially" bankrupt? When contributions to employee health plans can no longer be made When the city cannot pay bondholders on interest or retirement costs When there...
-
1) If the pattern on the screen of the oscilloscope appears to be unstable, i.e., "running" uncontrollably horizontally, which of the following group of controls would you first suspect needs...
-
From the choice of simple moving average, exponential smoothing, and linear regression analysis, which forecasting technique would you consider the most accurate? Why? please write it in word...
-
Why is it necessary to make adjustments for intragroup transactions?
-
Assume that Maggi in BE8-6 will be combined with its parent company that will present consolidated financial statements using the Canadian dollar. How will the bank account be presented for purposes...
-
A group of five successful business people were awarded the franchise for one of two new expansion teams in the North American Sports League (NASL). The professional sports franchise was named the...
-
The transfer function of a dynamic system is given by \[G(s)=\frac{s+1}{4 s^{4}+5 s^{3}+2 s^{2}+s+6} \] a. Using Routh's stability criterion, determine the stability of the system. b. Using MATLAB,...
-
Figure 10.40 shows a negative feedback control system. a. Design a P controller such that the damping ratio of the closed-loop system is 0.5 . b. Estimate the rise time, overshoot, and \(2 \%\)...
-
Consider the feedback system shown in Figure 10.26. a. Using Routh's stability criterion, determine the range of the control gain \(K\) for which the closed-loop system is stable. b. Use MATLAB...
Study smarter with the SolutionInn App