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]
2 years ago
12

LANGUAGE IS PYTHON!!! PLEASE HELP

Computers and Technology
1 answer:
aleksandr82 [10.1K]2 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
You just got a shipment of 10 network-attached laser printers. You want these printers to always have the same address but you w
love history [14]

Answer:

Configure Reservations

Explanation:

The reason you do this, is because you are getting a permanent IP address assignment.

Hope this helps!

6 0
3 years ago
Why Java Script uses the prefix Java in itsname?
kifflom [539]

Answer:

Java in JavaScript does not correspond to any relationship with Java programming language.

Explanation:

The prefix Java in Javascript is there for historical reasons.

The original internal name of Javascript when it was created by Brendan Eich at Netscape was Mocha. This was released to public as Livescript in 1995. The name Livescript was eventually changed to Javascript in Netscape Navigator 2.0 beta 3 release in December 1995 after Netscape entered into an agreement with Sun Microsystem. The primary purpose of change of name seemed to be as a marketing aid to benefit from the growing popularity of Java programming language at that time.

4 0
3 years ago
What is this <br>name which console it is ​
ZanzabumX [31]

Answer:

ps3

Explanation:

becaus with is and I'm right

6 0
3 years ago
Read 2 more answers
Specify either "Write Through" or "Write Back" as the policy which best corresponds to each of the conditions below.
Mariulka [41]

Answer:

1. Write through

2. Write back

3. Write back

4. Write through.

Explanation:

The answers are given accordingly as above.

4 0
4 years ago
Ning wants to gather data about humidity for a science project. Which of these are needed to gather data?
IgorLugansk [536]

Answer:

A -  information

Explanation:

in the question it says Ning wants to GATHER DATA for the project so, he need information.

IF im wrong, plz tell me and sry if i am

8 0
3 years ago
Read 2 more answers
Other questions:
  • Which of these printers would be the most suitable for printing a large number of high quality black and white printouts?
    15·1 answer
  • Why is it important to know who reviews the information posted on a Web site?​
    15·1 answer
  • Sending a employee an email with important criticism represents a problem which communication process
    9·1 answer
  • On the pie chart below, which “slice” represents 30% of the budget?
    8·1 answer
  • Whenever Jim starts his laptop, he sees some commands and numbers appearing on his screen. These instructions are being processe
    12·2 answers
  • Before you can use a navigation control, you must _____. A. configure the web.config B. configure the global.asax C. configure t
    5·2 answers
  • Neymar machine that Run on electricity
    11·1 answer
  • Is Brainly cheating??
    10·2 answers
  • Can somebody hack ur account on Brainly bc I feel like I have bc I have answered waaaaaay more questions than shows on my profil
    13·1 answer
  • What does FTTB mean?
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!