Question

a pseudocode/algorithm for giving all employees in an industry a cost-of-living wage increase of 2.3%. Assume...

a pseudocode/algorithm for giving all employees in an industry a cost-of-living wage increase of 2.3%. Assume that the payroll includes all current employees

Homework Answers

Answer #1

Algorithm updatewage

this algorithm reads payroll file and updates each cost of living wage employee by increasing it by 2.3% for all current employees

Pre nothing

Post For each employee, cost-of-living wage is increased by 2.3%

Return nothing

1. loop(not end of the file)

  1. read an employee record
  2. set newLivingWage to livingWage+(livingWage*2.3/100)
  3. update livingWage with newLivingWage in the record
  4. save back the updated record to the file

2. end loop

end updatewage

  • The above algorithm,reads payroll file line by line.
  • Each line represents an employee payroll record.
  • It takes the current living wage from the record and calculates the new living wage by increasing it by 2.3%.
  • Then updates the living wage with new living wage in the record
  • Then saves the updated record back to the payroll file.

Hope this is helpful

Please please uvpote it helpful and please dont downvote

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
Write a pseudocode algorithm for giving all employees in a company a cost-of-living wage increase of...
Write a pseudocode algorithm for giving all employees in a company a cost-of-living wage increase of 3.2%. Assume that the payroll file includes all current employees.
Which is the correct answer Assume a purely competitive decreasing-cost industry is initially in long-run equilibrium,...
Which is the correct answer Assume a purely competitive decreasing-cost industry is initially in long-run equilibrium, producing 6 million units at a market price of $25.00. Suppose that in increase in consumer demand occurs. After all economic adjustments have been completed, which output and price combination is most likely to occur? A. 6.5 units at a price of $26.75 B. 7 units at a price of $23.50 C. 6 units at a price of $24.00 D. 5.5 units at a...
1. CPI inflation overstates increases in the cost of living A. but its impact on government...
1. CPI inflation overstates increases in the cost of living A. but its impact on government budget is insignificant as both taxes and expenditures are tied to the index. B. because the index is subject to substitution bias but not quality bias. C. because the index is subject to quality bias but not substitution bias. D. by​ 1% per​ year, or perhaps even higher. 2. The CPI is calculated as A. The current cost of a fixed market basket of...
Use the information in the next paragraph to answer this question and Question 2: Assume you...
Use the information in the next paragraph to answer this question and Question 2: Assume you are the president of a division of a large organization. Your division has not been as profitable as required by the home office. You know the home office is going to close the division unless your division shows a profit margin of 25% this year, well above the industry average. It will be difficult if not impossible to reach this goal in the current...
TufStuff, Inc., sells a wide range of drums, bins, boxes, and other containers that are used...
TufStuff, Inc., sells a wide range of drums, bins, boxes, and other containers that are used in the chemical industry. One of the company’s products is a heavy-duty corrosion-resistant metal drum, called the WVD drum, used to store toxic wastes. Production is constrained by the capacity of an automated welding machine that is used to make precision welds. A total of 2,200 hours of welding time is available annually on the machine. Because each drum requires 0.4 hours of welding...
TufStuff, Inc., sells a wide range of drums, bins, boxes, and other containers that are used...
TufStuff, Inc., sells a wide range of drums, bins, boxes, and other containers that are used in the chemical industry. One of the company’s products is a heavy-duty corrosion-resistant metal drum, called the WVD drum, used to store toxic wastes. Production is constrained by the capacity of an automated welding machine that is used to make precision welds. A total of 2,000 hours of welding time is available annually on the machine. Because each drum requires 0.4 hours of welding...
Internal and External Linkages, Strategic Cost Management Maxwell Company produces a variety of kitchen appliances, including...
Internal and External Linkages, Strategic Cost Management Maxwell Company produces a variety of kitchen appliances, including cooking ranges and dishwashers. Over the past several years, competition has intensified. In order to maintain—and perhaps increase—its market share, Maxwell’s management decided that the overall quality of its products had to be increased. Furthermore, costs needed to be reduced so that the selling prices of its products could be reduced. After some investigation, Maxwell concluded that many of its problems could be traced...
What tools could AA leaders have used to increase their awareness of internal and external issues?...
What tools could AA leaders have used to increase their awareness of internal and external issues? ???ALASKA AIRLINES: NAVIGATING CHANGE In the autumn of 2007, Alaska Airlines executives adjourned at the end of a long and stressful day in the midst of a multi-day strategic planning session. Most headed outside to relax, unwind and enjoy a bonfire on the shore of Semiahmoo Spit, outside the meeting venue in Blaine, a seaport town in northwest Washington state. Meanwhile, several members of...
What is Medicare Part C? Provides the aged with home health care Provides the aged with...
What is Medicare Part C? Provides the aged with home health care Provides the aged with prescription drugs Enables low-income aged to participate in Medicaid Provides a voluntary managed care option for the aged How is Medicaid financed? It is financed entirely by the federal government. It is financed entirely by the state. States receive the same percentage of federal support. States with lower per capita incomes receive a greater percentage of federal support If a healthcare system is "free"...
Please read the article and answear about questions. Determining the Value of the Business After you...
Please read the article and answear about questions. Determining the Value of the Business After you have completed a thorough and exacting investigation, you need to analyze all the infor- mation you have gathered. This is the time to consult with your business, financial, and legal advis- ers to arrive at an estimate of the value of the business. Outside advisers are impartial and are more likely to see the bad things about the business than are you. You should...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT