subject
Engineering, 24.04.2020 17:24 vivian2020

The first thing we'll need to do is design and implement an items class! We can then instantiate it to create the item objects that are part of the receipt. The item class should have three attributes. __name - A string with the item name. __price - A float with the item price in dollars. __taxable - A Boolean that is true if the item is taxed. The item class should have the following methods. __init__ - The constructor. Takes data for all three attributes as parameters. These parameters should be in same type as their associated attributes. __str__ - returns the item as a string. getPrice - return the price of the item. getTax - Takes the tax rate as a floating point parameter. Returns the tax charged on t

ansver
Answers: 3

Another question on Engineering

question
Engineering, 03.07.2019 15:10
Apiston-cylinder with a volume of 0.25 m3 holds 1 kg of air (r 0.287 k/kgk) at a temperature of 100 c. heat transfer to the cylinder causes an isothermal expansion of the piston until the volume triples. how much heat is added to the piston-cylinder?
Answers: 3
question
Engineering, 04.07.2019 18:10
You are making beer. the first step is filling the glass carboy with the liquid wort. the internal diameter of the carboy is 15 in., and you wish to fill it up to a depth of 2 ft. if your wort is drawn from the kettle using a siphon process that flows at 3 gpm, how long will it take to fill?
Answers: 1
question
Engineering, 04.07.2019 18:20
Ahe-xe mixture containing a 0.75 mole fraction of helium is used for cooling electronics in an avionics application. at a temperature of 300 k and atmospheric pressure, calculate the mass fraction of helium and the mass density, molar concentration and molecular weight of the mixture. if the cooling capacity is 10 l, what is the mass of the coolant?
Answers: 3
question
Engineering, 04.07.2019 18:20
Water vapor initially at 10 bar and 400 °c is contained within a piston-cylinder assembly. the water lost heat to the surrounding according to isochoric (iso-volumetric) process until its temperature is 150 °c. the water is then condensed isothermally to saturated liquid. for the water as a system, calculate the work in kj/kg
Answers: 2
You know the right answer?
The first thing we'll need to do is design and implement an items class! We can then instantiate it...
Questions