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
Technician A says amperage cannot exist without both voltage and resistance. Technician B says if amperage is high, then you kno
Ivan

Answer:

Technician A

Explanation:

Ohms law:  I= E/R so rest resistance must be present along with E/potential difference.  Even if just wire shorted together there is resistance but very little.

Tech B: Again ohms law.  Current flow is directly proportional to the voltage and inversely  proportional to R (resistance or impedance).

8 0
3 years ago
Okay bro let’s go man yes yes
r-ruslan [8.4K]
Sheeeeeesh bro same name ayoooo??
8 0
3 years ago
Read 2 more answers
What steps would you take to design an improved toothpaste container?
algol [13]

Answer:

A. Identify the need, recognize limitations of current toothpaste containers, and then brainstorm ideas on how to improve the existing

Explanation:

To design an improved toothpaste container, we must identify the needs of the customer, one of the major need is to make the container attractive to the sight. This is the first thing that will prompt a customer to wanting to buy the product (The reflectance/appearance).

Then recognize the limitation of the current design, what needed change. This will help in determining what is needed to be included and what should be removed based on identified customers need.

The last step is to brainstorm ideas on how to improve the existing designs. Get ideas from other colleagues because there is a saying that two heads are better than one. This will help in coming to a reasonable conclusion on the new design after taking careful consideration of people's opinion.

7 0
2 years ago
Select a research proposal topic that relates to electrical and electronics engineering and write a proposal report taking into
fiasKO [112]

Expand your technical knowledge, form global networks and balance life & work commitments. Our advanced diplomas remain current with technological and industry developments.

8 0
3 years ago
Do you know anything about Android graphics?
Mashutka [201]

Android provides a huge set of 2D-drawing APIs that allow you to create graphics.

Android has got visually appealing graphics and mind blowing animations.

The Android framework provides a rich set of powerful APIS for applying animation to UI elements and graphics as well as drawing custom 2D and 3D graphics.

<h3>Three Animation Systems Used In Android Applications:-</h3>

1. Property Animation

2. View Animation

3. Drawable Animation

7 0
2 years ago
Other questions:
  • A vertical piston-cylinder device contains water and is being heated on top of a range. During the process, 10 kJ of heat is tra
    9·1 answer
  • The component of a fluid system where a fluid is stored, but not under pressure, is called a container.
    5·1 answer
  • Consider laminar, fully developed flow in a channel of constant surface temperature Ts. For a given mass flow rate and channel l
    15·1 answer
  • Which of the following statements about glycogen metabolism is FALSE?
    12·1 answer
  • A steel bar 100 mm long and having a square cross section 20 mm x 20 mm is pulled in
    6·1 answer
  • A long bone is subjected to a torsion test. Assume that the inner diameter is 0.375 in. and the outer diameter is 1.25 in., both
    14·1 answer
  • 1. Given: R= 25 , E = 100 V<br> Solve for I
    5·1 answer
  • 3Px=y−y2p2<br><br>first order higher dgree​
    11·1 answer
  • Mention verious medium level and higher level human resources related to engineering​
    6·1 answer
  • If a 110-volt appliance requires 20 amps, what is the total power consumed?
    8·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!