Answered step by step
Verified Expert Solution
Question
1 Approved Answer
question A and B SULIT (SET B) QUESTION 3 Express A Enterprise is a new dobby shop. As the owner of the shop, you need
question A and B
SULIT (SET B) QUESTION 3 Express A Enterprise is a new dobby shop. As the owner of the shop, you need to provide an impressive calculation system to calculate the price paid by customers based on the dobby weight listed in Table 2. After the fourth customer data entered, the program will calculate the total sales for these FOUR (4) customers for your record and exit. Table 2 Price (RM) RM 4.50 per kg Weight (kg) Less than or equal to 3 kg More than 3 kg and less than or equal to 10 kg 11 kg and less or equal to 15 kg More than 16 kg RM 7.60 per kg RM 11.80 per kg RM 15.70 per kg (a) Draw the flowchart of the system. (4 marks) (b) Write a program using S Page Sample of the output did 13/19 a + cture for the overall system. (4 marks) (b) Write a program using suitable selection and repetition control structure for the overall system. Sample of the output displayed as in Figure 4. (6 marks) *****This program is to display dobby price paid by 3 customers Please enter dobby weight (ke) : 2 Total amount to pay is RM 9.00 Please enter dobby weight (kg) : 5 Total amount to pay is RM 38.00 Please enter dobby weight (kg): 13 Total amount to pay is RM 153.40 Please enter dobby weight (ke) : 20 Total amount to pay is RM 314.00 The total sales is RM 514.40 Process returned o (0x0) execution time : 16.142 s Press any key to continue. Figure 4 Page 13 1 19 Q + CITIT SULIT (SET B) QUESTION 3 Express A Enterprise is a new dobby shop. As the owner of the shop, you need to provide an impressive calculation system to calculate the price paid by customers based on the dobby weight listed in Table 2. After the fourth customer data entered, the program will calculate the total sales for these FOUR (4) customers for your record and exit. Table 2 Price (RM) RM 4.50 per kg Weight (kg) Less than or equal to 3 kg More than 3 kg and less than or equal to 10 kg 11 kg and less or equal to 15 kg More than 16 kg RM 7.60 per kg RM 11.80 per kg RM 15.70 per kg (a) Draw the flowchart of the system. (4 marks) (b) Write a program using S Page Sample of the output did 13/19 a + cture for the overall system. (4 marks) (b) Write a program using suitable selection and repetition control structure for the overall system. Sample of the output displayed as in Figure 4. (6 marks) *****This program is to display dobby price paid by 3 customers Please enter dobby weight (ke) : 2 Total amount to pay is RM 9.00 Please enter dobby weight (kg) : 5 Total amount to pay is RM 38.00 Please enter dobby weight (kg): 13 Total amount to pay is RM 153.40 Please enter dobby weight (ke) : 20 Total amount to pay is RM 314.00 The total sales is RM 514.40 Process returned o (0x0) execution time : 16.142 s Press any key to continue. Figure 4 Page 13 1 19 Q + CITIT Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started