Please solve this for me I need it to study and my teacher apparently doesn't like to be a teacher
Computer Programming 1 - You’ll Love Our Mugs
program must be done in python
Scenario: “You’ll Love Our Mugs” sells mugs – there are no size or color choices, however, the customer has
the option of adding a logo and / or a name to the mug. The cost of the mug by itself is $10, the logo cost is
$3 per mug, and the name cost is $2 per mug. In addition, if the user purchases 10 or more mugs (with or
without logo/name) the shipping charge is $0. If they buy less than 10 mugs, the shipping cost is a flat $5 fee.
There is a sales tax of 7%. (The sales tax is calculated before the shipping fee.) SAMPLE PROGRAM RUN IS ON
PAGE 2
Create a program that does the following:
(1) Purpose of program
(2) Constants – basic mug price, logo price, name charge price, sales tax amount, shipping more than 10,
shipping less than ten
(3) Variables – name cost, logo cost, number ordered, mug price, total price, shipping cost, amount owed,
order mugs (string), logo (string), name (string)
(4) Welcomes the customer to the store, let’s them know they can either order a plain mug or have the
option of adding a logo and/or name, the minimum order is 5 mugs, and tells them about the shipping
fees as outlined in the scenario above. (print statements)
(5) Asks the user if they wish to order mugs (input function)- if not (if statement), thank them for visiting
the store and say you hope to see them again. (print statement)
(6) If the user orders mugs (while statement Y) – ask them how many (input function)
(7) Check to see if they ordered the minimum number. (if statement, print statement telling them they did
not make minimum)
(8) If they did not order the minimum number, let them know they did not (print statement) and give them
the option to re-enter the number. (input function)
(9) Calculate the mug price (calculation) and let them know the cost of the mugs without customization
(print statement – formatted for currency to 2 decimals)
(10) See if the customer wants to add a logo, (input function) if so (if statement Y) calculate the cost of the
logo (calculation) and let them know how much it cost for JUST THE LOGO.(print statement formatted to
currency 2 decimal places) If not (else), remind them the cost of just the mugs. (print statement
formatted to currency 2 decimals)
(11) See if the customer wants to add a name (input function), if so calculate the cost of the name
(calculation) and let them know how much it will cost for JUST THE NAME . (print statement formatted to
currency 2 decimals). If not (else), just remind them the cost of the mugs (print statement formatted to
currency 2 decimals)
(12) Calculate the total cost of the mugs (calculations) (including any logo or name if the user chose that
option)

(13) Calculate the sales tax owed. (calculation)
(14) Calculate the shipping charge (if..else statement – did they order enough for no shipping cost)
(15) Calculate the total amount owed. (calculation)
(16) Print the following: (print statements with variable names formatted to currency with 2 decimals)
Number ordered and cost of mugs without logo/name
Cost of Logo
Cost of Name
Cost of Shipping
Total Amount Owed
(17) Ask the user if they would like to order any more mugs (input function)
(18) End the program (press any key)

Answers

Answer 1

Using the knowledge in computational language in python it is possible to write a code that there are no size or color choices, however, the customer has the option of adding a logo and / or a name to the mug.

Writting the code:

import random

def do_something(first, second):

   result = first + second + random.randint(-5, 5)

   return result

import random

def do_something(first, second):

   result = first + second + random.randint(-5, 5)

   return result

do_something(3, 5)

print(result)

make_coffee(

   tap_water,

   electricity_from_wall_socket,

   blue_espresso_pod,

)

coffee_cup = make_coffee(

     tap_water,

     electricity_from_wall_socket,

     blue_espresso_pod,

)

See more about python at brainly.com/question/12975450

#SPJ1

Please Solve This For Me I Need It To Study And My Teacher Apparently Doesn't Like To Be A TeacherComputer

Related Questions

