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
A copper-nickel alloy of composition 60 wt% Ni-40 wt% Cu is slowly heated from a temperature of 1250°C (2280 °F). (a) At what te
makkiz [27]

Answer:

a. The very first liquid process, when heated from 1250 degree Celsius, is expected to form at the temperature by which the vertical line crosses the phase boundary (a -(a + L)) which is about <em>1310 degree Celsius. </em>

b. The structure of that first liquid is identified by the intersection with ((a+ L)-L) phase boundary; <em>47wt %of Ni</em> is of a tie line formed across the (a+ L) phase area <em>at 1310 degrees.</em>

c. To find the alloy's full melting, it is determined that the intersection of the same vertical line at 60 wt percent Ni with (a -(a+L)) phase boundary is around <em>1350 degrees.</em>

c. The structure of the last remaining solid before full melting correlates to the intersection with the phase boundary (a -(a + L), of the tie line built at 1350 degrees across the (a + L) phase area, <em>being 72wt % of Ni.</em>

4 0
3 years ago
How high a building could fire hoses effectively spray from the ground? Fire hose pressures are around 1 MPa. (It is also said t
Mrac [35]

Answer:

z_{2} = 91.640\,m

Explanation:

The phenomenon can be modelled after the Bernoulli's Principle, in which the sum of heads related to pressure and kinetic energy on ground level is equal to the head related to gravity.

\frac{P_{1}}{\rho\cdot g} + \frac{v_{1}^{2}}{2\cdot g}= z_{2}+\frac{P_{2}}{\rho\cdot g}

The velocity of water delivered by the fire hose is:

v_{1} = \frac{(300\,\frac{gal}{min} )\cdot(\frac{3.785\times 10^{-3}\,m^{3}}{1\,gal} )\cdot(\frac{1\,min}{60\,s} )}{\frac{\pi}{4}\cdot (0.3\,m)^{2}}

v_{1} = 0.267\,\frac{m}{s}

The maximum height is cleared in the Bernoulli's equation:

z_{2}= \frac{P_{1}-P_{2}}{\rho\cdot g} + \frac{v_{1}^{2}}{2\cdot g}

z_{2}= \frac{1\times 10^{6}\,Pa-101.325\times 10^{3}\,Pa}{(1000\,\frac{kg}{m^{3}} )\cdot(9.807\,\frac{m}{s^{2}} )} + \frac{(0.267\,\frac{m}{s} )^{2}}{2\cdot (9.807\,\frac{m}{s^{2}} )}

z_{2} = 91.640\,m

7 0
3 years ago
Discuss the environmental concerns regarding microfibre products
zlopas [31]

I don't know

Explanation:

cfffffffffggg

8 0
3 years ago
Determine the deflection at the center of the beam. Express your answer in terms of some or all of the variables LLL, EEE, III,
Rom4ik [11]

Answer:

See explanations for step by step procedures to get answer.

Explanation:

Given that;

Determine the deflection at the center of the beam. Express your answer in terms of some or all of the variables LLL, EEE, III, and M0M0M_0. Enter positive value if the deflection is upward and negative value if the deflection is downward.

4 0
3 years ago
Determine the maximum intensity ww of the uniform distributed load that can be applied to the beam without risk of causing the s
AnnyKZ [126]

Answer:

Please see attachment

Explanation:

Please see attachment

3 0
3 years ago
Other questions:
  • I logged on today to work on my makeup work. <br> A: True<br> B: False
    5·2 answers
  • Consider a cylindrical specimen of some hypothetical metal alloy that has a diameter of 11.0 mm. A tensile force of 1550 N produ
    7·1 answer
  • How far do you jog each morning? You prefer to jog in different locations each day and do not have a pedometer to measure your d
    14·1 answer
  • The acceleration (in m/s^2) of a linear slider (undergoing rectilinear motion) within a If the machine can be expressed in terms
    5·1 answer
  • Consider a regenerative gas-turbine power plant with two stages of compression and two stages of expansion. The overall pressure
    11·1 answer
  • Witch one is cuter compared to ur opinion calico kitten or grey?​
    5·1 answer
  • Define;<br>i) Voltage<br>ii) Current<br>iii) Electrical Power<br>iv) Electrical Energy​
    10·1 answer
  • Documentation of a flow chart?
    7·1 answer
  • Component of earthing and reasons why each material is being used<br><br>​
    5·1 answer
  • Describe two fundamental reasons why flexural strength should depend on porosity
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!