Question: Java Programming ANSWER ALL QUESTIONS QUESTION 1 (60 MARKS) Tutor Academy provides home tuition services for students ranging from Standard 1 to Form 5. This

Java Programming

Java Programming ANSWER ALL QUESTIONS QUESTION 1 (60 MARKS) Tutor Academy provideshome tuition services for students ranging from Standard 1 to Form 5.This academy provides three categories of tutor which are Normal Tutor, VIPTutor and Premium Tutor. The Normal Tutor has 2 until 4 yearsof experience in giving home tuition. Meanwhile, VIP Tutor and Premium Tutor

ANSWER ALL QUESTIONS QUESTION 1 (60 MARKS) Tutor Academy provides home tuition services for students ranging from Standard 1 to Form 5. This academy provides three categories of tutor which are Normal Tutor, VIP Tutor and Premium Tutor. The Normal Tutor has 2 until 4 years of experience in giving home tuition. Meanwhile, VIP Tutor and Premium Tutor have more than 5 and 10 years of experience in giving home tuition, respectively. Table Q1(a) shows the home tuition fee rates per hour according to the categories of tutor, while Table Q1(b) presents the number of home tuition subjects offered by Tutor Academy. Table Q1(a): Home Tuition Fee Rates Tuition Level UPSR (Standard 1 - 6) PT3 (Form 1-3) SPM ( Form 4-5) Normal Tutor per hour RM 30 RM 40 RM 50 VIP Tutor per hour RM 50 RM 60 RM 70 Premium Tutor per hour RM 70 RM 80 RM 90 Table Q1(b): Home Tuition Subjects UPSR Mathematics Science Bahasa Melayu English Chinese Tamil PT3 Mathematics Science Bahasa Melayu English Chinese Geography History SPM Mathematics Science Bahasa Melayu English Chinese Geography History Physics Chemistry Biology Additional Mathematics Accounts Economics Commerce Nora, a staff of the academy has to register 5 new students with different tuition levels, tutor options and number of subjects. She needs to ask the students' name, tuition level, option of tutor and number of subject to register. The program will then calculate the total fees of each student. Finally, she has to display the registration of the students. The sample of output are shown in Figure Q1(a). REGISTRATION OF TUTOR ACADEMY Name Aisha Ariffin Student ID 300001 Tuition Level UPSR Tutor Option Normal Tutor Number of Subject(s) 4 Total Fee RM 120.00 Name Student ID Tuition Level Tutor Option Number of Subject(s) Total Fee Daniel Lim 300002 PT3 Premium Tutor 7 RM 560.00 Name Student ID Tuition Level Tutor Option Number of Subject(s) Total Fee R. Siva 300003 PT3 VIP Tutor 6 RM 360.00 Name Student ID Tuition Level Tutor Option Number of subject(s) Total Fee Nisha Naim 300004 SPM Normal Tutor 10 RM 500.00 Name Student ID Tuition Level Tutor Option Number of Subject(s) Total Fee Razif Ishak 300005 SPM VIP Tutor 8 RM 560.00 Figure Q1(a): Registration of Tutor Academy a. Describe the problem and the calculation including input, process and output in your own words. (C01:P01 - 10 Marks) b. Based on Question 1(a), Table Q1(a), Table Q1(b) and Figure Q1(a), produce a flowchart to design the program. The flowchart should have: i. Array and loops to input required data of each student. ii. Nested if-else statements which allow students to choose a category of home tutor. Hii. Method printArray to display output. (CO2:PO2 - 20 Marks) C. Write a complete program code based on the flowchart created in Question 1(b) (CO3:PO3 - 30 marks) ANSWER ALL QUESTIONS QUESTION 1 (60 MARKS) Tutor Academy provides home tuition services for students ranging from Standard 1 to Form 5. This academy provides three categories of tutor which are Normal Tutor, VIP Tutor and Premium Tutor. The Normal Tutor has 2 until 4 years of experience in giving home tuition. Meanwhile, VIP Tutor and Premium Tutor have more than 5 and 10 years of experience in giving home tuition, respectively. Table Q1(a) shows the home tuition fee rates per hour according to the categories of tutor, while Table Q1(b) presents the number of home tuition subjects offered by Tutor Academy. Table Q1(a): Home Tuition Fee Rates Tuition Level UPSR (Standard 1 - 6) PT3 (Form 1-3) SPM ( Form 4-5) Normal Tutor per hour RM 30 RM 40 RM 50 VIP Tutor per hour RM 50 RM 60 RM 70 Premium Tutor per hour RM 70 RM 80 RM 90 Table Q1(b): Home Tuition Subjects UPSR Mathematics Science Bahasa Melayu English Chinese Tamil PT3 Mathematics Science Bahasa Melayu English Chinese Geography History SPM Mathematics Science Bahasa Melayu English Chinese Geography History Physics Chemistry Biology Additional Mathematics Accounts Economics Commerce Nora, a staff of the academy has to register 5 new students with different tuition levels, tutor options and number of subjects. She needs to ask the students' name, tuition level, option of tutor and number of subject to register. The program will then calculate the total fees of each student. Finally, she has to display the registration of the students. The sample of output are shown in Figure Q1(a). REGISTRATION OF TUTOR ACADEMY Name Aisha Ariffin Student ID 300001 Tuition Level UPSR Tutor Option Normal Tutor Number of Subject(s) 4 Total Fee RM 120.00 Name Student ID Tuition Level Tutor Option Number of Subject(s) Total Fee Daniel Lim 300002 PT3 Premium Tutor 7 RM 560.00 Name Student ID Tuition Level Tutor Option Number of Subject(s) Total Fee R. Siva 300003 PT3 VIP Tutor 6 RM 360.00 Name Student ID Tuition Level Tutor Option Number of subject(s) Total Fee Nisha Naim 300004 SPM Normal Tutor 10 RM 500.00 Name Student ID Tuition Level Tutor Option Number of Subject(s) Total Fee Razif Ishak 300005 SPM VIP Tutor 8 RM 560.00 Figure Q1(a): Registration of Tutor Academy a. Describe the problem and the calculation including input, process and output in your own words. (C01:P01 - 10 Marks) b. Based on Question 1(a), Table Q1(a), Table Q1(b) and Figure Q1(a), produce a flowchart to design the program. The flowchart should have: i. Array and loops to input required data of each student. ii. Nested if-else statements which allow students to choose a category of home tutor. Hii. Method printArray to display output. (CO2:PO2 - 20 Marks) C. Write a complete program code based on the flowchart created in Question 1(b) (CO3:PO3 - 30 marks)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!