Scenario 5

Code Solution

The highlighted portions below illustrate the areas where corrections are required in order to make this program run and generate results.
data work.aprilbills (drop=Total EquipCost);
   set cert.aprbills;
   if Days>7 then Discount=(RoomCharge)*.20;
      else Discount=0;
   TotalDue=Total-Discount;
   format DateIn DateOut date9.;
   format RoomRate RoomCharge Discount TotalDue dollar10.2;
run;
proc print data=work.aprilbills;
run;
Output A2.7 PROC PRINT Output of AprilBills
PROC PRINT Output of AprilBills

Test Your Code Solution

  1. Correct Answer: $437.41
  2. Correct Answer: $280.00
Last updated: February 14, 2019
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset