Coronavirus disease 2019 (COVID-19) is an infectious disease caused by severe acute respiratory syndrome coronavirus 2 (SARS-CoV-2). The disease was first identified in 2019 in Wuhan. As of March 28, 2020, the overall rate of deaths per number of diagnosed cases is 4.6 percent; ranging from 0.2 percent to 15 percent according to age group and other health problems. Today, COVID-19 has spread to all most all countries in this world.
The statistics of the COVID-19 cases have been updated daily. For this assignment, students are required to refer the statistics released on 29 March 2020 in covid19_stats.txt. The file contains eight columns which are country, total cases, new cases, total deaths, new deaths, total recovered, active cases and serious, critical cases which are arranged in sequence.
A program is required to further analyse the data. The program should allow the users to choose any of the following analysis menus shown in TABLE Q1. Whenever user chooses the menu, a report that contains the analysis results of the chosen menus will be generated. Users may choose more than one menu, in which the program will generate all results in a single report file. The task is:
1. Design a menu-driven program for the above case study. The program for each analysis menu should be written in function.
2. Design algorithms for all analysis menus in the form of flowcharts.
3. Write a complete C++ program based on the flowcharts that have been designed.
4. Your program should allow users to choose different analysis menu repeatedly.
5. You need to also consider usability of the program so that your program is easy to be operated by the users. Use your own creativity in designing the program interface to support the users in handling the program.
6. Apply all necessary programming concepts that you have learnt. You are also required to self-explore and utilize programming concepts/functions that have not been taught in the lecture/lab
#include <iostream>
void display_menu()
{
// your code
}
int get_user_choice()
{
// your code
}
int main()
{
while (true)
{
display_menu();
int user_choice = get_user_choice();
switch (user_choice)
{
// depending on the user_choice call
// the appropiate functions
}
}
}
Once you get this skeleton running you can start with the flow charts