Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The following scenario is applicable to Question I to Question 3. As a member of FH developer team, you have been assigned to develop a

image text in transcribedimage text in transcribedimage text in transcribed

The following scenario is applicable to Question I to Question 3. As a member of FH developer team, you have been assigned to develop a program that will record and view Covid-19 cases for three districts in Melaka. These three districts which are affected by Covid-19 are Melaka Tengah, Alor Gajah and Jasin. The number of cases must be recorded according to the districts and the following categories, i) Children under 12 years old ii) Citizen between 12 and 65 years old iii) Senior Citizen above 65 years old In order to view the Covid-19 cases, user can choose to display the information based on district or overall cases in Melaka. Then, the program must display a number of cases for each category in the district and the total number of cases. Question 1 (55 Marks) Write a program that consists of: a) Suitable menu function. (5 marks) b) Array which a global declaration of array is not allowed. 1) Insert array elements (10 marks) 1) Display array elements (20 marks) c) At least two functions (other than Question 1(a)) which one of them should apply array passing. You must include functions prototype, function call and function definition in your code. 1) A function without array passing (10 Marks) ii) A function that applies passing array Question 2 (5 Marks) What is the suitable type of array should be used in this program? Why do you apply the type of array in your answer at Question 1(b) into the program? (5 marks) Question 3 (10 Marks) Choose two functions from your answer at Question 1(a) and 1(c)(i) then draw flowcharts to show how function call and function definition work. (10 marks) The following scenario is applicable to Question I to Question 3. As a member of FH developer team, you have been assigned to develop a program that will record and view Covid-19 cases for three districts in Melaka. These three districts which are affected by Covid-19 are Melaka Tengah, Alor Gajah and Jasin. The number of cases must be recorded according to the districts and the following categories, i) Children under 12 years old ii) Citizen between 12 and 65 years old iii) Senior Citizen above 65 years old In order to view the Covid-19 cases, user can choose to display the information based on district or overall cases in Melaka. Then, the program must display a number of cases for each category in the district and the total number of cases. Question 1 (55 Marks) Write a program that consists of: a) Suitable menu function. (5 marks) b) Array which a global declaration of array is not allowed. 1) Insert array elements (10 marks) 1) Display array elements (20 marks) c) At least two functions (other than Question 1(a)) which one of them should apply array passing. You must include functions prototype, function call and function definition in your code. 1) A function without array passing (10 Marks) ii) A function that applies passing array Question 2 (5 Marks) What is the suitable type of array should be used in this program? Why do you apply the type of array in your answer at Question 1(b) into the program? (5 marks) Question 3 (10 Marks) Choose two functions from your answer at Question 1(a) and 1(c)(i) then draw flowcharts to show how function call and function definition work. (10 marks)

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

Step: 3

blur-text-image

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

Beginning C# 5.0 Databases

Authors: Vidya Vrat Agarwal

2nd Edition

1430242604, 978-1430242604

More Books

Students also viewed these Databases questions

Question

3. What strategies might you use?

Answered: 1 week ago