Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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! image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

SQL Server T-SQL Recipes

Authors: David Dye, Jason Brimhall

4th Edition

1484200616, 9781484200612

More Books

Students also viewed these Databases questions

Question

What are the important facts related to this situation?

Answered: 1 week ago

Question

Explain the Neolithic age compared to the paleolithic age ?

Answered: 1 week ago

Question

What is loss of bone density and strength as ?

Answered: 1 week ago

Question

Question How are VEBA assets allocated when a plan terminates?

Answered: 1 week ago

Question

Question May a taxpayer roll over money from an IRA to an HSA?

Answered: 1 week ago

Question

Question What is the doughnut hole in HSA coverage?

Answered: 1 week ago