There is an online vendor that sells items to customers. The vendor sells four kinds of...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
There is an online vendor that sells items to customers. The vendor sells four kinds of items and all kinds have the same sales tax rate but different prices. A customer can place an order containing any number of items from each kind. A 100 AED shipping fee is waived for purchases of 500 AED or more excluding sales tax. Write a program that simulates a single- order scenario by a customer(where it may contain more than one item type). The program should ask the following: 1- The customer(Student) should enter how many different items are willing to order. 2- The customer(Student) should enter the number of required items from each kind. 3- The customer(student)then it should print the final cost of the order in a detailed fashion as + presented in the output of a sample run below. Kind Item Price Example 1: A B C D o Reading variables 40 70 90 55 Sales Tax Rate Please enter how many different items, would you order: 4 5% There is an online vendor that sells items to customers. The vendor sells four kinds of items and all kinds have the same sales tax rate but different prices. A customer can place an order containing any number of items from each kind. A 100 AED shipping fee is waived for purchases of 500 AED or more excluding sales tax. Write a program that simulates a single- order scenario by a customer(where it may contain more than one item type). The program should ask the following: 1- The customer(Student) should enter how many different items are willing to order. 2- The customer(Student) should enter the number of required items from each kind. 3- The customer(student)then it should print the final cost of the order in a detailed fashion as + presented in the output of a sample run below. Kind Item Price Example 1: A B C D o Reading variables 40 70 90 55 Sales Tax Rate Please enter how many different items, would you order: 4 5%
Expert Answer:
Answer rating: 100% (QA)
Python class Order def initself selfitems selfsalestaxrate 005 def additemself itemname quantity price selfitemsitemname quantity quantity price price def calculatesubtotalself subtotal 0 for itemname ... View the full answer
Related Book For
Accounting Information Systems basic concepts and current issues
ISBN: 978-0078025334
3rd edition
Authors: Robert Hurt
Posted Date:
Students also viewed these programming questions
-
The following data are taken from the financial statements of Carla Vista Co.. The data are in alphabetical order. Accounts payable $28,600 Net sales $572,000 Accounts receivable 73,000 Other current...
-
Read the case study "Southwest Airlines," found in Part 2 of your textbook. Review the "Guide to Case Analysis" found on pp. CA1 - CA11 of your textbook. (This guide follows the last case in the...
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
Deuterium ( ) is an attractive fuel for fusion reactions because it is abundant in the oceans, where about 0.015% of the hydrogen atoms in the water (H 2 O) are deuterium atoms. (a) How many...
-
A 17-cm-long microscope has an eyepiece with a focal length of 2.5 cm and an objective with a focal length of 0.33 cm. What is the approximate magnification?
-
Find the minimal polynomial of matrices of this form where the scalar λ is fixed (i.e., is not a variable). 0 ! 00
-
How a third party can intervene in an action?
-
After the tangible assets have been adjusted to current market prices, the capital accounts of Brandon Newman and Latrell Osbourne have balances of $75,000 and $125,000, respectively. Juan Rivas is...
-
Analyze the role of advanced soil mechanics and foundation engineering techniques in land development projects, including the use of numerical modeling methods like finite element analysis to assess...
-
Suppose that it is one year after EBVs investment in Newco, and Tall-tree makes a Series B investment for 6M shares of Newco at $0.2 per share. Following the Series B investment, what percentage of...
-
Alice wants to keep the inside of her apartment at a nice temperature of 72.6F while the outside temperature is 87.3 F. If she were to get the internal temperature to 72.6 F and then turn off her air...
-
In a cardboard box production line managed by semi-automated machines, there is a system for transporting the boxes to be managed through an AS-i network. The transportation system is divided into...
-
Identify the filter type given by transfer function shown below 1 300 ((jw) +50) H(jw)= 1 (jw)2 + 100jw + 50
-
1 . What triggers the decision to buy a cup of coffee? Is it a need? A want? 2 . How do you seek information about the purchase of a cup of coffee, knowing that coffee is a commodity? 3 . What...
-
What is normalization, and what is its goal? How does E-R differ from the data modeling method of this text? Reference:...
-
Consider a 2-person, 2-good economy. Endowments and utility functions are: e e u(x, y) = min {x,y} u(x, y) = x+y Draw a carefully labeled Edgeworth box diagram showing: = (1, 2) (3,2) 7 1 a)...
-
"What would be the heart rate of a person if the cardiac output is 5 L, blood volume in the ventricles at the end of diastole is 100 ml. and at the end of ventricular systole is 50 ml, ? 50 beats per...
-
Kenneth Hubbard has prepared the following list of statements about managerial accounting and financial accounting. 1. Financial accounting focuses on providing information to internal users. 2....
-
a. What four common classifications are often associated with computer crime? b. What computer crimerelated risks and threats are associated with information systems? c. What categories are commonly...
-
Internal control has four basic purposes: safeguarding assets, ensuring financial statement reliability, promoting operational efficiency, and encouraging compliance with managements directives....
-
In each independent situation below, identify and describe at least three risks. For each risk, suggest two internal controls to address it. a. (CMA adapted, June 1992) Midwest Electronics Corp....
-
You have been approached by promoters to give an opinion on the financial statements to be included in the prospectus of a proposed corporation to be named U-Park Corporation. U-Park will own and...
-
The following questions relate to the auditor's responsibility for reporting on inconsistency of application of accounting principles. Select the best response. a. Raider uses the last-in, first-out...
-
J.O. Cole, a sole proprietor, operates a trucking business. Cole also has assets and liabilities in connection with other activities. You are retained to audit the accounts of the J.O.C. Truck Lines...
Study smarter with the SolutionInn App