Question: Suppose a small company has five employees and is planning to increase the number to six. Moreover, suppose one of the company's programs contained the

Suppose a small company has five employees and is planning to increase the number to six. Moreover, suppose one of the company's programs contained the following assignment statements.
DailySalary = TotalSal/5;
AvgSalary = TotalSal/5;
DailySales = TotalSales/5;
AvgSales = TotalSales/5;
How would the task of updating the program be simplified if the program had originally been written using constants named NumberOfEmp and WorkWeek (both set to the value 5) so that the assignment statements could be expressed as
DailySalary = TotalSal/DaysWk;
AvgSalary = TotalSal/NumEmpl;
DailySales = TotalSales/DaysWk;
AvgSales = TotalSales/NumEmpl;

Step by Step Solution

3.45 Rating (164 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

DailySalary TotalSal DaysWk AvgSalary TotalSal NumEmpl DailySales To... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Document Format (1 attachment)

Word file Icon

1013-C-S-O-S (896).docx

120 KBs Word File

Students Have Also Explored These Related Operating System Questions!