This C++ program allows a user to input the name of a buyer, number of items bought, name and price of each item, and calculates the total cost. It prints a table with the item name, quantity, price and total for each row, and prints the grand total at the bottom. After getting all the input data, it displays a thank you message concluding the transaction.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
52 views2 pages
Code Program Total Harga Dan Pembanyaran
This C++ program allows a user to input the name of a buyer, number of items bought, name and price of each item, and calculates the total cost. It prints a table with the item name, quantity, price and total for each row, and prints the grand total at the bottom. After getting all the input data, it displays a thank you message concluding the transaction.
endl; cout << "| NO | NAMA BARANG | JUMLAH BELI | HARGA SATUAN | JUMLAH HARGA |" << endl; cout << "====================================================================" << endl;