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
For surface-mounted and pendant-hung luminaires, support rods should be placed so that they extend about ____
7nadin3 [17]

Answer:

One

For surface-mounted and pendant-hung luminaires, support rods should be placed so that they extend about _one___

<h3>what is supported mounted?</h3>
  • A structure that holds up or serves as a foundation for something else. Support is a synonym for mounting.

To learn more about it, refer

to brainly.com/question/25689052

#SPJ4

4 0
2 years ago
Plz solve the problem
julsineya [31]
I attached a photo that explains and gives the answer to your questions. Had to add a border because the whole picture didn’t fit.

6 0
3 years ago
Assign deliveryCost with the cost (in dollars) to deliver a piece of baggage weighing baggageWeight. The baggage delivery servic
Sholpan [36]

Answer: y = x * 1dollars - 30dollars

Explanation:

Giving that the delivery cost in dollar is potent for all x > = 50 pounds of wght

Y = (x - 50)*1 dollar + c ...equ 1

Y = delivery cost equation in dollars

x = weigt of baggage for delivery

c = 20dollars = down payment for the first 50 pound weight of baggage

Equ 1 becomes

Y = (x)dollars - 50 dollars + 20 dollars

Y = (x) dollars -30 dollars

4 0
4 years ago
Given the following Grammar and the right sentential form draw a parse tree and show the phrases, simple phrases and handle.S →
Shtirlitz [24]

Answer:

Find the answer in the attached in the order

Option a, Option c and Option b

Explanation:

4 0
3 years ago
Read 2 more answers
Air enters a control volume operating at steady state at 1.2 bar, 300K, and leaves at 12 bar, 440K, witha volumetric flow rate o
topjm [15]

Answer:

Heat transfer = 2.617 Kw

Explanation:

Given:

T1 = 300 k

T2 = 440 k

h1 = 300.19 KJ/kg

h2 = 441.61 KJ/kg

Density = 1.225 kg/m²

Find:

Mass flow rate = 1.225 x [1.3/60]

Mass flow rate = 0.02654 kg/s

mh1 + mw = mh2 + Q

0.02654(300.19 + 240) = 0.02654(441.61) + Q

Q = 2.617 Kw

Heat transfer = 2.617 Kw

4 0
3 years ago
Other questions:
  • Thermal energy generated by the electrical resistance of a 5-mm-diameter and 4-m-long bare cable is dissipated to the surroundin
    12·1 answer
  • Two Technicians are discussing ShopKey Pro. Technician
    12·1 answer
  • A Si sample contains 1016 cm-3 In acceptor atoms and a certain number of shallow donors, the In acceptor level is 0.16 eV above
    5·2 answers
  • Explain the effect of heat transfer, reversibilities and irreversibilities on changes in entropy
    11·1 answer
  • A 4-pole, 3-phase induction motor operates from a supply whose frequency is 60 Hz. calculate: 1- the speed at which the magnetic
    10·1 answer
  • The cost of hiring new employees outpaces the raises for established employees is
    5·1 answer
  • Two identical bulbs in parallel in a radio create a total resistance of 15 ohms in the circuit. What's the resistance of each of
    6·1 answer
  • The _____ plane is the plane in which the side of an object appears in
    12·1 answer
  • A cross beam in a highway bridge experiences a stress of 14 ksi due to the dead weight of the bridge structure. When a fully loa
    14·1 answer
  • Charging method .Constant current method​
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!