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
ollegr [7]
3 years ago
14

The Maui coffee shop sells coffee at $10.50 a pound plus the cost of shipping. Each order ships for $0.86 per pound + $1.50 fixe

d cost for overhead. Write a program that calculates the cost of an order. Get input from the user, calculate the cost, and display the output. using functions.
Computers and Technology
1 answer:
Rainbow [258]3 years ago
7 0

Answer:

  1. def calculateOrder():
  2.    pound = float(input("Enter number of pound ordered: "))
  3.    COST_PER_POUND = 10.5
  4.    SHIP_PER_POUND = 0.86
  5.    OVERHEAD = 1.5
  6.    shipping = SHIP_PER_POUND * pound  
  7.    total_cost = pound * COST_PER_POUND + shipping + OVERHEAD  
  8.    print("Total cost: $" + str(total_cost))
  9. calculateOrder()

Explanation:

The solution code is written in Python 3.

Firstly we declare a function calculateOrder (Line 1). Next we use input function to prompt user to enter the number of pound of coffee they wish to order (Line 2). Create three constant variables to hold the value of cost per pound, shipping fee per pound and the overhead charge (Line 3-5). We first calculate the shipping charge (Line 6) and then adding the shipping charge along with the cost for coffee ordered and the overhead charge (Line 7). Lastly, print the total cost (Line 8).

We test the function (Line 10).

You might be interested in
What information will she need to know in order to obtain assistance from the chief medical officer to reduce the number of deli
Serga [27]

The information that she need to know in order to obtain assistance from the chief medical officer to reduce the number of delinquent records is the Discharge Record Assembly .

What is  an incomplete health record or a delinquent health record?

An  incomplete health record is one that is often open after a set period of time such as more than 30 days and if not complete, the health record is said to be delinquent.

Note that Nurses are mandated to carefully maintain patient records. Therefore, The information that she need to know in order to obtain assistance from the chief medical officer to reduce the number of delinquent records is the Discharge Record Assembly .

Learn more about chief medical officer from

brainly.com/question/18696862

#SPJ1

6 0
1 year ago
What does Adsl stand for?
spin [16.1K]
ADSL stands for Asymmetric Digital Subscriber Line


7 0
3 years ago
Read 2 more answers
__________ refers to excavating the sides of an excavation to form one or a series of horizontal levels or steps, usually with v
Nutka1998 [239]

The answer is Benching.

Benching and sloping are methods used to protect employees working in excavations from cave–ins. Benches are cuts in the slope that provides protection by removing material at an angle to its floor. They give the slope a stair-step appearance with emphasis on the angles; the flatter the angle, the more the protection. Benches are split into two groups: simple and multiple.

6 0
3 years ago
Read 2 more answers
You must establish credit in order to buy a house true or false
iren2701 [21]

verry true, unless ou dont need a loan, if you have cash then the answer is false

8 0
4 years ago
What are the six primary roles that information system play in organizations? How are information system used in each context
Nina [5.8K]

The primary roles that information system play in organizations are:

  • Decision making
  • Operational management
  • Customer interaction
  • Collaboration on teams
  • Strategic initiatives
  • Individual productivity
<h3>How are information system used in each context</h3>

The six main functions of information systems in an organization are as follows:

1. Operational management entails the creation, maintenance, and enhancement of the systems and procedures utilized by businesses to provide goods and services.

2. Customer relationship management: Maintaining positive and fruitful relationships with customers, clients, students, patients, taxpayers, and anyone who come to the business to purchase goods or services is essential for success. Effective customer relationships contribute to the success of the business.

3. Making decisions: Managers make decisions based on their judgment. Business intelligence is the information management system used to make choices using data from sources other than an organization's information systems.

4. Collaboration and teamwork: These two skills complement the new information systems that allow people to operate from anywhere at a certain moment. Regardless of their position or location, individuals can participate in online meetings and share documents and applications.

5. Developing a competitive edge: A firm can establish a competitive advantage by outperforming its rival company and utilizing information systems in development and implementation.

6. Increasing productivity of objection: Smart phone applications that mix voice calls with online surfing, contact databases, music, email, and games with software for minimizing repetitive tasks are tools that can help people increase productivity.

Learn more about information system from
brainly.com/question/14688347
#SPJ1

4 0
1 year ago
Other questions:
  • According to the appendix what was the purpose of newspeak
    12·1 answer
  • Why is it important to develop a research plan?
    5·1 answer
  • Which of the following statement about CAD is NOT true A. It increase the productivity of designers B. It uses computer graphics
    8·1 answer
  • If you delete a shortcut from your desktop, have you also deleted the original file?
    11·2 answers
  • Your job is to choose a data structure to implement polynomials whose coefficients are positive integers, such as 17x^4+4x^3+0x^
    9·1 answer
  • 8.6 Code Practice: Question 2
    7·1 answer
  • You have been asked to advise a group of several universities who want to combine research efforts and store data in the cloud.
    9·1 answer
  • Types of digital divide ​
    15·1 answer
  • When you create a new database using --------- , the database includes prebuilt tables and forms which you can populate with dat
    15·1 answer
  • Which device is used to direct the flow of data on a computer network?
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!