Question

A company plans to give a monthly bonus to its employees by the following criteria: if...

A company plans to give a monthly bonus to its employees by the following criteria: if the employee’s monthly salary is less than $2,000, the bonus is 30% of the salary; for employees with salaries greater than or equal to $2,000 and less than 3000$, the bonus is $500. For others no bonus is given. Write an algorithm (pseudo code) which will compute and print out the sum for the entered employees’ salaries before the bonus and the sum for salaries after the bonus for a certain month. The system keeps reading the salaries of employees (one salary at a time) until a salary of 0 is entered by the user

Homework Answers

Answer #1

Algorithm (pseudo code)

Step 1: Input NAME,Salary_month=0,Total_salary=0, Salary, Total_bonous=0

Step 2: if (Salary > $2,000) then

Salary = Salary +Salary *0.3 ;

Total_salary=Total_salary+Salary ;

Total_bonous=Total_bonous+Salary *0.3 ;

else if (Salary >= 2000$ and Salary < 3000$) then

Salary = Salary +$500 ;

Total_salary=Total_salary+Salary ;

Total_bonous=Total_bonous+$500 ;

else

Salary = Salary +0 ;

Total_salary=Total_salary+Salary ;

Total_bonous=Total_bonous+0 ;

endif

Step 3: Print “sum for the entered employees’ salaries before the bonus ”, “is $”, (Total_salary-Total_bonous)

Print “sum for salaries after the bonus for a certain month”, “is $”, (Total_bonous)

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
In 2020, Chip, an accomplished professional race car driver, is to receive a signing bonus for...
In 2020, Chip, an accomplished professional race car driver, is to receive a signing bonus for agreeing to drive for Hot-Lap International, a racing team. Hot-Lap agrees to establish a NQDC agreement with Chip to defer the bonus beyond Chip’s peak income producing years. Hot-Lap transfers the bonuses to an escrow agent, subject to the risk of forfeiture to team creditors in bankruptcy, who invests the funds in securities acting as a hedge against inflation. The bonus is deferred until...
Team 5 answer the questions What are 4 key things you learned about the topic from...
Team 5 answer the questions What are 4 key things you learned about the topic from reading their paper? How does the topic relate to you and your current or past job? Critique the paper in terms of the organization and quality. Incentive Systems             In this paper, we will focus primarily on financial rewards that companies use to attract, retain and motivate the brightest and most talented candidates in the labor market. By providing a reward system that...
Using the model proposed by Lafley and Charan, analyze how Apigee was able to drive innovation....
Using the model proposed by Lafley and Charan, analyze how Apigee was able to drive innovation. case:    W17400 APIGEE: PEOPLE MANAGEMENT PRACTICES AND THE CHALLENGE OF GROWTH Ranjeet Nambudiri, S. Ramnarayan, and Catherine Xavier wrote this case solely to provide material for class discussion. The authors do not intend to illustrate either effective or ineffective handling of a managerial situation. The authors may have disguised certain names and other identifying information to protect confidentiality. This publication may not be...
Please answer the following Case analysis questions 1-How is New Balance performing compared to its primary...
Please answer the following Case analysis questions 1-How is New Balance performing compared to its primary rivals? How will the acquisition of Reebok by Adidas impact the structure of the athletic shoe industry? Is this likely to be favorable or unfavorable for New Balance? 2- What issues does New Balance management need to address? 3-What recommendations would you make to New Balance Management? What does New Balance need to do to continue to be successful? Should management continue to invest...
Lance H. and Wanda B. Dean are married and live at 431 Yucca Drive, Santa Fe,...
Lance H. and Wanda B. Dean are married and live at 431 Yucca Drive, Santa Fe, NM 87501. Lance works for the convention bureau of the local Chamber of Commerce, while Wanda is employed part-time as a paralegal for a law firm. During 2016, the Deans had the following receipts: Salaries ($60,000 for Lance, $41,000 for Wanda) $101,000 Interest income—    City of Albuquerque general purpose bonds $1,000    Ford Motor company bonds 1,100    Ally Bank certificate of deposit 400 2,500 Child...
Delta airlines case study Global strategy. Describe the current global strategy and provide evidence about how...
Delta airlines case study Global strategy. Describe the current global strategy and provide evidence about how the firms resources incompetencies support the given pressures regarding costs and local responsiveness. Describe entry modes have they usually used, and whether they are appropriate for the given strategy. Any key issues in their global strategy? casestudy: Atlanta, June 17, 2014. Sea of Delta employees and their families swarmed between food trucks, amusement park booths, and entertainment venues that were scattered throughout what would...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT
Active Questions
  • How can you use Bayes’ theorem in light of new information? In Bayes’ theorem, how does...
    asked 2 minutes ago
  • Which of the following is not one of the four states of a working file? Unchanged,...
    asked 5 minutes ago
  • Assume we have CPU instructions that look like this: load register, address save register, address Where...
    asked 18 minutes ago
  • What is the difference between the following two declarations? char array[] = “Hello World”; char *array...
    asked 33 minutes ago
  • Discuss knowledge and understanding gleaned from The Least Dangerous Assumption and Strategies for Presuming Competence. How...
    asked 34 minutes ago
  • Exercise 13-20 (LO13-3) The owner of Maumee Ford-Volvo wants to study the relationship between the age...
    asked 36 minutes ago
  • Scenario The Department of Administrative Services (DAS) provides a number of services to other departments in...
    asked 44 minutes ago
  • Linear Regressions The number of newly reported crime cases in a county in New York State...
    asked 48 minutes ago
  • Specialty courts have been developed for various categories of crimes and offenders (e.g., mental health, substance...
    asked 53 minutes ago
  • An air-track cart with mass m=0.40kg and speed v0=1.2m/s approaches two other carts that are at...
    asked 53 minutes ago
  • Write a program in C# that reverses a collection and removes elements that are divisible by...
    asked 56 minutes ago
  • A gas pipeline with the thickness of 4mm is to be joint together by using welding...
    asked 1 hour ago