Question: 2 Write a program to record COVID-19 cases in Melaka for 7 days. The user is required to enter THREE(3) data which are New Cases,

 2 Write a program to record COVID-19 cases in Melaka for

2 Write a program to record COVID-19 cases in Melaka for 7 days. The user is required to enter THREE(3) data which are New Cases, Case Cured and Deaths every day shown as red font in colour). Your program will display Overall Total Cases, Total Cured, Total Deaths and their percentage formatted to 2 decimal places The following is an example of the output screen. Cavid-19 cases in Melaka for 7 days. Sunday New Cana 12 Case Cured: 0 Deaths: 0 Monday New Cases: 20 Case Cured:10 Deathsil Tuesday New Cases: 10 Case Cured: 20 Deaths: 2 Mednesday New Cases: 13 Case Cured:15 Deaths:0 Thursday New Cases 30 Case Curedi 10 Deathsil Priday New Cases: 10 Case Cured:20 Deathsto Saturday Case Cured 20 Death Overall Total Cases:108 Overall Total Cared:93 167.961) Overall Total Deaths: 13.705) Modify program in Question to use functions. The following the function headers to be used void enterData(int& totalCase, int& totalCured, int& totalDeaths vaid displayPortal Cesent totalCase, int tota cured, int totalDeather)

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!