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
kari74 [83]
3 years ago
12

LANGUAGE IS PYTHON!!! PLEASE HELP

Computers and Technology
1 answer:
aleksandr82 [10.1K]3 years ago
7 0

The required program written in python 3 is displayed below :

weight = eval(input())

<em>#prompts</em><em> </em><em>user</em><em> </em><em>to</em><em> </em><em>enter</em><em> </em><em>weight</em><em> </em><em>value</em><em> </em>

miles = eval(input())

<em>#prompts</em><em> </em><em>user</em><em> </em><em>to</em><em> </em><em>enter</em><em> </em><em>number</em><em> </em><em>of</em><em> </em><em>miles</em><em> </em>

if miles <= 500:

<em>#shipping</em><em> </em><em>calculation</em><em> </em><em>for</em><em> </em><em>miles</em><em> </em><em>value</em><em> </em><em>below</em><em> </em><em>500</em><em> </em><em>miles</em><em> </em>

if weight <=2 :

shipping_charge = 1.10

elif(weight>2)and(weight<=6):

shipping_charge = 2.20

elif(weight>6)and(weight<=10):

shipping_charge = 3.70

elif(weight>10):

shipping_charge=3.80

<em>#shipping</em><em> </em><em>charge</em><em> </em><em>for</em><em> </em><em>each</em><em> </em><em>weight</em><em> </em><em>category</em><em> </em>

else:

<em>#shipping</em><em> </em><em>cost</em><em> </em><em>if</em><em> </em><em>the</em><em> </em><em>miles</em><em> </em><em>value</em><em> </em><em>entered</em><em> </em><em>is</em><em> </em><em>above</em><em> </em><em>500</em><em> </em><em>miles</em><em> </em>

if weight <=2 :

shipping_charge = 1.10 * round(miles/500)

<em>#number</em><em> </em><em>of</em><em> </em><em>miles</em><em> </em><em>divided</em><em> </em><em>by</em><em> </em><em>500</em><em> </em><em>is</em><em> </em><em>rounded</em><em> </em><em>to</em><em> </em><em>the</em><em> </em><em>nearest</em><em> </em><em>whole</em><em> </em><em>number</em><em> </em><em>and</em><em> </em><em>multiplied</em><em> </em><em>by</em><em> </em><em>the</em><em> </em><em>500</em><em> </em><em>Mile</em><em> </em><em>charge</em><em> </em><em> </em><em> </em>

elif(weight>2)and(weight<=6):

shipping_charge = 2.20 * round(miles/500)

elif(weight>6)and(weight<=10):

shipping_charge = 3.70 * round(miles/500)

elif(weight>10):

shipping_charge=3.80 * round(miles/500)

print('Your total shipping charge is : $',shipping_charge)

<em>#</em><em> </em><em>displays</em><em> </em><em>the</em><em> </em><em>total</em><em> </em><em>shipping</em><em> </em><em>charge</em><em> </em><em>to be</em><em> </em><em>paid</em><em> </em><em>based</em><em> </em><em>on</em><em> </em><em>the</em><em> </em><em>inputted</em><em> </em><em>values</em><em>.</em><em> </em>

Learn more :brainly.com/question/25122309

You might be interested in
Difference between entropy and enthalpy is
olchik [2.2K]

Answer:

Explanation:

Enthalpy is the measure of total heat present in the thermodynamic system where the pressure is constant. Entropy is the measure of disorder in a thermodynamic system.

3 0
3 years ago
If you want to design computing components for cars and medical
Marysya12 [62]

Computer engineering is the course you have to study if you want to design computing components for cars and medical equipment.

<h3>What Is Computer Engineering?</h3>

Computer Engineering is known to be one filed that is made up of the fields of electrical engineering and also that of computer science to form new kind of system hardware or software.

Based on the above, Computer engineering is the course you have to study if you want to design computing components for cars and medical equipment.

Learn more about Computer engineering from

brainly.com/question/24181398

#SPJ1

4 0
3 years ago
Give me your 3ds friend code :)
Karolina [17]

You can friend me mine is- 3024-6635-0458

4 0
4 years ago
I know this is not a school type question but i really need some help.
pashok25 [27]
If I'm not mistaken u can't do that but u can go in your settings if u have an iPhone and add that email with your main one.
8 0
4 years ago
Which electronic community allows you to write a message and send it to several people at the same time?
Fynjy0 [20]
Email would be the answer youre looking for.Hope this helps!!
7 0
4 years ago
Read 2 more answers
Other questions:
  • Sean is white hat hacker, who is demonstrating a network level session hijack attacks and as part of it, he has injected malicio
    6·1 answer
  • The shortest-route technique would best be used to determine the amount of LAN network wiring within a building. determine the p
    12·1 answer
  • What does a codec do? Choose all that apply.
    5·2 answers
  • In Java. Write a program that creates an integer array with 50 random values, prompts the user to enter the index of an element
    5·1 answer
  • Write a C++ program that reads a temperature value and the letter C for Celsius or F for Fahrenheit. Print whether water is liqu
    14·1 answer
  • What is the purpose of this parallelogram shape in a flowchart?
    15·1 answer
  • If you have limited means, you...?
    9·1 answer
  • What is the effective address generated by the following instructions? Every instruction is
    11·1 answer
  • BOTH QUESTIONS ONLY FILL IN C++ CODEWrite a copy constructor for CarCounter that assigns origCarCounter.carCount to the construc
    12·1 answer
  • Evaluate how suitable the hardware would be for:
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!