I need help trying to write the c++ code on the following algorithm.
Can anyone please help! I am totally confused on what to do.
// 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