Question: Write with using Program C... The following table shows the number of covid19 case reported in Malaysia at certain period of time: Day 1 2

Write with using Program C...

The following table shows the number of covid19 case reported in Malaysia at certain period of time: Day 1 2 3 4 5 6 7 8 9 10 New case 142 208 217 150 179 131 170 158 109 118 Death case 4 0 2 6 9 4 0 1 2 0 Day 11 12 13 14 15 16 17 18 19 20 New case 184 153 134 170 85 110 69 54 84 36 Death case 4 2 1 5 3 7 8 4 3 2 Day 21 22 23 24 25 26 27 28 29 30 New case Death case Assume that the data above is contained in the covid19.dat file. Write a complete C program that does the following tasks:

a. Read ten more data covid for new and death case in an array form from the keyboard and add it to the existing covid19.dat file. b. From the new record stored in the file ecovid19.dat, read and find the number of day in which the new case is greater than 100 and the death case is less than 5. c. Print out the new and death cases together with output from 2(b) and the total of the new cases and death cases into the file covid19new.dat.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!