Answered step by step
Verified Expert Solution
Question
1 Approved Answer
use IDLE pyton main() Start markup (cost) net(total) constant variable called DISCOUNT - 10% constant variable called SALES TAX - 7.125% constant variable called MARK_UP
use IDLE
pyton
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 asStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started