Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

CODING IN C++ ...PLSSS 2. Write a program to record COVID-19 cases in Melaka for 7 days. The user is required to enter THREE(3) data

image text in transcribed

image text in transcribed

CODING IN C++ ...PLSSS

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. Covid-19 cases in Melaka for 7 days. Sunday New Cases: 12 Case Cured: 0 Deaths: 0 Monday New Cases: 28 Case Cured:10 Deaths: 1 Tuesday New Cases: 10 Case Cured:20 Deaths: 2 Wednesday New Cases: 13 Case Cured: 15 Deaths: 0 Thursday New Cases: 30 Case Cured:10 Deaths: 1 Friday New Cases: 10 Case Cured:20 Deaths: 0 Saturday New Cases: 5 Case Cured : 20 Deaths:0 Overall Total Cases: 108 Overall Total Cured: 95 (87.96%) Overall Total Deaths:4 (3.70%) 3. Modify program in Question 2 to use functions. The following are the function headers to be used. void enterData(int& totalCase, int& totalCured, int& totalDeaths) void displayTotalCase(int totalCase, int totalCured, int totalDeaths)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases Illuminated

Authors: Catherine M Ricardo, Susan D Urban

3rd Edition

1284056945, 9781284056945

More Books

Students also viewed these Databases questions

Question

What are the Five Phases of SDLC? Explain each briefly.

Answered: 1 week ago

Question

How can Change Control Procedures manage Project Creep?

Answered: 1 week ago