Question: help please. Given a file containing an order. Calculate the total. Append the total in fixed notation with 2 decimal points, but no ' $

help please. Given a file containing an order. Calculate the total. Append the total in fixed notation with 2 decimal points, but no '$' to the end of the file. See the examples zip file for sample orders, as well as the expected answer. On GradeScope, the file will be called './order.dat' make sure that this is how your file is named within your main.cpp programs. The order.dat file is formatted in the following way: NAME_OF_ITEM,QUANTITY,COST_PER_UNIT NAME_OF_ITEM,QUANTITY,COST_PER_UNIT Example order.dat file: Pens 24-pack,3,10.70 Mead Loos Leaf Paper (200-Sheet 3-pack),1,9.22 Example Answer: Pens 24-pack,3,10.70 Mead Loos Leaf Paper (200-Sheet 3-pack),1,9.2241.32 When you are ready, upload your main.cpp file. when uploading main.cpp to grader, there is an error message.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!