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
Two Carnot engines operate in series such that the heat rejected from one is the heat input to the other. The heat transfer from
kykrilka [37]

Answer:

Given:

high temperature reservoir T_{H} =1000k

low temperature reservoir T_{L} =400k

thermal efficiency n_{1}= n_{2}

The engines are said to  operate on Carnot cycle which is totally reversible.

To find the intermediate temperature between the two engines, The thermal efficiency of the first heat engine can be defined as

n_{1} =1-\frac{T}{T_{H} }

The thermal efficiency of second heat engine can be written as

n_{2} =1-\frac{T_{L} }{T}

The temperature of intermediate reservoir can be defined as  

1-\frac{T}{T_{H} } =1-\frac{T_{L} }{T} \\T^2=T_{L} T_{H} \\T=\sqrt{T_{L} T_{H} }\\T=\sqrt{400*1000} =632k

8 0
3 years ago
A car is about to start but it blows up. what is the problem with the car<br> ?
ratelena [41]

Answer:

because there is a bomb

6 0
3 years ago
Read 2 more answers
What was the reason alloys were used instead of metals like copper, tin, or iron?
lidiya [134]

Alloys were stronger and more durable

8 0
2 years ago
With 64 KB of memory and 8 bits in each memory location, how wide should the address bus be to access all 64 KB of memory? (k =
marishachu [46]

Answer:

16-bit wide

Explanation:

In order to find the width of the address bus, we need first to know how many memory cells it is needed to address.

If the size memory is 64 KB, this means that the memory size, in bytes, is equal to the following quantity:

64 KB = 2⁶ * 2¹⁰ bytes = 2¹⁶ bytes.

In order to address this quantity of cell positions, the address bus must be able to address 2¹⁶ bytes, so it must have 16-bit wide.

3 0
3 years ago
W10L1-Show It: Pythagorean Theorem<br> Calculate the total material in the picture.<br> 4<br> 3
Fantom [35]

Answer:

35

Explanation: I really dont even know, I just used up all my tries on it and got it wrong on every other thing i chose. So it's 35 i believe cause its the only answer i didnt choose.

7 0
3 years ago
Other questions:
  • Is CO, an air pollutant? How does it differ from other emissions resulting from the combustion of fossil fuels?
    7·1 answer
  • Which of the following can minimize engine effort in save fuel
    15·2 answers
  • If the electric field just outside a thin conducting sheet is equal to 1.5 N/C, determine the surface charge density on the cond
    9·1 answer
  • A signal containing both a 5k Hz and a 10k Hz component is passed through a low-pass filter with a cutoff frequency of 4k Hz. Wh
    9·1 answer
  • ________ is the amount of time it takes a person’s eyes to regain focus after seeing glare.
    8·2 answers
  • What is the value of the energy (in Joules) stored by the mobile phone battery (capacity of 1.8 Ah), if it is rated at 3.7 V
    15·2 answers
  • A flashed steam geothermal power plant is located where underground hot water is available as saturated liquid at 700 kPa. The w
    14·1 answer
  • Which option identifies the step skipped in the following scenario?
    9·2 answers
  • How does the Ivanpah Solar Plant make electricity?
    12·1 answer
  • Conclude from the scenario below which type of documentation Holly should use, and explain why this would be the best choice
    15·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!