files and access mode

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

details of the analysis can get from me
Ok, but what is your question?

i dont know how to make the program succesfully. can u help me?
You don't know how, or you've never tried?

> can u help me?
Help is where you do some work, get stuck, post a question and we help.


Dumping your assignment with zero effort, expecting a complete answer on a plate while you enjoy some leisure time just isn't going to happen.

can u help me?
You probably mean "Can you do it for me?"

This is not a trivial task. If you have no clue how to start it means you haven't learned the basics yet.
Maybe I am wrong and you need only a hint.

I would start with the main loop and the menu.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#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
Topic archived. No new replies allowed.