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...
CSE 231                                         &n
CSE 231                                                                                                                        Fall 2019 Project #2 ## Language Should be Python. Assignment Specifications The program will compute and display information for a company which rents vehicles to its customers. For a specified customer, the program will compute and display the amount of money charged for that customer’s vehicle rental. The program should start by asking the user if he wants to continue. The answer is ‘Y’ for yes or ‘N’ for no. You can check the value with Boolean expressions such...
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