subject
Engineering, 24.03.2020 01:26 goodkida7

Part One • A hotel salesperson enters sales in a text file. Each line contains the following, separated by semicolons: o The name of the client, o the service sold (such as Dinner, Conference, Lodging, and so on), o the amount of the sale o and the date of that event. • Prompt the user for data to write the file. Part Two • Write a program that reads the text file as described above, and that writes a separate file for each service category, containing the entries for that category. Name the output files Dinner. txt, Conference. txt, and so on. • Enter the name of the output file from Part One as a command line argument. Both Parts • For all programs, catch and handle the Exceptions appropriately and validate the input data where needed. • Display an error if the sales file does not exist or the format is incorrect. • Also, create your own exception to handle "unknown transaction" exceptions.

ansver
Answers: 2

Another question on Engineering

question
Engineering, 04.07.2019 18:10
Acompressor receives the shaft work to decrease the pressure of the fluid. a)- true b)- false
Answers: 3
question
Engineering, 04.07.2019 18:10
The drive force for diffusion is 7 fick's first law can be used to solve the non-steady state diffusion. a)-true b)-false
Answers: 1
question
Engineering, 04.07.2019 18:10
Burgers vector is generally parallel to the dislocation line. a)-true b)-false
Answers: 2
question
Engineering, 04.07.2019 18:20
The characteristic roots of a dynamic system are: 1.7920 1.8160 i, -1.7920 1.8160 i, -0.4160 what is the order of this system? what are the settling time and damping ratio of the system?
Answers: 3
You know the right answer?
Part One • A hotel salesperson enters sales in a text file. Each line contains the following, separa...
Questions
question
Mathematics, 10.07.2019 13:30
question
Mathematics, 10.07.2019 13:30
question
English, 10.07.2019 13:30
question
Social Studies, 10.07.2019 13:30
question
Advanced Placement (AP), 10.07.2019 13:30