Which of the following are used to compare performance & efficiency of algorithms? (PROJECTSTEM 3.6 Lesson Practice Question #1

Answers

The option that can be used to compare the performance and  efficiency of algorithms:

Speed of the Algorithm (Option B); andMemory Use of the Algorithm (Option F).

How do you use the above to check the performance of an Algorithm?

Time, complexity and space complexity are the two basic metrics of an algorithm's efficiency, although they cannot be directly compared. As a result, time and space complexity are taken into account for algorithmic efficiency.

It should be emphasized that the faster an Algorithm executes, the more efficient it is. Furthermore, the less RAM space an algorithm uses during execution, the better it is.

Learn more about Algorithms:
https://brainly.com/question/22984934
#SPJ1

Why is MRI considered safer than CT?

Answers

Answer: MRIs don't use any radiation

Explanation:

how to type an absolute reference formula in exel

Answers

The way to type an absolute reference formula in excel is by: Before the column name and row number, for example that is $E$4, add the dollar sign ($). The equation will now be = B2*$E$4.

How can an absolute reference formula be added to Excel?

For adding absolute cell references to your calculations, there is a shortcut available. Press the F4 key to continue typing your formula after entering a cell reference. The cell reference is automatically made absolute by Excel! Excel will cycle through each possible absolute reference by pressing F4 repeatedly.

Therefore, Simply pick the cell reference(s) you want to change and click the F4 key to use the shortcut. Holding down the Shift key while pressing the F4 key will select all of the cell references you want to change at once.

Learn more about excel from

https://brainly.com/question/25863198
#SPJ1

Your Word Document Requirements
Part 1: Name: your name

Part 2: Data Source: the source of your data (do not copy and paste your data into the Word document)

Part 3: Questions to Answer: the questions your analysis will answer

Part 4: The Plan: the pseudocode outline of your program

Part 5: Plan Feedback from Your Partner: suggestions from your partner

Part 5: Results: copy and pasted results from your data file

Part 6: Interpretation: your interpretation of the results

Part 7: Final Feedback from Your Partner: description of what your partner found interesting

You can use this rubric

to evaluate your project before you submit it.
What to Submit
You will submit each of the following.

A Word document: Organize it as shown below.
Your data file: Saved with a .txt extension
Your program: Saved with a .txt extension since you cannot upload a .py file.
Your results file: Saved with a .txt extension.

Answers

Using the knowledge in computational language in python it is possible to write a code that the pseudocode outline of your program;

Writting the code:

import sys

import os

def main():

   # Check and retrieve command-line arguments

   if len(sys.argv) != 3:

       print(__doc__)

       sys.exit(1)   # Return a non-zero value to indicate abnormal termination

   fileIn  = sys.argv[1]

   fileOut = sys.argv[2]

   # Verify source file

   if not os.path.isfile(fileIn):

       print("error: {} does not exist".format(fileIn))

       sys.exit(1)

   # Verify destination file

   if os.path.isfile(fileOut):

       print("{} exists. Override (y/n)?".format(fileOut))

       reply = input().strip().lower()

       if reply[0] != 'y':

          sys.exit(1)

   # Process the file line-by-line

   with open(fileIn, 'r') as fpIn, open(fileOut, 'w') as fpOut:

       lineNumber = 0

       for line in fpIn:

           lineNumber += 1

           line = line.rstrip()   # Strip trailing spaces and newline

           fpOut.write("{}: {}\n".format(lineNumber, line))

           # Need \n, which will be translated to platform-dependent newline

       print("Number of lines: {}\n".format(lineNumber))

if __name__ == '__main__':

   main()

See more about python at brainly.com/question/12975450

#SPJ1

you want to identify all devices on a network along with a list of open ports on those devices. you want the results displayed in a graphical diagram. which tool should you use?

Answers

Since you want to identify all devices on a network along with a list of open ports on those devices. you want the results displayed in a graphical diagram. the tool that you use is Port scanner.

Why would someone use a port scanner?

Finding open ports on a network that might be receiving or transferring data is a process called port scanning. In order to find vulnerabilities, it also entails sending packets to particular ports on a host and examining the answers.

Note that Only when used with a residential home network or when specifically approved by the destination host and/or network are network probing or port scanning tools allowed. Any kind of unauthorized port scanning is absolutely forbidden.

Learn more about Port scanner from

https://brainly.com/question/28147402
#SPJ1

What happens if I replace my router?

Answers

If you replace your router you can get faster speeds, improved range, and new features.

Could the routers just be replaced?There are a number of convincing reasons to substitute your own router in its place, including the following: A new router might offer a better and more stable connection.Just unplug, take out, and set up the new router. To do this, connect an Ethernet cable from the router to the modem and modify the network name and password as usual.You may often choose between purchasing a box that includes both a modem and a router separately from your Internet service provider. You may use any option to access the Internet. Know that if you purchase a combo device and one part malfunctions (such as the modem or router).

To learn more about router refer to:

https://brainly.com/question/24812743

#SPJ4

Which of the following roles is responsible for
overseeing the data and operation of databases?
computer support specialist
data miner
database programmer
database administrator

Answers

Create and maintain databases that are appropriate for the needs of their organizations, as database managers or administrators. These IT specialists are in charge of maintaining, storing, protecting, and troubleshooting databases.

What is database management?

Data is stored, retrieved, and analyzed using software called database management systems (DBMS). Users can create, read, update, and delete data in databases using a DBMS, which acts as an interface between them and the databases.

A software program is used to administer databases, or database management systems. As an illustration, popular commercial databases like MySQL, Oracle, etc. are utilised in a variety of applications.

A DBMS provides an interface for carrying out a variety of tasks, including building databases, putting data in them, updating data, creating tables in the databases, and many other things.

It offers database security and safety. Additionally, it preserves data consistency when there are many users.

Hence to conclude dbms has the responsibilty of overseeing the data and operation of databases

To know more on dbms follow this link

https://brainly.com/question/24027204

#SPJ1

Answer:

D!

Explanation:

When a person’s personal information is collected by other parties, it refers to the issue of_______.

Answers

Answer:

The answer should be privacy

Explanation:

Answer: it refers to the issue of version control privacy personality so

The answer should be privacy

Explanation:

as far as cost of product per unit area, sprayable herbicide products are more expensive than granular products you can apply with a spreader.

Answers

As far as cost of product per unit area, sprayable herbicide products are more expensive than granular products you can apply with a spreader is a false statement.

Products for herbicide spraying are they more expensive than granular ones?

Simply because the liquid formulation is sprayed across the surface of the weed's leaf and does not rely on additional moisture to stick to the leaf, liquid sprays are generally more effective than their granular counterparts, according to Purdue University Turfgrass Science.

Therefore, Given that both products' active ingredients are the same, granular fertilizer plus postemergence herbicide products are more expensive per unit area treated than sprayable postemergence herbicide products.

Learn more about sprayable herbicide products from

https://brainly.com/question/29557923
#SPJ1

See full question below

as far as cost of product per unit area, sprayable herbicide products are more expensive than granular products you can apply with a spreader. True or false.

Write a similar description of what happens when you print a document.​

Answers

Full-color printing is achieved by using just four ink colors – Cyan, Magenta, Yellow, and Black or CMYK (see box story below on what the K stands for).

These are called process colors and full-color printing is also called 4-color process printing.

What does it mean to print a document?

Printing is the process of printing text and images in large quantities using a master form or template.  

It it to be noted that cylinder seals and items such as the Cyrus Cylinder and the Cylinders of Nabonidus are among the oldest non-paper creations using printing.

Learn more about printing:
https://brainly.com/question/21090861
#SPJ1

different between in class and structure​

Answers

Answer:

Structures are value types; classes are reference types

Other Questions
Make a list of what you will say to build on your claim. Include two reasons, a way to address a counterclaim, and a conclusion What role did thanksgiving play during the civil war era? why do you think president lincoln encouraged everyone to participate in this tradition?. TRUE/FALSE. foods grown and livestock raised in accordance with uda regulations on use of synthetic fertilizers, herbicide, pesticides, preservatives and other chemicals. Which set of ordered pairs represents a function? which statement is not true about using diet soda pop? responses it saves you about 120 calories per 8 oz serving. it saves you about 120 calories per 8 oz serving. it is a good low calorie substitute for milk. it is a good low calorie substitute for milk. it will decrease your intake of simple sugars. it will decrease your intake of simple sugars. artificial sweeteners in limited amounts are fine to use for most people. In the figure below, points D, B, E, F, and lie in plane X.Points A and C do not lie in plane X.For each part below, fill in the blanks to write a true statement. Find the length of the segment connecting (-4, 3) and (-5,2). Providean answer accurate to the nearest tenth. Drag the terms in the left-hand column to the appropriate blanks on the right View Available Hints) Reset Help base level 1 Ain is a bend in a step narrow bedrock valley terrace 2. The lowest level to which a stream can code is called Incised meander meander 3. An is the remnant of a former floodplain 4. Examples of local base level include a stream or any Noodplain 5. A sweeping bend of a stream which is migrating laterally in a wide, at valley is called ain) 6.The flat, broad are surrounding a stream a referred to as an Submit 6:58 12/1/2 Prisen Home End PgUp PODE 96 & 7 ( 6 00 0 T Y U o H J . L ViewPotterdasignment Problemid=1355555 9 of 11 A Revi Take a moment to think about to the Colorado River has evolved through time. Focus on how changing base level and stream inclusion created andforms, such as incised meanders and incons, and arrange the events accordingly Rank from oldest to youngest View Available Hints Reset Help Atramenty across foodplan voloping menor This amata which nused meanders for The base level of the streams wted by hulplift the begins to ince downward A consome by the cutoff of an incise manner which are the Oldest Event Youngest Event Submit O et E 8:59 PM 12/1/2020 ) Prtsen Home 19 End POUR POD & % 5 6 7 8 ) 0 9 Il I Y I P The preentation of your film club mut include information about time, place, teacher, activitie and goal How do you solve complex fractions addition? show between force pressure and area 4. Find an example of a print or Internet ad that includes images and text, and then answerthe following questions about it.a. Describe the ad. (1-3 sentences. 1.0 points) Friendships based on which of the following criteria are more likely to be found among adolescents than younger children?A. playB. associationC. shared activitiesD. loyalty the votes for Tigers outnumbered the votes for Lions by a ratio of 240 to 160. Describe the meaning of the statement and identify if its part to part or part to whole ratio find the slope (m) of the line What is the value of X Which conclusion regarding the populations of south american countries from 2010 to 2015 can be drawn from the map?. The Algebra 3-4 PLC had to write new unit tests for thedistrict. Mr. Bihn took eight hours to write one new test.Mrs. Inscoe took five hours to write one new test. Howlong would it have taken them had they workedtogether? PLEASE HELP WILL GIVE BRAINLIEST Here are some of Mexicos holidays, based on the table, complete the sentences by writing the correct dates. Scientific MethodDefine the following:a. Indegendent Variable:b. Dependent Variable:c. Control Variable:d. Controlled experimente. Hypothesis:1. You have measured the rate at which a fish breaths at various temperatures by courting the rate at which its gills open. The data table is shown below. Create a line graph depicting the resultsa. What is the independent variabie? whyb. The dependent variable? Explain whiy.c. What happens to breathing rate with increase in temperature?d. Identity at least 3 control variabios in this experiment.e. What do you think would happen if you raised the temperature even more? Why would it be a bad ides to do this?Biochemistry2. Fill in chart below.