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

Write a structured algorithm that prompts the user to input the name and price of an item and the quantity purchased. It should

print the name, price, quantity and amount due.
Computers and Technology
1 answer:
aksik [14]3 years ago
7 0

Answer:

The algorithm is as follows:

input name

input price

input quantity

amount = price * quantity

print name

print price

print quantity

print amount

Explanation:

The next three lines get input for product name, price and quantity bought

<em>input name</em>

<em>input price</em>

<em>input quantity</em>

This calculates the amount

amount = price * quantity

The next four lines print the product name, price, quantity bought and the calculated amount

<em>print name</em>

<em>print price</em>

<em>print quantity</em>

<em>print amount</em>

You might be interested in
A technician is at a small facility that has five computers connected to a central switch and accessing a single server for file
Crazy boy [7]

Answer:

c.

Explanation:

The swich is failing because it letting the four in but not the fith ond so it a faulty swich

8 0
3 years ago
A human subject’s photographs show two catchlights in each eye that are unwanted by the photographer. What is the most likely ca
Sphinxa [80]
A human subject's photographs show two catchlights in each eye that are unwanted by the photographer. what is the most likely cause of this problem? the fill light is too strong. the main light is too high.
7 0
3 years ago
File Letter Counter
Zanzabum

Answer:

The solution code is written in Python.

  1. fileName = input("Enter file name: ")
  2. target = input("Enter target character: ")
  3. with open(fileName, "r")as reader:
  4.    content = reader.read()
  5.    print(content.count(target))

Explanation:

Firstly, use <em>input() </em>function to prompt user for a file name. (Line 1)

Next, we use input() function again to prompt user input a target character (Line 2)

Create a reader object and user <em>read() </em>method to copy entire texts from to the variable<em> content </em>(Line 4 - 5).

At last we can get the number of times the specified character appears in the file using the Python string built-in method <em>count() </em>(Line 6)

5 0
4 years ago
Write and test a Python program to find and print the largest number in a set of real (floating point) numbers. The program shou
fenix001 [56]

I can't read oooooyeaaaa

3 0
4 years ago
PLEASE I NEED HELP WITH THIS I WILL GIVE BRAINLIST!!!!!
Neko [114]
It would be so you like chocolate because there is only two options. Yes or no
8 0
3 years ago
Read 2 more answers
Other questions:
  • If you need to add more data between column C and column D, you should _____.
    7·1 answer
  • Maya enjoys connectedWith her friends and social media apps but one of her friends post a lot of stuff that my thinks it’s annoy
    14·1 answer
  • What is the difference between a software package and integrated software
    7·1 answer
  • Individuals and businesses have concerns about data security while using Internet-based applications. Which security risk refers
    13·1 answer
  • EASY POINTS
    5·1 answer
  • The operation:
    8·1 answer
  • Which statement is true about the purpose of a work in process constraint?
    15·1 answer
  • Https://www.blooket.com/play?id=300932<br> please
    8·2 answers
  • Choose the correct term to complete the sentence.
    12·1 answer
  • Select the correct answer from each drop-down menu.
    5·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!