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...
Question: You are hired to develop an automatic patient monitoring system for a home-bound patient. The...
Question: You are hired to develop an automatic patient monitoring system for a home-bound patient. The system is required to read out the patient’s heart rate and blood pressure and compare them against specified safe ranges. The system also has activity sensors to detect when the patient is exercising and adjust the safe ranges. In case an abnormality is detected, the system must alert a remote hospital. (Note that the measurements cannot be taken continuously, since heart rate is measured...
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...
java program You are required to implement a Patient Information System for a clinic according to...
java program You are required to implement a Patient Information System for a clinic according to the following specifications: Class #1 PatientRecords (Tester class with main): This class contains a full list of patients (array list) and it provides the following functionalities: Add patient by ID-Number Print all records Print the number of patients based on specific attributes such as: disease name, gender. ***** See examples below for the input format (use console) Class #2 Patient: This class contains personal...
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?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT