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]
3 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]3 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
Nec ________ covers selection of time-delay fuses for motor- overload protection.
Murljashka [212]

Nec Article 430 covers selection of time-delay fuses for motor- overload protection.

<h3>What article in the NEC covers motor overloads?</h3>

Article 430 that is found in  National Electrical Code (NEC) is known to be state as “Motors, Motor Circuits and Controllers.” .

Note that the article tells that it covers areas such as motors, motor branch-circuit as well as feeder conductors, motor branch-circuit and others.

Therefore, Nec Article 430 covers selection of time-delay fuses for motor- overload protection.

Learn more about motor- overload from

brainly.com/question/20738481

#SPJ1

6 0
1 year ago
If the load parameters are: Vln=600kV, Il=100A (resistive), calculate the source voltage and current when the line is 50Miles (s
Archy [21]

s 0Miles (short), 150 Miles(medium), and 300 Miles (long).

Explanation:

4 0
3 years ago
10–25. The 45° strain rosette is mounted on the surface of a shell. The following readings are obtained for each gage: ε a = −20
vazorg [7]

Answer:

The answer is 380.32×10^-6

Refer below for the explanation.

Explanation:

Refer to the picture for brief explanation.

7 0
3 years ago
What are the disadvantages of having a liquid cooled engine?
Feliz [49]
One notable disadvantage of liquid cooling over air cooling is that it is considerably costly to set up. Cooling fans are prevalent in the market, and this overabundance of supply means they are cheap. The components of a liquid cooling system can be expensive.
5 0
2 years ago
Can someone answer plz!! It’s 24 points
fgiga [73]

Explanation:

750 microvolt is your answer

please mark as brilliant

3 0
3 years ago
Read 2 more answers
Other questions:
  • Which phrases describe an irregular galaxy?
    8·1 answer
  • The impeller shaft of a fluid agitator transmits 28 kW at 440 rpm. If the allowable shear stress in the impeller shaft must be l
    6·1 answer
  • For all the problems describe all pieces to the equations. 1.What is the equation for normal stress? 2.What is the equation for
    7·1 answer
  • A. Derive linear density expressions for BCC [110] and [111] directions in terms of the atomic radius R.
    7·1 answer
  • Consider the titration of 100.0 mL of 0.200 M CH3NH2 by 0.100 M HCl.
    13·1 answer
  • Complete the following sentence.
    10·1 answer
  • What is the output of the following program fragment. Choose appropriate data-types of variables to match output.
    10·1 answer
  • Assignment # 2
    5·1 answer
  • What is mechanical engineer​
    14·1 answer
  • A 1/20 scale model of a wing is used to determine forces on the actual airplane. the 1/20 scale refers to the:_____
    10·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!