Answer to Question #214981 in C++ for sumudu

Question #214981
Function Declarations

MinimumPatient Count( int no1, int no)//returns maximum count

int MaximumPatientCount (int no1,int no2)//returns minimum count

int TotalPatient Count (int patientArray int size);//eturns total count

float PatientCount (int returns the next week's predicted count)

Wite a function using C++ statement called PrintCovidSummary() which takes three integer aarrays (value1, value2 , value3)represent 3 disticts and an integer( as the size of the array) as parameters. The method points the report as given below
Output
Day col gam kalu min max
Monday 445 135 36 36 445
Tunday 397 50 136 50 397
​wednesday 444 75 19 19 444
thursday 309 104 119 104 309
​friday 259 79 164 79 259
Totalpatient count 1854 443 474
Next week prediction 2596 620 664
1
Expert's answer
2021-07-08T13:30:24-0400


#include <iostream>


using namespace std;
int MinimumPatientCount( int no1, int no2)//returns maximum 
{
    if (no1<no2){
        return no1;
    }
    else 
        return no2;
}


int MaximumPatientCount (int no1,int no2)//returns minimum count
{
    if (no1>no2){
        return no1;
    }
    else 
        return no2;
}


int TotalPatientCount (int patientArray, int size)//returns total count
{
    int sum=0;
    for(int i=0;i<size;i++){
        sum=sum+patientArray;
    }
    return sum;
}


float PatientCount (int c)//returns the next week's predicted count
{
    cout<<"Enter Patient Count:";
    cin>>c;
    
    return c;
}
int main()
{
 


    return 0;
}

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!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS