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
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...