Question #214984

Write a function using c++ statements called predictCount() which takes integer value (as previous week patient Count)as parameter and returns the next week patient count as a float .
(Hint : NextweekPatientCount =PreviousWeekPatientCount*patientrate and patientrate as 1.3)

Expert's answer

float predictCount(int PreviousWeekPatientCount){
    float patientrate=1.3;
    float NextweekPatientCount=PreviousWeekPatientCount*patientrate;
    return NextweekPatientCount;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS