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]
4 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]4 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
The mass flow rate in a 4.0-m wide, 2.0-m deep channel is 4000 kg/s of water. If the velocity distribution in the channel is lin
IceJOKER [234]

Answer:

V = 0.5 m/s

Explanation:

given data:

width of channel =  4 m

depth of channel = 2 m

mass flow rate = 4000 kg/s = 4 m3/s

we know that mass flow rate is given as

\dot{m}=\rho AV

Putting all the value to get the velocity of the flow

\frac{\dot{m}}{\rho A} = V

V = \frac{4000}{1000*4*2}

V = 0.5 m/s

4 0
3 years ago
What is the activation energy (Q) for a vacancy formation if 10 moles of a metal have 2.3 X 10^13 vacancies at 425°C?
Yakvenalex [24]

Answer:

Activation\ Energy=2.5\times 10^{-19}\ J

Explanation:

Using the expression shown below as:

N_v=N\times e^{-\frac {Q_v}{k\times T}

Where,

N_v is the number of vacancies

N is the number of defective sites

k is Boltzmann's constant = 1.38\times 10^{-23}\ J/K

{Q_v} is the activation energy

T is the temperature

Given that:

N_v=2.3\times 10^{13}

N = 10 moles

1 mole = 6.023\times 10^{23}

So,

N = 10\times 6.023\times 10^{23}=6.023\times 10^{24}

Temperature = 425°C

The conversion of T( °C) to T(K) is shown below:

T(K) = T( °C) + 273.15  

So,  

T = (425 + 273.15) K = 698.15 K  

T = 698.15 K

Applying the values as:

2.3\times 10^{13}=6.023\times 10^{24}\times e^{-\frac {Q_v}{1.38\times 10^{-23}\times 698.15}

ln[\frac {2.3}{6.023}\times 10^{-11}]=-\frac {Q_v}{1.38\times 10^{-23}\times 698.15}

Q_v=2.5\times 10^{-19}\ J

4 0
3 years ago
The maximum stress that a bar will withstand before failing is called • Rapture Strength • Yield Strength • Tensile Strength • B
konstantin123 [22]

Answer: Rupture strength

Explanation: Rupture strength is the strength of a material that is bearable till the point before the breakage by the tensile strength applied on it. This term is mentioned when there is a sort of deformation in the material due to tension.So, rupture will occur before whenever there are chances of failing and the material is still able to bear stresses before failing.  

7 0
3 years ago
A mixture of air and methane is formed in the inlet manifold of a natural gas-fueled internal combustion engine. The mole fracti
german

Answer:

The mass flow rate of the mixture in the manifold is 6.654 kg/min

Explanation;

In this question, we are asked to calculate mass flow rate of the mixture in the manifold

Please check attachment for complete solution and step by step explanation.

4 0
3 years ago
For some transformation having kinetics that obey the Avrami equation, the parameter n is known to have a value of 1.7. If, afte
luda_lava [24]

Answer:

It would take approximately 305 s to go to 99% completion

Explanation:

Given that:

y = 50% = 0.5

n = 1.7

t = 100 s

We need to first find the parameter k from the equation below.

exp(-kt^n)=1-y

taking the natural logarithm of both sides:

-kt^n=ln(1-y)\\kt^n=-ln(1-y)\\k=-\frac{ln(1-y)}{t^n}

Substituting values:

k=-\frac{ln(1-y)}{t^n}= -\frac{ln(1-0.5)}{100^1.7} = 2.76*10^{-4}

Also

t^n=-\frac{ln(1-y)}{k}\\t=\sqrt[n]{-\frac{ln(1-y)}{k}}

Substituting values and y = 99% = 0.99

t=\sqrt[n]{-\frac{ln(1-y)}{k}}=\sqrt[1.7]{-\frac{ln(1-0.99)}{2.76*10^{-4}}}=304.6s

∴ t ≅ 305 s

It would take approximately 305 s to go to 99% completion

8 0
3 years ago
Read 2 more answers
Other questions:
  • An important ethical concern for behavior analysts involves special cautions in interactions with a client in any capacity outsi
    5·1 answer
  • Determine the output torque To????????p????????, the speed reduction ratio of the transmission R, the tangential loads imposed o
    13·2 answers
  • What are the BENEFITS and RISKS of using automobiles?
    7·1 answer
  • A partnership between a gaming company and moviemakers might happen in what two ways?
    6·1 answer
  • To remove a spark plug the technician would need a(n) ___socket​
    7·2 answers
  • Are the wooden pillars shown in the image below, a dead load?
    10·1 answer
  • Does anyone know obamas last name???? please help its for a friend I swear!!!111!!11!
    8·1 answer
  • सत्य से अधिक उपयोगी एवं आज्ञापालन से श्रेष्ठ क्या है ?<br>answer fast plz​
    9·1 answer
  • I need to solve for d
    11·2 answers
  • 3.8 LAB - Select lesson schedule with multiple joins
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!