Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

comp and programming please turn this flowchart into a python program! Star markup (cost) main net(total) constant variable called DISCOUNT = 10% constant variable called

image text in transcribed image text in transcribed comp and programming

please turn this flowchart into a python program!

Star markup (cost) main net(total) constant variable called DISCOUNT = 10% constant variable called SALES TAX = 7.125% constant variable called MARK UP 25 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) I Create a sentinel flag called another initialized toy end return price return net_total while loop (another equals y) or (another equals 'Y) NO Call a function net(total) return net total YES assign cost equals, keyboard entry "Costa 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 zero YES YES screen output "I will pay with cash screen output "I will pay with credit NO screen output error message "ERROR: can not be negative value." another loop call a function markup(cost) assign to price IF BOOLEAN pay cash TRUE FALSE screen output Price: $' format price to two decimal places and no space between $# assign cost equals, keyboard entry "Cost again. Convert entry to float data type YES screen output 'Customer paid cash screen output Customer paid credit assign another equals, keyboard entry 'Another itern? (y to continue) function ends returns control TE 4 Image opt markup main) Start not(total) constant van de DISCOUNT 10% con varias called SALES TAXT 125 constant variabled MARK UP 2.5 make global war minus Complied by DISCOUNT) kayboard y Cash on tant Convert by to Hala type cal function man Assig price as the calculation to including MAX UP litering no. Cod by SALES TANO Crvenaged moto y ond return price return net_total no Contece ND Cau YES YES Conne NO BOOLEAN Vadation Loop BOOLEAN py FALSE TRUE VES - TROR THE

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

Databases Illuminated

Authors: Catherine Ricardo

2nd Edition

1449606008, 978-1449606008

More Books

Students also viewed these Databases questions