Answered step by step
Verified Expert Solution
Question
1 Approved Answer
b) Pizza - Personal 1. Hawaian Chicken - RM 8 2. Mushroom Chicken - RM 9 Figure 5: Snapshot of Pizza Menu By referring to
b) Pizza - Personal 1. Hawaian Chicken - RM 8 2. Mushroom Chicken - RM 9 Figure 5: Snapshot of Pizza Menu By referring to Figure 5, write an Assembly program that performs the following operations: Prompt the user to input an option from the menu then accept the user input. Verify the input from the user. If the input is not within the range of 1 - 2, show error message and require the user to re-enter the input. Prompt the user to enter the order quantity (assume 9 is the maximum figure) then accept the user input Perform calculations to find the total amount to be paid and show the value on the screen. (15 marks) Marks Allocation Basic program declarations / initializations Prompt for pizza choice and accept input Verify pizza choice Prompt order quantity and accept input Perform calculation and show results 2 2 3 2 6 ON Question 4 b) (Continued) Sample output: Please enter your choice of pizza >> 5 Invalid Input. Please re-enter. Please enter your choice of pizza >> 1 Please enter the order quantity >> 8 The total price is >> RM 64 [Total: 25 marks]
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