Expenses Class Company Expense report Salesperson Mileage Cost Tolls Parking Meals ID Name 104 Megha

Expenses Class

   Company Expense report

Salesperson Mileage Cost Tolls Parking Meals
ID Name

Save your time - order a paper!

Get your paper written from scratch within the tight deadline. Our service is a reliable solution to all your troubles. Place an order on any task and we will take care of it. You won’t have to worry about the quality and deadlines

Order Paper Now

104 Meghan Trainor 99999 $999.99 $999.99 $999.99 $999.99
123 Charlie Sheen 99999 $999.99 $999.99 $999.99 $999.99
114 Selena Gomez 99999 $999.99 $999.99 $999.99 $999.99

Total 99999 $999.99 $999.99 $999.99 $999.99

You have been contracted by a sales company to create a report to capture salespersons expenses. The company breaks expenses down by category. The categories are Mileage, Tolls, Parking and meals. You will use your class to create an expense object for each of the five (5) sales persons. Each object must contain the salesperson ID and the Salesperson name. You must use an array of the expense objects to complete this program. You will fill each object from the data in the two accompanying files. The first file contains a list of salespersons and their IDs. The second contains their expenses. A 1 record is mileage, 2 record is tolls, 3 record parking 4 record is meals. Once you have read the data you will generate the report as show above. You will only store mileage the cost of mileage is $0.54 a mile. You program must be well structured using methods. Do not forget your pseudo code.

//——————————————————————————————————————————//

salesperson.txt

111;Meghan Trainor

222;Charlie Sheen

333;Selena Gomez

444;Hillary Clinton

555;Tim Kane

666;Donald Trump

//————————————————————————————————————————————-//

expense.txt

222,1,150

333,2,2.00

444,3,12.00

555,4,24.45

666,1,230

333,2,5.25

444,3,20.00

555,4,34.89

666,1,133

444,2,1.150

555,3,15.00

666,4,27.98

555,1,321

666,2,2.75

111,3,13.00

222,4,14.00

333,1,342

444,2,3.65

555,3,23.00

666,4,56.00

222,2,2.30

333,1,150

444,2,2.00

555,3,12.00

666,4,24.45

111,1,30

333,2,5.25

222,3,20.00

111,4,34.89

222,1,133

333,2,.50

444,3,15.00

555,4,7.98

666,1,321

444,2,2.75

555,3,13.00

666,4,14.00

111,1,42

222,2,3.65

333,3,23.00

444,4,56.00

555,2,1.30

 

Looking for a Similar Assignment? Let us take care of your classwork while you enjoy your free time! All papers are written from scratch and are 100% Original. Try us today! Use Code FREE15