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
I don't know what is this​
pychu [463]
That means “ if possible then link”
8 0
3 years ago
What is one of the most common ways workers get hurt around machines
-BARSIC- [3]

Answer:

if their body parts stuck in a machine,if machine expl

Explanation:

ode.

4 0
3 years ago
There are two identical oil tanks. The level of oil in Tank A is 12 ft and is drained at the rate of 0.5 ft/min. Tank B contains
Luba_88 [7]

Answer:

  16 minutes

Explanation:

This is an example of a class of problems in which two quantities start with different initial values and change at different rates. In such problems, the rates of change are generally ones that cause the values to converge.

The question usually asks when the values will be the same. The generic answer is, "when the difference in rates makes up the difference in initial values."

Here the tanks differ in initial fill height by 12 -8 = 4 ft. The rates of change differ by 0.5 -0.25 = 0.25 ft/min. The more filled tank is draining faster (important), so the fill heights will converge after ...

  (4 ft)/(0.25 ft/min) = 16 min

The level in the two tanks will be the same after 16 minutes.

__

<em>Additional comment</em>

The oil levels at that time will be 4 ft.

You can write two equations for height:

  y = 12 -0.5x . . . . . . . height in feet after x minutes (tank A)

  y = 8 -0.25x . . . . . .  height in feet after x minutes (tank B)

These will be equal when ...

  y = y

  12 -0.5x = 8 -0.25x

  4 = 0.25x . . . . . . . . . . add 0.5x -8

  16 = x . . . . . . . . . . . . multiply by 4 . . . . time to equal height

The graph shows when the tanks will have equal heights and when they will be drained.

4 0
2 years ago
Air enters a cmpressor at 20 deg C and 80 kPa and exits at 800 kPa and 200 deg C. The power input is 400 kW. Find the heat trans
aksik [14]

Answer:

The heat is transferred is at the rate of 752.33 kW

Solution:

As per the question:

Temperature at inlet, T_{i} = 20^{\circ}C = 273 + 20 = 293 K

Temperature at the outlet, T_{o} = 200{\circ}C = 273 + 200 = 473 K

Pressure at inlet, P_{i} = 80 kPa = 80\times 10^{3} Pa

Pressure at outlet, P_{o} = 800 kPa = 800\times 10^{3} Pa

Speed at the outlet, v_{o} = 20 m/s

Diameter of the tube, D = 10 cm = 10\times 10^{- 2} m = 0.1 m

Input power, P_{i} = 400 kW = 400\times 10^{3} W

Now,

To calculate the heat transfer, Q, we make use of the steady flow eqn:

h_{i} + \frac{v_{i}^{2}}{2} + gH  + Q = h_{o} + \frac{v_{o}^{2}}{2} + gH' + p_{s}

where

h_{i} = specific enthalpy at inlet

h_{o} = specific enthalpy at outlet

v_{i} = air speed at inlet

p_{s} = specific power input

H and H' = Elevation of inlet and outlet

Now, if

v_{i} = 0 and H = H'

Then the above eqn reduces to:

h_{i} + gH + Q = h_{o} + \frac{v_{o}^{2}}{2} + gH + p_{s}

Q = h_{o} - h_{i} + \frac{v_{o}^{2}}{2} + p_{s}                (1)

Also,

p_{s} = \frac{P_{i}}{ mass, m}

Area of cross-section, A = \frac{\pi D^{2}}{4} =\frac{\pi 0.1^{2}}{4} = 7.85\times 10^{- 3} m^{2}

Specific Volume at outlet, V_{o} = A\times v_{o} = 7.85\times 10^{- 3}\times 20 = 0.157 m^{3}/s

From the eqn:

P_{o}V_{o} = mRT_{o}

m = \frac{800\times 10^{3}\times 0.157}{287\times 473} = 0.925 kg/s

Now,

p_{s} = \frac{400\times 10^{3}}{0.925} = 432.432 kJ/kg

Also,

\Delta h = h_{o} - h_{i} = c_{p}\Delta T =c_{p}(T_{o} - T_{i}) = 1.005(200 - 20) = 180.9 kJ/kg

Now, using these values in eqn (1):

Q = 180.9 + \frac{20^{2}}{2} + 432.432 = 813.33 kW

Now, rate of heat transfer, q:

q = mQ = 0.925\times 813.33 = 752.33 kW

4 0
3 years ago
What is the least count of screw gauge?<br> (a) 0.01 cm<br> (b) 0.001 cm<br> (c) 0.1 cm<br> (d) 1 mm
Nonamiya [84]
Its 0.001

0.01 x100 = 1mm
0.001x100=0.1mm
0.1=10mm
1m
3 0
3 years ago
Other questions:
  • You read a research study that concludes that the higher a student's self-esteem, the better he performs in school. This sort of
    5·1 answer
  • Vapor lock occurs when the gasoline is cooled and forms a gel, preventing fuel flow and
    7·2 answers
  • A classroom that normally contains 40 people is to be air-conditioned with window air-conditioning units of 5 kW cooling capacit
    6·1 answer
  • A six-lane multilane highway (three lanes in each direction) has a peak-hour factor of 0.90, 11-ft lanes with a 4-ft right-side
    11·1 answer
  • 3. Technician A says passive permanent
    5·1 answer
  • Describe what viscoelastic behavior means
    7·1 answer
  • Yes I’m very cool I promise.
    15·1 answer
  • What is true about a point and shoot camera?
    9·1 answer
  • GOOD AFTERNOON GUYSS!! ​
    15·2 answers
  • 1. A cylindrical casting is 0.3 m in diameter and 0.5 m in length. Another casting has the same metal is rectangular in cross-se
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!