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
If a law enforcement officer stops a vehicle for a traffic violation and finds a front-seat passenger 18 years of age or older n
Serggg [28]

Safety belt violation would be charged to the front seat passenger.

Answer: Option A.

<u>Explanation:</u>

Essential safety belt laws permit law implementation officials to ticket a driver or traveler for not wearing a safety belt, with no other traffic offense occurring. 11 states incorporate back seats as auxiliary implementation. Five of these are states with essential safety belt laws for front seat tenants.

In 15 of the 50 expresses, the safety belt law is viewed as an optional offense, which implies that a cop can't stop and ticket a driver for the sole offense of not wearing a safety belt. (One special case to this is Colorado, where kids not appropriately limited is an essential offense and brings an a lot bigger fine.)

6 0
3 years ago
Modify the one-dimensional continuity equation to include rainfall over the free surface
KonstantinChe [14]

The rainfall run off model  HEC-HMS is combined with river routing model. They are used for simulating the rainfall process.

Explanation:

The HEC - HMS rainfall model is used for simulating the rainfall runoff process. In this study the soil conservation service and curve number method is used to calculate the sub basin loss in basin module.

It provides various options for providing the rainfall distributions in the basin. It has the control specification module used to control the time interval for the simulations.

The one dimensional continuity equation is

бA / бT + бQ / бx= 0

3 0
3 years ago
A cold-rolled sheet metal that is 40 mm wide and has a thickness of 5.00 mm is going to be bent into a V shape with a 60° angle.
Artist 52 [7]
a= the force of gravity b= the amount of bicker to maple syrup ratio
5 0
3 years ago
You are an engineer in an electric-generation station. You know that the flames in the boiler reach a temperature of 1200 K and
olga nikolaevna [1]

Answer:

<em>The maximum efficiency the plant will ever achieve is 75%</em>

<em>Explanation:</em>

From the question given, we recall the following:

<em>Th flames in the boiler reaches a temperature of = 1200K</em>

<em>the cooling water is = 300K</em>

<em>The maximum efficiency the plant will achieve is defined as:</em>

Let nmax = 1 - Tmin /Tmax

Where,

Tmin = Minimum Temperature in plants

Tmax = Maximum Temperature in plants

The temperature of the cooling water  = Tmin = 300K

The temperature of the flames in boiler = Tmax = 1200k=K

The maximum efficiency becomes:

nmax =  1 - Tmin /Tmax

nmax =  1 - 300 /1200

nmax =  1-1/4 =0.75

nmax =  75%

5 0
4 years ago
The shaft is made of A992 steel. It has a diameter of 1 in. and is supported by bearings at A and D, which allows free rotation.
zysi [14]

Answer:

the angle of twist of B with respect to D is -1.15°

the angle of twist of C with respect to D is 1.15°

Explanation:

The missing diagram that is supposed to be added to this image is attached in the file below.

From the given information:

The shaft is made of A992 steel. It has a diameter of 1 in and is supported by bearing at A and D.

For the Modulus of Rigidity  G = 11 × 10³ Ksi =  11 × 10⁶ lb/in²

The objective are :

1) To determine the angle of twist of B with respect to D

Considering the Polar moment of Inertia at the shaft J\tau

shaft J\tau = \dfrac{\pi}{2}r^4

where ;

r = 1 in /2

r = 0.5 in

shaft J \tau = \dfrac{\pi}{2} \times 0.5^4

shaft J\tau = 0.098218

Now; the angle of twist at  B with respect to D  is calculated by using the expression

\phi_{B/D} = \sum \dfrac{TL}{JG}

\phi_{B/D} = \dfrac{T_{CD}L_{CD}}{JG}+\dfrac{T_{BC}L_{BC}}{JG}

where;

T_{CD} \ \  and \ \  L_{CD} are the torques at segments CD and length at segments CD

{T_{BC} \  \ and  \ \ L_{BC}} are the torques at segments BC and length at segments BC

Also ; from the diagram; the following values where obtained:

L_{BC}} = 2.5  in

J\tau = 0.098218

G =  11 × 10⁶ lb/in²

T_{BC = -60 lb.ft

T_{CD = 0 lb.ft

L_{CD = 5.5 in

\phi_{B/D} = 0+ \dfrac{[(-60 \times 12 )] (2.5 \times  12 )}{ (0.9818)(11 \times 10^6)}

\phi_{B/D} = \dfrac{[(-720 )] (30 )}{1079980}

\phi_{B/D} = \dfrac{-21600}{1079980}

\phi_{B/D} = − 0.02 rad

To degree; we have

\phi_{B/D}  = -0.02 \times \dfrac{180}{\pi}

\mathbf{\phi_{B/D}  = -1.15^0}

Since we have a negative sign; that typically illustrates that the angle of twist is in an anti- clockwise direction

Thus; the angle of twist of B with respect to D is 1.15°

(2) Determine the angle of twist of C with respect to D.Answer unit: degree or radians, two decimal places

For  the angle of twist of C with respect to D; we have:

\phi_{C/D} = \dfrac{T_{CD}L_{CD}}{JG}+\dfrac{T_{BC}L_{BC}}{JG}

\phi_{C/D} = 0+\dfrac{T_{BC}L_{BC}}{JG}

\phi_{B/D} = 0+ \dfrac{[(60 \times 12 )] (2.5 \times  12 )}{ (0.9818)(11 \times 10^6)}

\phi_{C/D} = \dfrac{21600}{1079980}

\phi_{C/D} = 0.02 rad

To degree; we have

\phi_{C/D}  = 0.02 \times \dfrac{180}{\pi}

\mathbf{\phi_{C/D}  = 1.15^0}

3 0
3 years ago
Other questions:
  • Write the definition of a function printLarger, which has two int parameters and returns nothing. The function prints the larger
    14·1 answer
  • A 350 gal air storage tank is initially at 100 psig. For how long can the tank supply 30 cfm of air to a machine that requires a
    6·1 answer
  • Atmospheric pressure is measured to be 14.769 psia. a. What would be the equivalent reading of a water barometer (inches of H20)
    11·1 answer
  • Technicians have to determine the flow rate of water in a pipe with the aid of a venturi installation and a mercury au.oaeter. T
    10·1 answer
  • a vertical cylindrical container is being cooled in ambient air at 25 °C with no air circulation. if the initial temperature of
    12·2 answers
  • Consider a large plane wall of thickness L = 0.3 m, thermal conductivity k = 2.5 W/m · °C, and surface area A =12 m2. The left s
    6·1 answer
  • 1. When the pneumatic device was demonstrated, explain something that was different than what you expected.
    13·2 answers
  • Define the isentropic efficiency for each of the following 3. a. i. Adiabatic turbine ii. Adiabatic compressor iii. Adiabatic no
    5·1 answer
  • 2. How many amperes of current will flow through a circuit that has 3 ohms of resistance if
    5·1 answer
  • Explain when single-stranded or multistranded wire should be used.
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!