Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

Data Mining Concepts And Techniques

Authors: Jiawei Han, Micheline Kamber, Jian Pei

3rd Edition

0123814790, 9780123814791

More Books

Students also viewed these Databases questions

Question

The CLI is commonly referred to as a shell.

Answered: 1 week ago

Question

How do modern Dashboards differ from earlier implementations?

Answered: 1 week ago