CPP VS 2010 Check Writing Device - 43397

Solution Posted by
jordanblink

jordanblink

Rating : (19)A+
Solution Detail
Price: $20.00
Request Description

Write a C++ program to write checks.

Your program should read and process data from an input file (filename checkdata.txt) Each line of the file includes data on a person to whom a check will be written by Delta College. The first line of the data file includes the starting check number. The input file begins similarly to what you see below:

1678
Jane Doe           4/28/09    567.12 
George Obama       5/1/10     811.47
Barrak Bush        10/19/10   98.14
        ... and so on ...

 

 

Your program will of course not direct output to a check-writing device. Instead, simulate the look-and-feel of a check with line and character spacing. An example of what your output could look like is:

---------------------------------------------------------
1678                                           2009-04-28
PAY TO THE ORDER OF: Jane Doe                    $ 567.12
FIVE HUNDRED SIXTY-SEVEN AND 12/100 DOLLARS
                                            Delta College
---------------------------------------------------------
1679                                           2010-05-01
PAY TO THE ORDER OF: George Obama                $ 811.47
EIGHT HUNDRED ELEVEN AND 47/100 DOLLARS
                                            Delta College
---------------------------------------------------------
1680                                           2010-10-19
PAY TO THE ORDER OF: Barrak Bush                  $ 98.14
NINETY-EIGHT AND 14/100 DOLLARS
                                            Delta College
---------------------------------------------------------

Create a class to manage information and actions for one check recipient. Data members for your class will include all of the relevant information for the check and recipient. Be sure that one member function included is the action of writing the actual check. Otherwise, design the class to your own style.

The driver program must write checks for all lines of input data in the file. For this, feel free to re-use one object of your 'check' class, or you may create an array of objects of this class.

The check number should advance for each new check that is to be written. After processing and writing your last check, add one more output statement that identifies the starting check number for the next batch of checks that would be printed in the future.

MAKE SURE YOU USE COMMENTS EXPLAINING WHAT YOU ARE DOING

Deliverables

Deliver the following as your final product:

  • Cover page with assignment name, student name, and list of attachments
  • Printed copy of source code
  • Printed Output of checks using provided file

 

 

Solution Description

CPP VS 2010 Check

Attachments
CPPChecks.zip
CPPChecks.zip
CheckWritingDevice.docx
CheckWritingDev...