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
Vinvika [58]
3 years ago
11

A customer in a store is purchasing five items. Design a program that asks for the price of each item, and then displays the sub

total of the sale, the amount of sales tax, and the total. Assume the sales tax is 6 percent.
P.S. must be shown in psuedocode.
Computers and Technology
1 answer:
kykrilka [37]3 years ago
5 0
What language are you programming in? 

<span>If you are programming in C or C++, you could do something like this: </span>

<span>#include <iostream> </span>
<span>using namespace std; </span>

<span>int main(void) </span>
<span>{ </span>
<span>//declarations </span>
<span>double item1 = 0; </span>
<span>double item2 = 0; </span>
<span>double item3 = 0; </span>
<span>double item4 = 0; </span>
<span>double item5 = 0; </span>
<span>double subtotal = 0; </span>
<span>double total = 0; </span>
<span>double tax = 0; </span>

<span>//Enter Items </span>
<span>cout << "Please enter the price of item 1"; </span>
<span>cin >> item1; </span>

<span>cout << "Please enter the price of item 2"; </span>
<span>cin >> item2; </span>

<span>cout << "Please enter the price of item 3"; </span>
<span>cin >> item3; </span>

<span>cout << "Please enter the price of item 4"; </span>
<span>cin >> item4; </span>


<span>cout << "Please enter the price of item 5"; </span>
<span>cin >> item5; </span>


<span>//Compute subtotal </span>
<span>subtotal = (item1 + item2 + item3 + item4 + item5 + item6); </span>

<span>//Compute amount of tax </span>

<span>tax = subtotal * (.06); </span>

<span>//Compute total </span>

<span>total = subtotal + tax; </span>

<span>//Display subtotal, total, and amount of tax </span>

<span>cout < " The subtotal of the sale is: " << subtotal << endl; </span>
<span>cout < " The amount of sales tax is: " << tax << endl; </span>
<span>cout < " The total of the sale is: " << total << endl; </span>

<span>return 0; </span>

<span>}//end of function main </span>


<span>I know this is a very very basic C++ program but I hope it helps and good luck on your project!</span>
You might be interested in
A ___ is a mobile device that typically ranges from seven to ten inches in size.
Ber [7]

A tablet computer, or commonly known as tablet,  is a mobile device that typically ranges from seven to ten inches in size. It has mobile operating system and LCD touchscreen display processing circuitry. The touchscreen display is operated by  finger. The tablet has many all of the functionalities of a computer, but not all of them.


3 0
4 years ago
Stephanie is a zoologist who loves the outdoors and often travels the world researching wildlife and serving as a consultant it
Flauer [41]

Answer:

Nature (at all) is the best place for her to work at. Researcher or Environmental activist or Biologist Professor or Zoo care/assistant. All of the mentioned works can be applied to her.

Explanation:

8 0
3 years ago
Read 2 more answers
BUURTAIS
Alisiya [41]

Answer:

what I'm confused ???????

Explanation:

?

4 0
3 years ago
You're programming an infinite loop. What must you include in your code to prevent crashes?
natta225 [31]

You have to put repeat

4 0
3 years ago
Read 2 more answers
If we have the following array/list:
oee [108]

Answer:

The correct answer is A) "red"

Explanation:

Using arrays and lists are very helpful when writing programs. They help simplify programs by storing <u>related data</u> under one name.

In the question above the general name is <u>myList</u>. <em>The related data are red, orange, yellow, green, blue, indigo, and violet.</em>

This means that myList contains values a,b,c,d,e,f, and g. However myList[1] only contains value "red".

Cheers!

4 0
3 years ago
Read 2 more answers
Other questions:
  • You have been tracking your exercise routine, which involves running, lifting weights, yoga, and stretching. You want to see wha
    15·2 answers
  • To quickly jump to the last cell in a worksheet press ____.
    15·1 answer
  • Todays hard drives give up to or more than 1000gb of space. true or false
    6·1 answer
  • __________ is a data analysis technique used by decision makers to quickly get answers to complex queries that encompass multipl
    6·1 answer
  • Which of the following Web sites would be MOST credible?
    6·1 answer
  • True/False: not is evaluated first; and is evaluated next; or is evaluated last.
    13·1 answer
  • There are 2048bytes in4megabytes true or false​
    10·1 answer
  • Hello guys please help me <br>list and identify the components of computer ​
    15·1 answer
  • Which menu enables you to add content to the table of contents?.
    15·1 answer
  • onsider a file system on a disk that has both logical and physical block sizes of 512 bytes. assume that the information about e
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!