Question

In: Computer Science

A Private Poly Clinic in Oman wish to develop software to automate their Patient Monitoring system...

A Private Poly Clinic in Oman wish to develop software to automate their Patient Monitoring system for storing the details of the patients visited the clinic. Develop a system to meet the following requirements:

Develop an algorithm, flow chart and write a Looping in C program to read the gender of

patients and fees to be paid by them as shown in the below table. Calculate the

total fees paid by the female and male patients separately and display them

with appropriate statements.

  

Patient Id

Fees in (OMR)

      Gender

P001

15

M

P002

10

F

P003

20

M

P004

8

F

P005

12

M

Solutions

Expert Solution

//C program to compute total fees gender wise


#include <stdio.h>
int main() {
char patientId[20];
char gender;
int fees, mtotal, ftotal, i;
  
mtotal = 0;
ftotal = 0;
  
for (i = 1; i <= 5; i++) {
printf("Enter PatientId,Fees and gender :\n");
scanf("%s %d %c",patientId,&fees,&gender);
  
  
if (gender == 'M') {
mtotal = mtotal + fees;
} else {
ftotal = ftotal + fees;
}
}
printf( "Total fees paid by the female : %d \n",ftotal);
printf( "Total fees paid by the male : %d ", mtotal);
return 0;
}

Function Main
Declare String PatientId, gender
Declare Integer fees, mtotal, ftotal, i
  
Assign mtotal = 0
Assign ftotal = 0
For i = 1 to 5
Input PatientId
Input fees
Input gender
If gender="M"
Assign mtotal = mtotal+fees
False:
Assign ftotal = ftotal+fees
End
End
Output "Total fees paid by the female : "
Output ftotal
Output "Total fees paid by the male : "
Output mtotal
End


Related Solutions

A Private Poly Clinic in City wish to develop software to automate their Patient Monitoring system...
A Private Poly Clinic in City wish to develop software to automate their Patient Monitoring system for storing the details of the patients visited the clinic. Develop a system to meet the following requirements: Develop an algorithm, flow chart and write a C program to read the gender of patients and fees to be paid by them as shown in the below table. Calculate the total fees paid by the female and male patients separately and display them with appropriate...
A private neighborhood health clinic wants to automate management of their operations by implementing an interactive...
A private neighborhood health clinic wants to automate management of their operations by implementing an interactive web-based software system using the html5 standard, which should make the system run on tablets and smart phones as well as desktop and laptop machines. The Clinic Management System (CMS) is to be used by both patients and the clinic personnel (doctors, nurses, and administrative staff). A patient will be able to make on-line appointments for an examination, cancel an existing appointment, inspect lab...
A programmer plans to develop a new software system. In planning for the operating system that...
A programmer plans to develop a new software system. In planning for the operating system that he will? use, he needs to estimate the percentage of computers that use a new operating system. How many computers must be surveyed in order to be 90?% confident that his estimate is in error by no more than four percentage points? B) Assume that a recent survey suggests that about 91?% of computers use a new operating system
A programmer plans to develop a new software system. In planning for the operating system that...
A programmer plans to develop a new software system. In planning for the operating system that he will​ use, he needs to estimate the percentage of computers that use a new operating system. How many computers must be surveyed in order to be 95​% confident that his estimate is in error by no more than five percentage points question marks? Complete parts​ (a) through​ (c) below. Round to nearest integer. Assume that nothing is known about the percentage of computers...
A programmer plans to develop a new software system. In planning for the operating system that...
A programmer plans to develop a new software system. In planning for the operating system that he will​ use, he needs to estimate the percentage of computers that use a new operating system. How many computers must be surveyed in order to be 9595​% confident that his estimate is in error by no more than fivefive percentage points question mark s? Complete parts​ (a) through​ (c) below. ​a) Assume that nothing is known about the percentage of computers with new...
A programmer plans to develop a new software system. In planning for the operating system that...
A programmer plans to develop a new software system. In planning for the operating system that he will​ use, he needs to estimate the percentage of computers that use a new operating system. How many computers must be surveyed in order to be 99​% confident that his estimate is in error by no more than three percentage points question marks? ​a) Assume that nothing is known about the percentage of computers with new operating systems. n=___ ​b) Assume that a...
A programmer plans to develop a new software system. In planning for the operating system that...
A programmer plans to develop a new software system. In planning for the operating system that he will​ use, he needs to estimate the percentage of computers that use a new operating system. How many computers must be surveyed in order to be 95​% confident that his estimate is in error by no more than five percentage points question marks? Complete parts​ (a) through​ (c) below. ​a) Assume that nothing is known about the percentage of computers with new operating...
How the current Electronic health record (EHR) system is used for remote patient monitoring process to...
How the current Electronic health record (EHR) system is used for remote patient monitoring process to enhance or detract from team collaboration during workflow?
Spacely’s Sprockets wants to raise funding to develop software for a new Space Transport System. They...
Spacely’s Sprockets wants to raise funding to develop software for a new Space Transport System. They have chosen to pursue debt financing and will sell bonds. Assume the following regarding their funding: The company needs to raise $500,000 for the project They will pay a 5% coupon annually The bond’s yield-to-maturity is 4% The bond will last 5 years The risk-free rate of return is 3% annually What is the price of the bond? (4 points) Assume the yield-to-maturity changes...
COURSE : IT System Integration “The software design/development team and test engineers need to develop a...
COURSE : IT System Integration “The software design/development team and test engineers need to develop a strategy for planning, design, execution, data collection, and test evaluation”. Discuss this statement. note: NEED A UNIQUE ANSWER AND NO HANDWRITING PLEASE.. THANK YOU
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT