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
Cerrena [4.2K]
2 years ago
14

Write a program that allows the user to input a total dollar amount for an online shopping order and computes and outputs the sh

ipping cost based on the following schedule:
psudocode,python.flowchart
Computers and Technology
1 answer:
tia_tia [17]2 years ago
5 0

The program written in python 3 which prints the shipping cost based on the total shopping cost is written thus :

cost = int(input('Enter your shopping cost : '))

<em>#accepts</em><em> </em><em>integer</em><em> </em><em>input</em><em> </em><em>of</em><em> </em><em>the</em><em> </em><em>customer's</em><em> </em><em>shopping</em><em> </em><em>cost</em><em> </em>

if cost < 50 :

print('ship within USA : $6 ')

print('ship to canada : $8')

<em>#if</em><em> </em><em>cost</em><em> </em><em>of</em><em> </em><em>shopping</em><em> </em><em>is</em><em> </em><em>below</em><em> </em><em>$</em><em>50</em><em>,</em><em> </em><em>shopping</em><em> </em><em>to</em><em> </em><em>USA</em><em> </em><em>is</em><em> </em><em>$</em><em>6</em><em> </em><em>and</em><em> </em><em>Canada</em><em> </em><em>$</em><em>8</em>

elif (cost >=50) & (cost < 100):

print('ship within USA : $9 ')

print('ship to canada : $12')

<em>#if cost of shopping is between $50 and below $100, shopping to USA is $9 and Canada $12</em>

elif (cost>=100) & (cost < 150):

print('ship within USA : $12')

print('ship to canada : $15')

<em>#if cost of shopping is between $</em><em>100</em><em> </em><em>and below $</em><em>150</em><em>, shopping to USA is $</em><em>12</em><em> and Canada $</em><em>15</em>

elif cost > 150 :

print('ship within USA : Free')

print('ship to canada : Free')

<em>#if cost of shopping is above $150 ; then shipping cost is free to both countries. </em>

Learn more :brainly.com/question/24847242

You might be interested in
We are sending a 30 Mbit MP3 file from a source host to a destination host. All links in the path between source and destination
Daniel [21]

Answer:

Option  A is the correct answer.

Explanation:

8 0
4 years ago
50 POINTS How do you express yourself and your creativity through computer science?
Igoryamba

Answer:

1. I express myself through the designing, development and analysis of software and hardware used to solve problems in a variety of business, scientific and social contexts.

2. support the development of general reasoning, problem-solving and communication skills.

3. Through avoiding in repetious tasks and simplifying such works.

3 0
3 years ago
Edward has started up a new company with his friend, Matthew. Currently, he has only two people working with him. Which type of
Kruka [31]

A Peer-to-peer network architecture would work best for Edward and Matthew.

Although they have the option of creating a Client-Server type of network architecture, the number of people that they are currently working with would cost them a lot more than a peer-to-peer architecture.

One of the advantages of using a Peer-to-peer network architecture for a small network would be the access of files between all computers in the network. Even if one of the computers will fail, the other computers will still have access to the different files and information they will need to keep the company moving forward.

6 0
3 years ago
What type of device can be used to block unwanted traffic initiated from the internet and can also restrict internet access from
statuscvo [17]
It is the firewall exactly.
4 0
3 years ago
Describe a situation in which you have experienced harm as a consequence of a failure of computer security. Was the failure mali
frutty [35]

Answer: The goals of computer security are to protect computers and users from data theft or loss as well as damage to any part of the computer.

Explanation: Common means of achieving computer security are firewalls, anti-virus software and this can fail due to hardware problems  or   weaknesses that prevent malicious attacks.

To answer this question, think of a time when you experienced any one of these. For example, personally, I was once an unfortunate victim of a general malicious attack that took advantage of a weakness in my anti-virus software. After clicking on a link on a dodgy website, a virus was installed on my computer. My computer finally crashed, without any hope of restarting it. I lost all my data and I had to buy a new computer.  This was a malicious attack.

However, sometimes people can be specifically targeted to steal their data or monitor their activities.  

7 0
3 years ago
Other questions:
  • Aubrey didnt like to use graphics or images on her slides. She preferred to use only a title for her slides and bullet-poinged t
    14·2 answers
  • Chloe is building a kiosk-based Excel application. She wants to make some modifications to the screen elements in order to keep
    8·1 answer
  • Find the 65th percentile from the data. The data consist of class interval from 0-10, 10-20, 20-30, 30-40, 40-50, 50-60 and freq
    8·1 answer
  • Programmers insert documentation called facts into the program code.? <br> a. True <br> b. False
    9·1 answer
  • Need help with just #8
    12·1 answer
  • A corporation needs an operating system that allows the various teams in its office to network and collaborate on projects. Whic
    10·1 answer
  • What area displays the title of the document
    14·1 answer
  • What is the difference between word processing software and email?
    12·2 answers
  • Write a Java program that launches 1000 threads. Each thread adds 1 to a variable sum that initially is 0. You need to pass sum
    11·1 answer
  • Typically, hybrid drives use SSD to store the operating system and applications and hard disks to store videos, music, and docum
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!