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...
-
What is the purpose of matching receiving report and invoice details to purchase orders?
-
Perform a degrees of freedom analysis for the model in Eqs. 2-64 through 2-68. Identify parameters, output variables, and inputs (manipulated and disturbance variables).
-
What key elements should be included in a typical job description?
-
Bailey Corp. just completed the most profitable year in its 25-year history. Reported earnings of $1,020,000 on sales of $8,000,000 resulted in a very healthy profit margin of 12.75%. Each year...
-
Jon and Sue now have their third and last child at the service. Over the last 7 years both parents have been heavily involved in supporting the service as members of the committee and through...
-
The survey plat in the figure shows two lots that form a trapezoid. The measures of the parallel sides are 115.90 ft and 173.00 ft. The height of the trapezoid is 165.25 ft. Find the combined area of...
-
How would financial distress and agency costs affect a firms use of leverage?
-
What is a pro forma income statement?
-
What is an accounting system? Why is it important that a business has an effective accounting system?
-
Why is it necessary to consider these improvements to assess whether the acquisition is attractive?
-
What is the difference between an accounting entity and a legal entity?
-
If ke = r, Under Walter's Model, which of the following is irrelevant? A B C D Earnings per share Dividend per share DP Ratio None of the above
-
The cash records of Holly Company show the following four situations. 1. The June 30 bank reconciliation indicated that deposits in transit total $720. During July, the general ledger account Cash...
-
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...
-
Sketch a hypothetical scatterplot for a sample of size 10 for two random variables with a population correlation of (a) 1.0; (b) -1.0 ; (c) 0.9; (d) -0.5 ; (e) 0.0.
-
Using the data in Exercise 3.3: a. Construct a \(95 \%\) confidence interval for \(p\). b. Construct a \(99 \%\) confidence interval for \(p\). c. Why is the interval in (b) wider than the interval...
-
Explain why the differences-of-means estimator, applied to data from a randomized controlled experiment, is an estimator of the treatment effect.
Study smarter with the SolutionInn App