Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please I have 20 minutes left I need help Question 1 Using pseudocode, prepare a complete algorithm of a C program to allow users to

image text in transcribed

Please I have 20 minutes left I need help

Question 1 Using pseudocode, 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 (0). Ensure only valid input is accepted. The total cases and death of each state are as listed below: State Selangor Sabah Sarawak Cases 664k 1895 189k Death 6k 2k 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 Enter state [O to exit]: 8 Invalid input Enter state [O to exit): 1 State: Selangor Total cases: 664000 Total death: 6000 (0.0090%) Enter state [O to exit]: 0 End-of-program

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

Transact SQL Cookbook Help For Database Programmers

Authors: Ales Spetic, Jonathan Gennick

1st Edition

1565927567, 978-1565927568

More Books

Students also viewed these Databases questions

Question

Please and thank you

Answered: 1 week ago

Question

Determine miller indices of plane A Z a/2 X a/2 a/2 Y

Answered: 1 week ago