Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Answer for question 2 . INSTRUCTION: Answer ALL questions. Save your answers (program and output) in a single Microsoft Word document. Write your name, matric

image text in transcribed

Answer for question 2

. INSTRUCTION: Answer ALL questions. Save your answers (program and output) in a single Microsoft Word document. Write your name, matric number, course, section and group on the top of your answers. Name the file as "FA_yourname_yourcourse.docx". Submit the document in a dedicated folder at ULearn as specified by the lecturer. 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. i) A function without array passing (10 Marks) . . ii) A function that applies passing array The following scenario is applicable to Question 1 to Question 3. (10 Marks) 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. 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) 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 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) - END OF QUESTION - 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. i) Insert array elements (10 marks) ii) Display array elements. (20 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

Spatial Databases A Tour

Authors: Shashi Shekhar, Sanjay Chawla

1st Edition

0130174807, 978-0130174802

More Books

Students also viewed these Databases questions