Question: Instruct BEST 11 16 Using pseudocode/flowchart, prepare a complete algorithm of a C program to allow users to view the statistic of total cases and
Instruct BEST 11 16 Using pseudocode/flowchart, prepare a complete algorithm of a C program to allow users to view the statistic of total cases and total death caused by Covid- 19 in selected states in Malaysia, as well as the percentage of total death cases accumulated in each state. Quit the program only after the user enters integer ZERO (O). Ensure only valid input is accepted. The total cases and death of each state are as listed below: State Cases Death Selangor 664k 6k Sabah 189k 2k Sarawak 189k 1.4k Use below sample input/output format to guide you in preparing the algorithm: COVID-19 Cases in Malaysia 1. Selangor 2. Sabah 3. Sarawak 0. Exit SECTIC au Instru 21 SE PROG MA ar 25 Enter state [0 to exit]: 8 Invalid input Enter state [0 to exit): 1 State: Selangor Total cases: 664000 Total death: 6000 (0.0090%) Enter state (0 to exit): 0 End-of-program
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
