Question: Write the code in C++ using visualstudio and follow the instructions carefully! CSIS 223 Object-Oriented Programming with C++ Lab01 -Sales Receipts Sales Receipts Create a

Write the code in C++ using visualstudio and follow the instructions carefully!  Write the code in C++ using visualstudio and follow the instructions

CSIS 223 Object-Oriented Programming with C++ Lab01 -Sales Receipts Sales Receipts Create a Windows console program named Labo01-SalesReceipts in a suitable folder. Store a copy of the completed version to your H:lCSIS223 folder and turn in a copy of the entire program folder when drive X: becomes available. Copy SalesReceiptstxt file from CaVCExercises00P or download from Data Files folder in BlackBoard. Right-click on the file tag and select Save target as. to copy the file to your computer system Copy the Sales Receipts.txt file into the Lab01-SalesReceipts folder contained within the project folder Open the file and check for a successful open to ensure that the file is available for input. Use streaming VO. Include the library for an input ifstream file object and ciostream> for console display Include the library and use fixed and setprecision(2) output stream manipulators to display dollars and cents values for the two currency amounts and grand total. Use setw(n) to establish the width of each (all three) right-aligned numeric output fields. Line up output values as shown. The char trans- action code and the formatted name string (last name followed by a comma and space, plus the first name do not require setw0 spacing. Format the output report as shown. Align the grand total value vertically with the other total amount calcu- lated for each record. Align the record count with the quantity field for records. Use a dollar sign charac- ter variable to display S symbols for both price amounts for the first record only. Set this char variable is suitable for the overall total. Align the grand total with the decimal point for the displayed record items Use standard naming conventions for all variable names and the file object

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 Databases Questions!