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
Technician A ay that acid rain doe the mot harm when it firt fall on a finih. Technician B ay that hard water potting i uually j
Tamiku [17]

Technician B is right say that hard water potting i usually jut a Surface problem that can be wahed off.

What do you mean by Hard water?

The amount of dissolved calcium and magnesium in the water determines its hardness. Calcium and magnesium are the main dissolved minerals in hard water. The last time you washed your hands, you might have actually felt the effects of hard water.

What do you mean by acid rain?

Any type of precipitation that contains acidic elements, such as sulfuric or nitric acid, that falls to the ground from the atmosphere in wet or dry forms is referred to as acid rain, also known as acid deposition. Rain, snow, fog, hail, and even acidic dust can fall under this category.

Some plants are sensitive to excessive moisture around their root zone, so it may be necessary to increase drainage when growing plants in pots. Additionally, standing water at the bottom of the pot can cause root rot.

Many university agriculture extension agencies have thoroughly debunked the old garden myth that adding rocks to the bottom of a pot will increase drainage.

Learn more about hard water click here:

brainly.com/question/28178305

#SPJ4

6 0
1 year ago
A monatomic ideal gas undergoes a quasi-static process that is described by the function p(????)=p1+3(????−????1) , where the st
Alenkasestr [34]

A pure gas made up only of atoms. The noble gases argon, krypton, and xenon are some examples.

Concepts:

Perfect gas law: Work performed on the system: PV = nRT W = -∫PdV

Energy preservation formula: U = Q + W

Reasoning:

W = nRT ln(Vi/Vf) when the process is isothermal.

The temperature is said to be constant, and we are given n, Pfinal, and Vfinal.

Calculation information:

(A) A process that is isothermal has a constant temperature.

PV = nRT, and hence, constant

nRT = PV = 101000 Pa*25*10-3 m3

For a process that is isothermal, W = nRT ln(Vi/Vf).

W/(nRT)=3000 J/(101000 Pa*25*10-3 m3)=-1.19

(The gas produces -W of labor.)

Vi = (25*10-3 m3)/3.28 = 7.62*10-3 m3 = 7.62 L where Vf/Vi = exp(1.19) = 3.28 Vi (b) for a perfect gas PV = nRT. 101000 Pa*25*10-3 m3 = (8.31 J/K) T. T = 303.85 K.

To know more about process click here:

brainly.com/question/29310303

#SPJ4

5 0
1 year ago
Which type of inappropriate practice most likely occurred if a researcher takes credit for someone else’s idea and does not ackn
Rashid [163]

Answer: the answer is plagiarism.

Explanation: Plagiarism is the act of taking credit from someone else's works or ideas, without acknowledging the author. <u>Conflict of interest</u> occurs when an employee has <u>interests that are at odds to each other</u>, which isn't shown at the excerpt given in the exercise. <u>Fabrication</u> is the <u>creation of intellectual property</u>, also not shown in the exercise, and <u>falsification</u> is the <u>creation of a scientific hypothesis</u> that <u>cannot be verified</u> by lack of practical evidence, which is not the case described as well.

7 0
3 years ago
Air flows from a large reservoir in which the pressure and temperature are 1 MPa and 30°C, respectively, through a convergent–di
SSSSS [86.1K]

Answer:

The solution is attached in the attachment.

3 0
2 years ago
Read 2 more answers
1. A thin plate of a ceramic material with E = 225 GPa is loaded in tension, developing a stress of 450 MPa. Is the specimen lik
mina [271]

Answer:

fracture will occur as the value is less than E/10 (= 22.5)

Explanation:

If the maximum strength at tip Is greater than theoretical fracture strength value then fracture will occur and if the maximum strength is lower than theoretical fracture strength then no fracture will occur.

\sigma_m = 2\sigma_o [\frac{a}{\rho_t}]^{1/2}

=  2\times 750 (\frac{\frac{0.2mm}{2}}{0.001 mm}})^{1/2}

                 = 15 GPa

fracture will occur as the value is less than E/10 = 22.5

7 0
3 years ago
Other questions:
  • Data becomes information when it is__________ in some way and made___________
    5·1 answer
  • Explain why different types of equipment are required for proper conditioning of air
    7·1 answer
  • What are your thoughts on physical education ?
    12·2 answers
  • Durante el segundo trimestre de 2001, Tiger Woods fue el golfista que más dinero ganó en el PGATour. Sus ganancias sumaron un to
    9·1 answer
  • Drag each label to the correct location on the image.
    5·2 answers
  • How much metal can be removed from a cracked drum to restore surface
    9·2 answers
  • Answer the following questions about your own experience in the labor force.
    15·1 answer
  • Find the capacitance reactance of a 0.1 micro frequency capacitor 50Hz and at 200Hz​
    9·1 answer
  • Can someone please help me?
    11·2 answers
  • A batch of 1000 is split into 10 smaller batches of equal size 100. The processing time of each unit is 2
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!