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
Natasha_Volkova [10]
3 years ago
5

The shipping charges per 500 miles are not prorated. For example, if a 2-pound package is shipped 550 miles, the charges would b

e $2.20. Write a program that asks the user to enter the weight of a package and then displays the shipping charges.
Computers and Technology
1 answer:
Sedbober [7]3 years ago
4 0

Answer:

The solution code is written in Python:

  1. COST_PER_500MI = 1.1
  2. weight = float(input("Enter weight of package: "))
  3. total_cost = weight * COST_PER_500MI
  4. print("The shipping charges is $" + str(round(total_cost,2)))

Explanation:

Based on the information given in the question, we presume the cost per 500 miles is $1.10 per pound ($2.20 / 2 pound).

Create a variable COST_PER_500MI to hold the value of cost per 500 miles (Line 1). Next, prompt user input the weight and assign it to variable weight (Line 3). Calculate the shipping charge and display it using print function (Line 4-5).

You might be interested in
Which of the following is the MOST important consideration when planning your budget?
nata0808 [166]
<span>Budget for fixed expenses before flexible expenses.</span>
5 0
4 years ago
Read 2 more answers
Which of the following identifies your location in a document? I-beam Icon Insertion Point Pointing Arrow
Delicious77 [7]
The answer is Insertion Point. In Microsoft Word, the insertion point is the blinking vertical line in the document. It will identify the location where you can enter or alter text on the page. When creating a new document, the insertion point is located in the top-left corner of the document. 
8 0
3 years ago
___________ poses the greatest risk to workers because it is more common and more easily transmitted than other bloodborne disea
Evgesh-ka [11]

Answer: Hepatitis

Explanation: According to the center for disease control and prevention (CDC) HIV, hepatitis B and Hepatitis C are the most common bloodborne pathogens which workers are more susceptible to contract. According to CDC's the estimated risk of an HIV infection is 0.3 percent, 1 from 300 people. Hepatitis B has from 6 to 30 percent causing serious liver damage. And Hepatitis C has a risk between 2 and 4 percent

3 0
2 years ago
What would i do for the career goals
777dan777 [17]
You can use doctor or teacher
5 0
4 years ago
Read 2 more answers
What type of DNS server is not configured with any zones, but fields DNS queries and sends iterative queries to upstream DNS ser
SpyIntel [72]

Answer:

Authoritative server.

Explanation:

DNS is an application layer protocol of the OSI and the TCP/IP suite network model. It is called the domain name server, as it helps client host to lookup or resolve domain name to IP addresses. An example of a DNS server is the authoritative server.

The authoritative server is a zone-less server that fields DNS queries and sends iterative queries to other DNS servers and stores the result.

8 0
3 years ago
Read 2 more answers
Other questions:
  • Colby has a presentation with steps demonstrating how to make his famous cheesecake. He would like to post this on his new websi
    5·1 answer
  • ____ programs are software programs that are distributed on the honor system.
    7·2 answers
  • How do you delete a slide from your presentation after selecting it
    8·1 answer
  • Deciding whether to explode a process further or determine that it is a functional primitive is a matter of experience, judgment
    8·1 answer
  • Assume that scotus is a two-dimensional character array that stores the family names (last names) of the nine justices on the Su
    14·1 answer
  • For each of the descriptions below, perform the following tasks:
    6·1 answer
  • MyProgramming Lab
    12·1 answer
  • What is required when opening a checking account?
    10·2 answers
  • 1. Which of the following is not a question that should be asked when planning a Windows Server 2019 installation?
    13·1 answer
  • I need help! Please please
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!