Question

In: Computer Science

how can benefit from C++ to develop a simple system for diagnosing number of people whom...

how can benefit from C++ to develop a simple system for diagnosing number of people whom affected by Coronavirus during a period of two weeks depending on the temperature and Oxygen rate of each individual person. Note: the temperature on the normal person is (37) and the Oxygen rate is above (90).

Solutions

Expert Solution

#source code:

#include <iostream>

using namespace std;

int main(){

int per;

cout<<"Enter number of persons:";

cin>>per;

int datat[per];

int datao[per];

for(int i=0;i<per;i++){

cout<<"Enter Person "<<i+1<<" Details:"<<endl;

cout<<"Enter temparature:";

cin>>datat[i];

cout<<"Enter oxyen:";

cin>>datao[i];

}

int nrmlcnt=0;

int notnrmlcnt=0;

for(int i=0;i<per;i++){

if(datat[i]==37 && datao[i]>90){

nrmlcnt+=1;

}else{

notnrmlcnt+=1;

}

}

cout<<"Normal Persons Count:"<<nrmlcnt<<endl;

cout<<"Not Normal Persons Count:"<<notnrmlcnt<<endl;

return 0;

}

#output:


Related Solutions

Imagine an island with many people on it, each of whom can catch some number of...
Imagine an island with many people on it, each of whom can catch some number of fish or pick some number of coconuts (each person's numbers being different from the rest). Now imagine that they discover a new invention--the ladder! The ladder allows every person to pick twice as many coconuts as before. a. What happens to the marginal cost of fish for each person and what happens to the marginal cost of coconuts? b. Sketch the PPF and show...
Using C language The system that you will develop holds the personal information for a number...
Using C language The system that you will develop holds the personal information for a number of students and the information of the course each student is registered in. The assumption is that each student is registered in a single course only. But the system will have a number of students saved. REQUIREMENTS: In this lab, you will introduce a simple student records system, which will save the student information as well as a single course that the student is...
Discuss how firms can benefit from (1) related diversification and also can benefit from (2) unrelated...
Discuss how firms can benefit from (1) related diversification and also can benefit from (2) unrelated diversification. Discuss some of the key concepts that can explain firm success or firm failure from selecting one or the other diversification strategy.
Develop a C program that generates a random number from 1 to 100, then prompt the...
Develop a C program that generates a random number from 1 to 100, then prompt the user to guess the number until it is guessed correctly. Let the user know if the guess is too high, too low, or correct. The program should count the number of times the user guesses and display the number, along with their rank, after the number is guessed correctly. Rank the user as follows: Super Guesser: 1 to 4 guesses Excellent Guesser: 5 to...
Develop a simple MIS (Management Information System) for High School Student that consists of a simple...
Develop a simple MIS (Management Information System) for High School Student that consists of a simple database (a text file). The system manages to dynamically input record/data into the database. The data from the database can be sorted, searched and updated. User also should be able to add new records/data, remove any data and etc. The system that will be developed must use a linked list structure. Use any sorting techniques to sort your data. Use any searching techniques to...
Develop a simple MIS (Management Information System) that consists of a simple database (a text file)....
Develop a simple MIS (Management Information System) that consists of a simple database (a text file). The system manages to dynamically input record/data into the database. The data from the database can be sorted, searched and updated. User also should be able to add new records/data, remove any data and etc. Here are some ideas of MIS that can be developed: 1. Hotel reservation system. 2. Students management system. 3. Payroll management system. 4. Bus/Railway/Plane ticketing system. 5. Clinic record...
How can your company/Industry benefit from a Decision Support System (DSS)? the company i choose is...
How can your company/Industry benefit from a Decision Support System (DSS)? the company i choose is FORD MOTORS Description of the industry and/or specific company Overall size Market Share Annual Income Geographic footprint
Is the stock market out of control? How can the poor benefit from it?
  Is the stock market out of control? How can the poor benefit from it?
How can the United States benefit from an enhanced understanding of culture?
How can the United States benefit from an enhanced understanding of culture?
develop simple linear regression models for predicting sales as a function of the number of each...
develop simple linear regression models for predicting sales as a function of the number of each type of ad. Compare these results to a multiple linear regression model using both independent variables. State each model and explain R- square, significance F and P-values. Concert Sales Thousands of Thousands of Sales ($1000) Radio&TV ads Newspaper ads $1,119.00 0 40 $973.00 0 40 $875.00 25 25 $625.00 25 25 $910.00 30 30 $971.00 30 30 $931.00 35 35 $1,177.00 35 35 $882.00...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT