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

List all information for each order item. Include an item total, which can be calculated by multiplying the Quantity and Paid ea

ch columns. Use a column alias for the calculated value to show the heading "Item Total" in the output
Engineering
1 answer:
Zigmanuir [339]3 years ago
3 0

Answer:

#include<iostream>

Using namespace std;

int main()

{

int n, qty;

double price, amount;

cout<<"Number of items ";

cin>>n;

cout<<"ITEM<<"\t"<<"QUANTITY"<<"\t"<<"PRICE"<<"\t"<<"ITEM TOTAL";

for(int i= 1; I<= n; i++)

{

cin>>qty;

cin>>price;

amount = qty * price;

cout<<i<<"\t "<<qty<<"\t"<<price<<"\t"<<amount;

}

}

Explanation

The above program is written in C++ programming language

5 variables are declared and used in the program

n is declared as an integer to represent the total number of items

qty is declared as integer to represent the total quantity of each item

price is declared as double to represent the amount of each individual item

amount is declared as double to represent the total amount of an item; it is gotten by qty * price

i is declared as integer to iterated between each items

The amount of each item is calculated within the iteration and also printed immediately

You might be interested in
A new 1.2-ha suburban residential development is to be drained by a storm sewer that connects to the municipal drainage system.
valentinak56 [21]

Answer:

Time of concentration, t_d ⇒ 1280 min

Peak runoff rate, Q_p ⇒4.185 ff³/s

Explanation:

See detailed explanation

6 0
3 years ago
Urgent please help!<br> What are non-ferrous metal and ferrous metal?
m_a_m_a [10]
In metallurgy, non-ferrous metals are metals or alloys that do not contain iron in appreciable amounts. Generally more costly than ferrous metals, non-ferrous metals are used because of desirable properties such as low weight, higher conductivity, non-magnetic property or resistance to corrosion
8 0
2 years ago
A 1.00 liter solution contains 0.46 M hydrocyanic acid and 0.35 M potassium cyanide If 25.0 mL of water are added to this system
victus00 [196]
I won leader solution contain 0.46 mL of hydronic I said of 0.3 potassium
4 0
2 years ago
Do not answer pls thank you
astra-53 [7]

The answer is answered! Explanation:

4 0
3 years ago
Read 2 more answers
(Almost) FREE POINTS!!!!! Hey there, Im writting a research paper, and I want to know if you think NASA is a waste of money or n
tatuchka [14]

Answer:

No I don't think NASA is a waste of time. I don't think its a waste of time because NASA is exploring what is beyond Earth and its important to know about Space.

Explanation:

3 0
3 years ago
Read 2 more answers
Other questions:
  • (Practice work, not graded)
    11·1 answer
  • Hi, any kind of help on these questions will be appreciated.
    10·1 answer
  • Does the Diesel engine have engine knock or detonation problem? Why?
    6·1 answer
  • A drainage ditch alongside a highway with a 3% grade has a rectangular cross-section of depth 4 ft and width 8 ft, and is fully
    12·1 answer
  • Assume, X Company Limited (XCL) is one of the leading 4th generation Life Insurance
    9·2 answers
  • 1. Using the formula above, complete this task.
    9·1 answer
  • Airplanes are the only way that people can take flight.<br> A. True<br> B. False
    14·2 answers
  • Technician A states that air tools generally produce more noise than electric tools, so wear ear protection when using air tools
    8·1 answer
  • Hey answer quick for 20 points
    7·2 answers
  • What is the correct procedure for mounting the m240 on the m122a1 tripod after the pintle is attached to the receiver?
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!