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
Answer:
While scientists study how nature works, engineers create new things, such as products, websites, environments, and experiences. Because engineers and scientists have different objectives, they follow different processes in their work.
Explanation:
Answer:
People would watch it please give me one star so I can be first place
Explanation:
IDK
Answer:
Newyork
Explanation:
It occurs there because it is the capital and things are really expensive there
La teoría de la evolución es un término que recoge un corpus, es decir, un conjunto de conocimientos y evidencias científicas que explican cómo aparecen nuevos seres vivos. Esta explicación se basa en hechos observados por el propio Darwin, quien describió en sus textos estos fenómenos.