Answer to Question #269197 in C++ for BRIXZEL

Question #269197

make a program that will compute and display the total amount of a purchased product


1
Expert's answer
2021-11-20T06:43:28-0500
#include <iostream>
using namespace std;
int main(void)
{
int   quantity;
float price, total;
cout<<"Total price of Item based on quantity\n";
cout<<"\nEnter price:";
cin>>price;
cout<<"\nEnter quantity: ";
cin>>quantity;
total = quantity * price;
cout<<"\nTotal = "<<total<<endl;
return 0;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS