Answered step by step
Verified Expert Solution
Question
1 Approved Answer
using C and online GDB You are hired to write a program for Abang Mat, who is a satay seller. He sells TWO (2) types
using C and online GDB
You are hired to write a program for Abang Mat, who is a satay seller. He sells TWO (2) types of satay, chicken satay and lamb satay. The price of the satay is as shown in Table 1. Table 1 Type of Satay Chicken Lamb Price (per stick) RM1.00 RM1.50 Abang Mat will give 10% discount to customers who buy more than 100 pieces of satay. The program will: read the type of satay that the customer would like to buy print the bill for each customer based on the quantity and discounts. loop to read and process the purchasing information of FIVE (5) customers. You may assume that the users will always key in a correct input, hence input validation is not needed. A sample output is shown in Figure 1: Welcome to Kedai Sate Abang Mat You are customer number 0:What would you like to order? 1. Satay Ayam 2.Satay Kambing Enter your option:1 Quantity: 12 Bill : RM 12.00 Welcome to Kedai Sate Abang Mat You are customer number 1: What would you like to order? 1. Satay Ayam 2.Satay Kambing Enter your option:2 Quantity: 36 Bill : RM 54.00Step 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