1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
|
#include <iostream>
using namespace std;
void Instructions()
void Days()
void MedCharge()
void SurCharge()
void LabFees()
float ComputeRoomCharge(int, int)
float ComputeMiscell(float,float,float)
float ComputeTotalCharge(int,int,float,float,float)
void Result()
int main()
{
int a=450,RoomCharge;
float Miscellaneous,TotalCharge;
//Function Calls
Instructions();
Days();
MedCharge();
SurCharge();
LabFees();
//Prompt and read the medication charges
void MedCharge()
{
float Medcharge;
cout<<"Enter the medication charges:"<< endl;
cin>>Medcharge;
}
//Prompt and read the surgical charges
void SurCharge()
{
float SurCharge;
cout<<"Enter the surgical charges:"<< endl;
cin>>SurCharge;
}
//Prompt and read the lab fees
void LabFees()
{
float LabFees;
cout<<"Enter the lab fees:"<<endl;
cin>> LabFees;
}
//Calculate the room charge
float ComputeRoomCharge(int a,int b)
{
int Result;
Result=a*b;
return Result;
}
//Calculate the Miscellaneous charge
float ComputeMiscellCharge(float A,float B,float C)
{
float Result1;
Result1= A+B+C;
return Result1;
}
//Calculate the total Charge
float ComputeTotalCharge(int a,int b,float c,float d,float e)
{
float Result2;
Result2= a*b+c+d+e;
return Result2;
}
|