Exercise 1: The monthly salary of an employee is based on his(her) basic salary and a...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Exercise 1: The monthly salary of an employee is based on his(her) basic salary and a bonus based on the number of years of service. If number of years of service is five years or less, he (she) gets a bonus of 100 SAR per year of service. If years of service exceed 5 years, he (she) gets 100 SAR per year for the first 5 years, and 200 SAR per year for the remaining years. Write a Python program that reads the basic salary and years of service and compute the monthly salary as shown in the sample runs. Note: You need to define the bonus amounts i.e. 100 and 200 SAR as constants. Sample run 1: Enter basic salary: 4500 Enter years of servise: 3 Salary 4800 SAR Slide Type Sample run 2: Enter basic salary: 4000 Enter years of servise: 12 Salary = 5900 SAR Slide Type Exercise 1: The monthly salary of an employee is based on his(her) basic salary and a bonus based on the number of years of service. If number of years of service is five years or less, he (she) gets a bonus of 100 SAR per year of service. If years of service exceed 5 years, he (she) gets 100 SAR per year for the first 5 years, and 200 SAR per year for the remaining years. Write a Python program that reads the basic salary and years of service and compute the monthly salary as shown in the sample runs. Note: You need to define the bonus amounts i.e. 100 and 200 SAR as constants. Sample run 1: Enter basic salary: 4500 Enter years of servise: 3 Salary 4800 SAR Slide Type Sample run 2: Enter basic salary: 4000 Enter years of servise: 12 Salary = 5900 SAR Slide Type
Expert Answer:
Answer rating: 100% (QA)
5 mainpy Constants 1 2 BONUS1 100 3 BONUS 2 200 4 5 I... View the full answer
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these programming questions
-
After reading this article, what financial tips do you think you've learned from this? Discuss....
-
Discussion 7 questions make sure to answer all parts of questions detailed Read the Nasdaq article. Select one of the companies and state why you would be willing to invest in the IPO as part of your...
-
The Crazy Eddie fraud may appear smaller and gentler than the massive billion-dollar frauds exposed in recent times, such as Bernie Madoffs Ponzi scheme, frauds in the subprime mortgage market, the...
-
A card is drawn at random from a deck of 52 playing cards. Find the probability that it is a club or a king.
-
The spool of wire having a mass M rests on the ground at A and against the wall at B. Determine the force P required to begin pulling the wire horizontally off the spool. The coefficient of static...
-
Neuropsychology is a unique subfield that intersects psychology and neuroscience. Explain the basic principles and applications of neuropsychology. How does this specialty contribute to our...
-
Consider the fuel consumption data in Table B.18. For the purposes of this exercise, ignore regressor $x_{1}$. Perform a thorough residual analysis of these data. What conclusions do you draw from...
-
Calculate the random access memory (RAM) in megabytes necessary to store a multidimensional array that is 20 x 40 x 120.This array is double precision, and each value requires a 64-bit word. Recall...
-
Make a linear graph of your experimental data Moving Tension experimental (y-axis) vs. Moving Tension predicted (x-axis). What is the slope m and the slope's uncertainty of your graph? Report your...
-
A major credit card company (call it MasterDebt) receives checks from all different regions in the country on a daily basis. Once these checks are mailed, the time a check spends in the mail (called...
-
For each data set, find the mean, median and mode. 1. 7, 8, 9, 10, 37, 6, 2 2. 90, 95, 80, 65, 50, 60, 65, 85 3. 10, 11, 11, 12, 12, 13, 14, 15, 20
-
Why is a conflict of interest present when compliance officers are involved in the production of credit ratings?
-
In what ways is the Dodd-Frank legislation designed to reduce conflicts of interest?
-
When is it more likely that conflicts of interest will be exploited?
-
Some commentators have attributed the demise of Arthur Andersen to the combination of auditing and consulting activities provided by the firm. Is this assessment correct?
-
Suppose you contribute $20,000 at the beginning of each year into your defined benefit pension plan and the interest rate is 10%. a. After eight years, what will be the total value of the account? b....
-
Far Merchandising is a VAT-registered retailer of office and school supplies. Mr. Miracle, a customer, was issued an invoice for the purchases he made in the total amount of 47,040 on April 25, 2022....
-
When an electric field is applied to a shallow bath of vegetable oil, why do tiny bits of thread floating in the oil align with the field like compasses in a magnetic field?
-
Scott Butterfield is self-employed as a CPA. He uses the cash method of accounting, and his Social Security number is 644-47-7833. His principal business code is 541211. Scott's CPA practice is...
-
Lisa Sizemore, a taxpayer in the 10-15 percent tax bracket, purchased stock as an investment on July 11, 2011. She sold the stock on July 9, 2012, 2 days before qualifying for the long-term holding...
-
Ann hires a nanny to watch her two children while she works at a local hospital. She pays the 19-year-old nanny $125 per week for 48 weeks during the current year. a. What is the employer's portion...
-
You're bouncing up and down on a trampoline. After you have left the trampoline and are moving upward, your apparent weight is A. More than your true weight. B. Less than your true weight. C. Equal...
-
A mountain biker is climbing a steep 20 slope at a constant speed. The cyclist and bike have a combined weight of800 N. Referring to Figure 5.11 for guidance, what can you say about the magnitude of...
-
Rank in order, from largest to smallest, the size of the friction forces in the five different situations (one or more friction forces could be zero). The box and the floor are made of the same...
Study smarter with the SolutionInn App