subject
Engineering, 05.12.2019 03:31 crun

Asupermarket wants to reward its best customer of each day, showing the customer’s name on a screen in the supermarket. for that purpose, the customer’s purchase amount is stored in a list and the customer’s name is stored in a corresponding list. implement a function def nameofbestcustomer(sales, customers) that returns the name of the customer with the largest sale. write a program that prompts the cashier to enter all prices and names, adds them to two lists, calls the function that you implemented, and displays the result. use a price of 0 as a sentinel.

ansver
Answers: 1

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
Apump is used to circulate hot water in a home heating system. water enters the well-insulated pump operating at steady state at a rate of 0.42 gal/min. the inlet pressure and temperature are 14.7 lbf/in.2, and 180°f, respectively; at the exit the pressure is 60 lbf/in.2 the pump requires 1/15 hp of power input. water can be modeled as an incompressible substance with constant density of 60.58 lb/ft3 and constant specific heat of 1 btu/lb or. neglecting kinetic and potential energy effects, determine the temperature change, in °r, as the water flows through the pump.
Answers: 1
question
Engineering, 04.07.2019 18:20
Aquick transition of the operating speed of a shaft from its critical speed will whirl amplitude. (a) increase (b) limit (c) not affect (d) zero
Answers: 2
question
Engineering, 04.07.2019 18:20
An open feedwater heater operates at steady state with liquid entering at inlet 1 with t? = 40°c and pl = 1 .2 mpa. water vapor att2-200°c and p2 = 1.2 mpa enters at inlet 2. saturated liquid water exits with a pressure of pa 1.2 mpa. neglect heat transfer with the surroundings and all kinetic and potential energy effects, determine the mass flow rate of steam at inlet 2 if the mass flow rate of liquid water at inlet 1 is given as 2 kg/s.
Answers: 3
You know the right answer?
Asupermarket wants to reward its best customer of each day, showing the customer’s name on a screen...
Questions
question
Mathematics, 28.01.2021 19:40
question
Mathematics, 28.01.2021 19:40
question
Mathematics, 28.01.2021 19:40
question
Mathematics, 28.01.2021 19:40
question
Mathematics, 28.01.2021 19:40