Question: Provide the flowchart , complete code for the question below. The Dixie Chicken Restaurant wants you to write a program that simulates a simple cash

Provide the flowchart, complete code for the question below.

The Dixie Chicken Restaurant wants you to write a program that simulates a simple cash register. The program should ask the user to enter the price of the meal. Then, the program should calculate the sales tax (8.25% of the meal price) and add it to the meal price to obtain the total price. A discount of 5% is given if the total price of the meal is more than RM100.00. The program then asks for the amount tendered (the amount customer gives to pay the bill). After the user entered the amount tendered, the program should display the amount tendered, the total price of the meal including the discount and the change amount. The user is given the option whether to continue with the next transaction or quit the program.

Provide the flowchart, complete code for the question below. The Dixie Chicken

The format of input and output is as follows (The bold texts indicates the data that you need to input from keyboard): Please enter meal price = RM 200 The sales tax = RM 16.5 Total Price = 216.5 Discount (5% for > 100) = 10.83 The Net Price= RM 205.67 Please enter amount tendered = RM 250 This is your receipt You pay: The Price: Your change is: RM250.00 RM205.67 RM44.33 (Please enter 1 (continue) or Do you want to continue? 1 (stop) = 1 Please enter meal price = RM 50 The sales tax = RM 4.13 Total Price = 54.13 Discount (5% for > 100) = 0 The Net Price= RM 54.13 Please enter amount tendered = RM 100 This is your receipt You pay: The Price: Your change is: RM 100.00 RM 54.13 RM 45.87 (Please enter 1 (continue) or Do you want to continue? 1 (stop) = -1 Thanks for using this system

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!