2. Write a program calculating the statistics for tests of a hospital by getting data from the user and displaying the results. a) Ask for number of tests b) Ask for number of positive tests c)...


C language


2. Write a program calculating the statistics for tests of a hospital by getting data from the user and<br>displaying the results.<br>a) Ask for number of tests<br>b) Ask for number of positive tests<br>c) Calculate number of negative tests<br>d) Calculate rate of number of positive tests<br>e) Calculate rate of number of negative tests<br>f) Display the rate of positive tests<br>g) Display the status of hospital (if rate of positive tests more than %50 “Status: Bad

Extracted text: 2. Write a program calculating the statistics for tests of a hospital by getting data from the user and displaying the results. a) Ask for number of tests b) Ask for number of positive tests c) Calculate number of negative tests d) Calculate rate of number of positive tests e) Calculate rate of number of negative tests f) Display the rate of positive tests g) Display the status of hospital (if rate of positive tests more than %50 “Status: Bad". if less than or equal to %50 write "Status: Good") The sample output of the program is as follows: Enter the test number: 250 Enter the positive test number: 83 Positive test rate: 33.200000 Status: GOOD

Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here