Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Follow the flowchart and write a Python program. main() Start markup (cost) net(total) constant variable called DISCOUNT - 10% constant variable called SALES TAX -

image text in transcribed

Follow the flowchart and write a Python program.

main() Start markup (cost) net(total) constant variable called DISCOUNT - 10% constant variable called SALES TAX - 7.125% constant variable called MARK_UP - 2.5 make total a global variable total total minus (total multiplied by DISCOUNT) assign cash equals keyboard entry "Cash on hand: Convert entry to float data type call a function main() Assign price as the calculation cost including MARK_UP. total calculate running total net_total total (total multiplied by SALES_TAX) Create a sentinel flag called another initialized toy end return price return net_total while loop (another equals 'y) or another equals "Y -NO YES Call a function net(total) retum net_total assign cost equals, keyboard entry "Cost! Convert entry to float data type YES IF cash net_total -NO BOOLEAN pay_cash TRUE BOOLEAN pay cash FALSE Validation Loop validation loop cost as

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

Sams Teach Yourself Beginning Databases In 24 Hours

Authors: Ryan Stephens, Ron Plew

1st Edition

067232492X, 978-0672324925

More Books

Students also viewed these Databases questions

Question

Show the properties and structure of allotropes of carbon.

Answered: 1 week ago

Question

3. Who would the members be?

Answered: 1 week ago