Write a program that displays the contents of a file in four columns

Write a program that displays the contents of a file in four columns titled “Item Name”, “Num of Items”, “Item Price”, “Total”. The total is the is the quantity of each item sold multiplied by the item price. This program should not use an array. However, it should read all values from file named “itemFile.txt”, perform calculations where possible, and display everything in the C++ output window. The program should also calculate the total price of all items sold. Copy the contents of your file and paste them below your program. Submit your program together with the output.

×
New Download