Write a Python program to calculate the bill VAT and store the bill information into a...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write a Python program to calculate the bill VAT and store the bill information into a file. Ask the user to enter three products with their prices then save them in tuples. (1 mark) Calculate the total price of the products with VAT of 15%. (2 mark) Create a file with "Bill.txt" name and save the bill information (product name, price, total price with and without VAT) into the "Bill.txt" file. (2 mark) Note: Hint: The product: 1- Milk The Price: 10.5 2- Egg 23.2 3- Chicken 135 4- Bread 6.5 Sample Run1 Enter the product: Milk Enter the Price: 10.5 Enter the product: Egg Enter the Price: 23.2 Enter the product: Chicken Enter the Price: 135 VAT VAT * taxable_amount Activate Go to Sett Write a Python program to calculate the bill VAT and store the bill information into a file. Ask the user to enter three products with their prices then save them in tuples. (1 mark) Calculate the total price of the products with VAT of 15%. (2 mark) Create a file with "Bill.txt" name and save the bill information (product name, price, total price with and without VAT) into the "Bill.txt" file. (2 mark) Note: Hint: The product: 1- Milk The Price: 10.5 2- Egg 23.2 3- Chicken 135 4- Bread 6.5 Sample Run1 Enter the product: Milk Enter the Price: 10.5 Enter the product: Egg Enter the Price: 23.2 Enter the product: Chicken Enter the Price: 135 VAT VAT * taxable_amount Activate Go to Sett
Expert Answer:
Related Book For
Guide To Java A Concise Introduction To Programming
ISBN: 978-3031228414
2nd Edition
Authors: James T. Streib, Takako Soma
Posted Date:
Students also viewed these programming questions
-
can someone solve this Modern workstations typically have memory systems that incorporate two or three levels of caching. Explain why they are designed like this. [4 marks] In order to investigate...
-
You are required to write a Python program that will manage character (heroes and villain) information. Character (hero and villain) information will be stored in a text file that will be read in...
-
1. Analyze whether Thomas can recover his mReport You Need To Prepare: You must prepare a report addressed to Winnie and Ralph. Winnie and Ralph will use the report in discussion with the Clean...
-
As part of the requirements of her university entrepreneurship program, Natalie Koebel had been operating "Cookie Creations," a proprietorship, on a part-time basis. The purpose of Cookie Creations...
-
Scampini Technologies is expected to generate $25 million in free cash flow next year, and FCF is expected to grow at a constant rate of 4% per year indefinitely. Scampini has no debt or preferred...
-
Fantastic Sams and Defendants PSTEVO, LLC and Jeremy Baker entered into a franchise agreement pursuant to which Fantastic Sams granted PSTEVO a franchise to operate a Fantastic Sams Salon. According...
-
The Hillside Inn is a restaurant in Flagstaff, Arizona. It specializes in southwestern style meals in a moderate price range. Phil Weld, the manager of Hillside, has determined that during the last 2...
-
If f(x) = x + 3 and g(x) = x + 8x + 15. Determine an equation for y = f(x) * g(x)
-
It is early April 2021 and you, CPA, work in a mid-sized accounting firm in Regina, Saskatchewan. While you normally work on audits, you have requested to participate in the personal tax pool this...
-
-1 Reverse osmosis membrane filtration is to be used to treat brackish (saline) groundwater to supply drinking water for a NSW regional city. Feed water will be provided at a flow rate of 25,000...
-
The following data applies to GoodCorp. (in millions of US $): Cash & marketable securities $315 Fixed assets $546 Net sales $2520 Earnings Before Interests and Taxes (EBIT) $273 Net Earnings After...
-
Lee Inc. is an American firm that will need to make a payment of 889,000 Australian dollars in 90 days. Currently, the spot exchange rate is USD 0.9377/AUD. The company wants to hedge the transaction...
-
A comet collided with Planet X. Assume that these fragments came from an infinite distance away with zero initial speed and fell into planet x. What was there speed when they arrived at planet x's...
-
What should you do after finishing work with a reagent bottle? Select one or more: Return the bottle to its proper storage location. Close the bottle. Place the bottle in the Solid Waste container....
-
write an algorithm for finding the average of 3 numbers. Represent your results also using a flow chart. Determine the decision logic in your answer and explain why?
-
You work as an operations consultant for a textile company. Your client has a well-established distribution system in the US market. The company has hundreds of stores and four distribution centers....
-
Repeat the previous exercise using a case structure instead of a selection structure. Data From previous exercise Write a code segment to ask a user to enter a number between 1 and 12 , and print the...
-
Determine the output from the following code segment: int sum; int count; sum 0; count = 1; while (sum < 10) { } sum sum + count; count++; System.out.println ("sum = System.out.println("count...
-
Write both serial code and parallel code to perform vector addition. Plot execution times of several runs with a different number of threads and to see the speed up.
-
Are there any activities in a family that you believe should be allocated by a market? What characteristics do those activities have?
-
What is the difference between socialism in theory and socialism in practice?
-
Into what three sectors are market economies generally broken up?
Study smarter with the SolutionInn App