Menu

[solved]-1 True False Write Pseudocode Program Read Many Time Cards Time Hours Output Total Regular Q38996746

1) True|False: You are about to write your pseudocodefor the program that will read many time cards (with time in &out hours), and output the total regular hours and total overtimehours. The first step of your pseudocode can be    “Set Total_regular_hours to zero”.    

2)True|False: You are about to write your pseudocode forthe program that will read many time cards (with time in & outhours), and output the total regular hours and total overtimehours. The last step of your pseudocode can be    “Output Total_regular_hours and Total_overtime_hours”.

3)

True|False: You are about to write your pseudocode forthe program that will read many time cards (with time in & outhours), and output the total regular hours and total overtimehours. The following pseudocode is complete and correct.    

  1. Set Total_regular_hours to zero;
  2. Set Total_overtime_hours to zero;
  3. Get client’s Time_in and Time_out;
  4. Let Regular_hours be (Time_out –Time_in);
  5. If Regular_hours is more than 8 hours

      then  Overtime_hours is (Regular_hours – 8)

and   

                Regular_hours is only 8 ;

       else Overtime_hoursis zero;

  1. Add Overtime_hours toTotal_overtime_hours;
  2. Add Regular_hours to Total_regular_hours;
  3. If there is more time cards to read, then go to step3;
  4. Output Total_regular_hours andTotal_overtime_hours;

4)True|False

You are about to write pseudocode to compute the resultvalue of the formula:  

( X * Y / Z + P + R )  

The following pseudocode is complete andcorrect.

  1. Compute X * Y, and put its result to T1 ;
  2. Compute Z + P, and put its result to T2 ;
  3. Compute T1 / T2 , and put its result to T3;
  4. Compute T3 + R, and put its result to T4;
  5. The final result value is in T4 ;

Expert Answer


Answer to 1) True|False: You are about to write your pseudocode for the program that will read many time cards (with time in & out… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *