Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Records And Database Management

Authors: Jeffrey R Stewart Ed D, Judith S Greene, Judith A Hickey

4th Edition

0070614741, 9780070614741

Students also viewed these Databases questions

Question

What is computer neworking ?

Answered: 1 week ago