A department store manages their sales in the form of files. A sale is recorded on each line of a sales file in this format:
22349999990603193150
· The first 4 digits are the department code(2234)
· The next 6 digits are the item number (999999)
· The next 6 digits are the date(060319)
· The final digits are the price in pennies(3150)
Write a program that will parse a sales file and print a report for each sale
Your program should:
· Prompt a user for the input sales file name
· Prompt a user for the output report file name
· Create your own input file with at least 4 items
· Read each line of the sales file
o Print the following to the console and output report file
§ The department store name: MCC Department Store
§ The date in format full month name, day, 4 digit year
§ The department name
§ The item number
§ The price, tax and total
· The department ranges are:
o 1000-1999 Clothing
o 2000-2999 Hardware
o 3000-3999 Food
o 4000-4999 Toys
o 5000-5999 Sporting Goods
o 6000-9999 – Misc.
Sample Input
122349999990603193150 22222677777031518600000
355553237891130195216
4 66664555561202191245678
5

Sample Console Output
Please enter the input file name: input/sales.txt
Please enter the output file name: output/report.txt
*****************
MCC Store June 3, 2019
Hardware Department
Item # 999999
Price:
$31.50
Tax (6.625%) :
$2.09
Total:
$33.59
********************
MCC Store
March 15, 2018
Hardware Department
Item # 677777
Price:
$6000.00
Tax (6.625%):
$397.50
Total:
$6397.50
********************
MCC Store
November 30, 2019
Sporting Goods Department
Item # 323789
Price:
$52.16
Tax (6.625%) :
$3.46
Total:
$55.62
***********************************
MCC Store
December 2, 2019
Misc Department
Item # 455556
Price:
Tax (6.625%) :
Total:
$12456.78
$825.26
$13282.04


Sample File Output
1*********
2 MCC Store
June 3, 2019
3 Hardware Department
4Item # 999999
5 Price:
6 Tax (6.625%) :
7 Total:
8************
9 MCC Store
$31.50
$2.09
$33.59
*************:
March 15, 2018
10 Hardware Department
11 Item # 677777
12 Price:
$6000.00
13 Tax (6.625%):
$397.50
14 Total:
$6397.50
15***********************************
16 MCC Store
November 30, 2019
17 Sporting Goods Department
18 Item # 323789
19 Price:
$52.16
20 Tax (6.625%):
$3.46
21 Total:
$55.62
22***********************************
23 MCC Store
December 2, 2019
24 Misc Department
25 Item # 455556
26 Price:
27 Tax (6.625%) :
28 Total:
$12456.78
$825.26
$13282.04


Guidance
Your solution should demonstrate the following understanding :
Methods
Files
Exceptions
Loops
Selections
Strings
Numbers
Variables
Please submit the following:
A design document that shows your design plan. File formats accepted are Word, PPT, Visio Diagram, Phone screen shot of hand drawn diagram, etc (20 points)