I am taking a principles of programming class but i couldn't afford the book until now. I am completely lost in this class and I don't understand c++ and algorithms at all! this is what i have to do:
//Algorithm 6.5
can some one PLEASE HELP! ! ! its do todayCode:Set TotalTax to 0 Set TotalGrossEarnings to 0 Set TotalMedicalLevy to 0 Set TotalEarnings to 0 Display Heading Read Employee Record DOWHILE more records GrossEarnings = Hours * Rate TaxPayable = GrossEarnings * 0.15 MedicalLevy = GrossEarnings * 0.01 NetEarnings = GrossEarnings - TaxablePay - MedicalLevy TotalGrossEarnings = TotalGrossEarnings + GrossEarnings TotalTax = TotalTax + TaxPayable TotalMedicalLevy = TotalMedicalLevy + MedicalLevy TotalEarnings = TotalEarnings + NetEarnings Display EmployeeNumber, GrossEarnings, TaxPayable, MedicalLevy, NetEarnings Read Employee Record ENDDO Display TotalGrossEarnings Display TotalTax Display TotalMedicalLevy Display TotalNetEarnings



LinkBack URL
About LinkBacks



