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
Its been days wsgggggg
Nataly [62]

Answer: ok

Explanation:

4 0
2 years ago
Read 2 more answers
Consider casting a concrete driveway 40 feet long, 12 feet wide and 6 in. thick. The proportions of the mix by weight are given
Akimi4 [234]

Answer:

Weight of cement = 10968 lb

Weight of sand = 18105.9 lb

Weight of gravel = 28203.55 lb

Weight of water = 5484 lb

Explanation:

Given:

Entrained air = 7.5%

Length, L = 40 ft

Width,w = 12 ft

thickness,b= 6 inch, convert to ft = 6/12 = 0.5 ft

Specific gravity of sand = 2.60

Specific gravity of gravel = 2.70

The volume will be:

40 * 12 * 0.5 = 240 ft³

We need to find the dry volume of concrete.

Dry volume = wet volume * 1.54 (concrete)

Dry volume will be = 240 * 1.54 = 360ft³

Due to the 7% entarained air content, the required volume will be:

V = 360 * (1 - 0.07)

V = 334.8 ft³

At a ratio of 1:2:3 for cement, sand, and gravel respectively, we have:

Total of ratio = 1+2+3 = 6

Their respective volume will be =

Volume of cement = \frac{1}{6}*334.8 = 55.8 ft^3

Volume of sand = \frac{2}{6}*334.8 = 111.6 ft^3

Volume of gravel = \frac{3}{6}*334.8 = 167.4 ft^3

To find the pounds needed the driveway, we have:

Weight = volume *specific gravity * density of water

Specific gravity of cement = 3.15

Weight of cement =

55.8 * 3.15 * 62.4 = 10968 pounds

Weight of sand =

111.6 * 2.60 * 62.4 = 18105.9 lb

Weight of gravel =

167.4 * 2.7 * 62.4 = 28203.55 lb

Given water to cement ratio of 0.50

Weight of water = 0.5 of weight of cement

= 1/2 * 10968 = 5484 lb

4 0
3 years ago
Subject: Electronics
Maslowich

Answer:

U just believe in yourself ..........

Explanation:

<em>If </em><em>there </em><em>a</em><em>r</em><em>e </em><em>more </em><em>electrons </em><em>than </em><em>protons </em><em>in </em><em>a </em><em>piece </em><em>of </em><em>matter </em><em>it </em><em>will </em><em>have </em><em>a </em><em>negative</em><em> </em><em>charge </em><em>.</em><em> </em><em>i</em><em>f</em><em> </em><em>there </em><em>are </em><em>fever </em><em>it </em><em>will </em><em>have </em><em>positive</em><em> </em><em>charge </em><em>and </em><em>if </em><em>there </em><em>are </em><em>e</em><em>qual </em><em>numbers </em><em>it </em><em>will </em><em>have </em><em>neutral</em><em> </em><em>.</em><em>.</em><em>.</em><em>.</em><em>.</em><em>.</em><em>.</em><em>.</em><em>.</em><em>.</em><em>.</em><em>.</em>

.

.

.

.

.

.

.

.

hope it was helpful to you.....

6 0
2 years ago
Mihuv8tr5qwertgyhjzxcvbnfr5y7nnbvcxzwertgyhujio vv solve the riddle
Inessa [10]

Answer:

v1QAZ3EDCRFV5TGB6YHNUJMIK,9OL0K9MIJNUHB7YGVTFCRDXESZWAq

Explanation:

qaAQzwsxedcnujmik,ol mkjuhtfcrxdZSWAQWSEDRFTGYHUJIKO,LP.; ,LMKJNUHTGDXESZWaEDRFTGHJKL,MNBVFDSWQAAWERTYUIOP;L,MNHGFDEWwertyuikolp;[l.,mnbvfre345678990098765434rtyhnbhju8765rtghjui875rfghji8765rfghju7654redfghu7643erfghji987yhjko987y

4 0
3 years ago
Read 2 more answers
A specimen of a 4340 steel alloy with a plane strain fracture toughness of 54.8 Mpa root m is exposed to a stress of 1030 MPa. W
cupoosta [38]

Answer:

It will not  experience fracture when it is exposed to a stress of 1030 MPa.

Explanation:

Given

Klc = 54.8 MPa √m

a = 0.5 mm = 0.5*10⁻³m

Y = 1.0

This problem asks us to determine whether or not the 4340 steel alloy specimen will fracture when exposed to a stress of 1030 MPa, given the values of <em>KIc</em>, <em>Y</em>, and the largest value of <em>a</em> in the material. This requires that we solve for <em>σc</em> from the following equation:

<em>σc = KIc / (Y*√(π*a))</em>

Thus

σc = 54.8 MPa √m / (1.0*√(π*0.5*10⁻³m))

⇒ σc = 1382.67 MPa > 1030 MPa

Therefore, the fracture will not occur because this specimen can handle a stress of 1382.67 MPa before experience fracture.

3 0
3 years ago
Other questions:
  • Two kg of N2 at 450 K, 7 bar is contained in a rigid tank connected by a valve to another rigid tank holding 1 kg of O2 at 300 K
    13·1 answer
  • Pressurized steam at 450 K flows through a long, thin-walled pipe of 0.5-m diameter. The pipe is enclosed in a concrete casing t
    15·1 answer
  • What is the first step in the problem-solving process, as well as in the engineering design process?
    7·1 answer
  • 500 flights land each day at San Jose’s airport. Assume that each flight has a 5% chance of being late, independently of whether
    5·1 answer
  • A rectangular open channel is 20 ft wide and has a bed slope of 0.007. Manning's roughness coefficient n is 0.03. It is in unifo
    10·1 answer
  • the voltage across a 5mH inductor is 5[1-exp(-0.5t)]V. Calculate the current through the inductor and the energy stored in the i
    6·1 answer
  • Strands of materials A and B are placed under a tensile force of 10 Newtons. Material A deforms more than Material B.
    5·2 answers
  • The electrical panel schedules are located on EWR Plan number ___.
    13·1 answer
  • What form of joining uses heat to create coalescence of the materials?
    7·1 answer
  • When bending metal, the material on the outside of the curve stretches while the material on the inside of the curve compresses.
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!