Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

programming langguage Write a program that calculates and displays the total prices for online food ordering system. Ask if the customer was intended for dine-in

image text in transcribed
programming langguage
Write a program that calculates and displays the total prices for online food ordering system. Ask if the customer was intended for dine-in or take-away. Data for dine-in: Number of food pack (RM5.00 single and RM10.00 twin) Restaurant service charges (10% from the total order) GST (6% from the total order) Data for take-away: Number of food pack (RM5.00 single and RM10.00 twin) The program should use two functions to calculate the total prices for both dine-in and take-away, both functions should return the values. Give the discount 10% when the customer purchases above 5 of the total packs for take-away. (Control the input from user)

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_2

Step: 3

blur-text-image_3

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

Database Marketing The Ultimate Marketing Tool

Authors: Edward L. Nash

1st Edition

0070460639, 978-0070460638

More Books

Students also viewed these Databases questions

Question

Define procedural justice. How does that relate to unions?

Answered: 1 week ago