1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
QveST [7]
2 years ago
9

Selling a new vehicle pays a salesperson $1500. Selling a used vehicle pays a commission of 5% of the selling price. Write an in

teractive program that calculates a salesperson's total pay for selling two vehicles, each one of any type. The program should prompt the salesperson to enter the type and selling price of each vehicle. Do not use a loop. The program should then display the salesperson's total sales and total pay. Express these amounts in currency format as described in the requirements above.
Engineering
1 answer:
Dahasolnce [82]2 years ago
4 0

Answer:

#Selling vehicles

import locale

locale.setlocale( locale.LC_ALL, 'en_CA.UTF-8' )

#Declaration of variables

total_pay=0

total_sales=0

#Selling details

for i in range(0,2):

   #Ask the type of sell

   type=input("Enter the type of the car you sold(used/new)? ")

   #Check error

   while(type.upper()!="USED" and type.upper()!="NEW"):

       print('ERROR!!!Should be used or new!!Please Re-enter')

       type=input("Enter the type of the car you sold(used/new)? ")

   #Input price of the car

   price=float(input("Enter the price of the car: "))

   #Calculations

   if(type.upper()=="NEW"):

       total_pay+=1500

   else:

       total_pay+=price*.05

   total_sales+=price

#Display results

print('Total Pay of the sale person = ',locale.currency(total_pay))

print('Total Sales = ',locale.currency(total_sales))

You might be interested in
Two streams of air enter a control volume: stream 1 enters at a rate of 0.05 kg / s at 300 kPa and 380 K, while stream 2 enters
alex41 [277]

Answer:

0.08kg/s

Explanation:

For this problem you must use 2 equations, the first is the continuity equation that indicates that all the mass flows that enter is equal to those that leave the system, there you have the first equation.

The second equation is obtained using the first law of thermodynamics that indicates that all the energies that enter a system are the same that come out, you must take into account the heat flows, work and mass flows of each state, as well as their enthalpies found with the temperature.

 

finally you use the two previous equations to make a system and find the mass flows

I attached procedure

5 0
3 years ago
What is a ton of refrigeration?
AURORKA [14]

Explanation:

The unit refrigeration is generally is given in terms of tons.In refrigeration compressor consume some amount of work to produce the cooling effect  with the help of evaporator and condenser.

In the simple words ton is the cooling load of refrigeration system.

So  

1 ton = 3.5 KW

1 ton = 12,000 BTU/hr

 

6 0
3 years ago
Help please its due today will mark you brainliest
Tems11 [23]

Answer:

launch- The first stage is ignited at launch and burns through the powered ascent until its propellants are exhausted. The first stage engine is then extinguished, the second stage separates from the first stage, and the second stage engine is ignited. The payload is carried atop the second stage into orbit

powered ascent-The first stage is ignited at launch and burns through the powered ascent until its propellants are exhausted. The first stage engine is then extinguished, the second stage separates from the first stage, and the second stage engine is ignited. The payload is carried atop the second stage into orbit

coasting flight-

When the rocket runs out of fuel, it enters a coasting flight. The vehicle slows down under the action of the weight and drag since there is no longer any thrust present. The rocket eventually reaches some maximum altitude which you can measure using some simple length and angle measurements and trigonometry.

ejection charge-At the end of the delay charge, an ejection charge is ignited which pressurizes the body tube, blows the nose cap off, and deploys the parachute. The rocket then begins a slow descent under parachute to a recovery. The forces at work here are the weight of the vehicle and the drag of the parachute.

slow decent- slow downs (i guess)

recovery-A recovery period is typically characterized by abnormally high levels of growth in real gross domestic product, employment, corporate profits, and other indicators. This is a turning point from contraction to expansion and often results in an increase in consumer confidence

Explanation:

6 0
3 years ago
A(n) ____________________ measures the resistance to current flow in a circuit.
yulyashka [42]

Answer: OHMMETER & MEGOHMMETER:

Explanation: The ohmmeter measures circuit resistance; the megohmmeter measures the high resistance of insulation. A meter used to measure electric current. It is connected as part of a circuit.

6 0
2 years ago
Two flat plates, separated by a space of 4 mm, are moving relative to each other at a velocity of 5 m/sec. The space between the
xenn [34]

Answer:

0.008

Explanation:

From the question, the parameters given are:

Velocity V = 5 m/s

Pressure = 10 pa

But pressure = F/A

10 = F/A

F = 10A

Substitute all the parameters into the formula below

Coefficient of viscosity (η) = F × r /[AV]

Where

F = tangential force,

r = distance between layers,

A = Area, and

V = velocity

(η) = 10A × 0.004 /[A × 5]

The A will cancel out

(η) = 10 × 0.004 /[5]

(η) = 0.04 /5

(η) = 0.008

Therefore, the coefficient of viscosity of the fluid is 0.008

5 0
2 years ago
Other questions:
  • A mysterious device found in a forgotten laboratory accumulates charge at a rate specified by the expression gm = 9 - 10tC from
    13·1 answer
  • The volume at a section of a 2-lane highway is 1800 vph in each direction and the density is approximately 30 bpm. A slow moving
    10·1 answer
  • A liquid-liquid extraction process consists of two units, a mixer and a separator. One inlet stream to the mixer consists of two
    7·1 answer
  • Consider a modification of the air-standard Otto cycle in which the isentropic compression and expansion processes are each repl
    10·1 answer
  • An induced-draft cooling tower cools 90,000 gallons per minute of water from 84 to 68oF. Air at 14.61 psia, 70oF dry bulb and 60
    9·1 answer
  • Método de Programación lineal utilizado para resolver problemas en teoría de redes?
    15·1 answer
  • Policeman says, "Son, you can't stay here"
    9·1 answer
  • Work to be performed can come from the work package level of the work breakdown structure as well as other sources. Which of the
    11·1 answer
  • 9. A piece of Cherry wood is 5/4 x 4" X 4'<br> What is the length in inches?
    10·1 answer
  • Reason fo I.EE regulations in electrical installations​
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!