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
Select the correct answer.
Genrish500 [490]
A is the correct answer
5 0
3 years ago
(a) A non-cold-worked 1040 steel cylindrical rod has an initial length of 100 mm and initial diameter of 7.50 mm. is to be defor
serg [7]

Answer:

A) 1040 steel is not a possible candidate for this application

B) 35.94%

Explanation:

Initial length = 100 mm =  0.1 m

Initial diameter ( d ) = 7.5 mm = 0.0075 m

Tensile load ( p ) = 18,000 N

Condition : The 1040 steel must not experience plastic deformation or a diameter reduction of more than 1.5 * 10^-5 m

<u>A) would the 1040 steel be a possible candidate for this application</u>

<em>Yield strength of 1040 steel < stress  ( in order to be a possible candidate )</em>

stress = p / A0 = ( 18000 ) / ( \frac{\pi }{4} ) * 0.0075^2

                      = 18,000 / (4.418 * 10^-5 )   =  407.424 MPa

Yield strength of 1040 steel = 450 MPa

stress = 407.424 MPa

∴ Yield strength ( 450 MPa ) > stress ( 407.424 MPa )  

Therefore 1040 steel is not a possible candidate for this application

<u>B) Determine How much cold work would be required to reduce the diameter of the steel to 6.0 mm</u>

Area1 = ( \frac{\pi }{4} ) ( 0.006 )^2 = 2.83 * 10^-5 m^2

therefore % of cold work done = ( A0 - A1 ) / A0  * 100 = 35.94%

6 0
3 years ago
Initialize the tuple team_names with the strings 'Rockets', 'Raptors', 'Warriors', and 'Celtics' (The top-4 2018 NBA teams at th
Drupady [299]

Answer:

#Initialise a tuple

team_names = ('Rockets','Raptors','Warriors','Celtics')

print(team_names[0])

print(team_names[1])

print(team_names[2])

print(team_names[3])

Explanation:

The Python code illustrates or printed out the tuple team names at the end of a season.

The code displayed is a function that will display these teams as an output from the program.

4 0
3 years ago
Engineering Careers Scavenger Hunt
emmasim [6.3K]

Answer:

c

Explanation:

it's the only engineering career

6 0
4 years ago
Read 2 more answers
What do u call a bad bird
statuscvo [17]

Answer:

A buzzerd

Explanation:

4 0
3 years ago
Other questions:
  • When the outside temperature is 5.2 ⁰C, a steel beam of cross-sectional area 52 cm2 is installed in a building with the ends of
    8·1 answer
  • Find the resolving power of a Fabry-Perot interferometer in which two silver coated plates have reflectance of ???? = 0.9, if th
    12·1 answer
  • A. For a 200g load acting vertically downwards at point B’, determine the axial load in members A’B’, B’C’, B’D’, C’D’ and C’E’.
    8·1 answer
  • Please Help It's really Important
    12·1 answer
  • Design an Armstrong indirect FM modulator to generate an FM signal with a carrier frequency 98.1 MHz and a frequency deviation △
    15·1 answer
  • How can goal setting help with academic performance?
    13·1 answer
  • The wave-particle duality theory is the first adequate explanation of which one of the following observations about the hydrogen
    10·1 answer
  • Consider a building whose annual air-conditioning load is estimated to be 40,000 kWh in an area where the unit cost of electrici
    8·1 answer
  • If a nurse does not agree to the discipline set due to a complaint made against this nurse, after reviewing the proposed agreed
    14·1 answer
  • What invention of the Middle Ages contributed to making books easily available?
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!