Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Program Practice 2 Prg 3 Use Thonny create a new program and save the program as C H 2 Prg 3 then write the following

Program Practice2 Prg3
Use Thonny create a new program and save the program as CH2 Prg3 then write the
following program:
The Albert Packer Cafe would like an application written to calculate the total charge for
a meal - including a 15% tip
Store the following data:
cost of the meal
Percent of tax
salesTax
Percent to Tip
tip
total charge
Collect the following data from the user:
(prompt the user for the data to enter/store the keyboard input)
Cost of the meal
Set the Percent of Tox to 0.07(7%)
Set the Percent to Tip to 0.15(15%)
Then calculate the following for the meal:
sales tax (cost of the meal * Percent of Tax)
tip (cost of the meal * Percent of Tip)
total charge (cost of the meal + sales tox + tip)
aneill
>
A 1 red Packer cate
Cost of molala 32.36
Tax:
Tip: 67.05
Total Due: 56.60
Notice the formatting of the
numbers and the spacing
image text in transcribed

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

Fundamentals Of Database System

Authors: Elmasri Ramez And Navathe Shamkant

7th Edition

978-9332582705

More Books

Students also viewed these Databases questions

Question

What is the Definition for Third Normal Form?

Answered: 1 week ago

Question

Provide two examples of a One-To-Many relationship.

Answered: 1 week ago