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
Slip occurs via two partial dislocations because of (a) the shorter path of the partial dislocation lines; (b) the lower energy state through partial dislocations; (c) the charge balance.
Answers: 1
question
Engineering, 04.07.2019 18:10
Which of the following components of a pid controlled accumulates the error over time and responds to system error after the error has been accumulated? a)- proportional b)- derivative c)- integral d)- on/off.
Answers: 2
question
Engineering, 04.07.2019 18:20
Steam enters a converging nozzle at 3.0 mpa and 500°c with a at 1.8 mpa. for a nozzle exit area of 32 cm2, determine the exit velocity, mass flow rate, and exit mach number if the nozzle: negligible velocity, and it exits (a) is isentropic (b) has an efficiency of 94 percent
Answers: 2
question
Engineering, 04.07.2019 18:20
Prove the equivalence between the two statements of the 2nd law of thermodynamics (i.e., a violation of one statement leads to the violatio the other statement)
Answers: 2
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, 11.03.2020 02:08
question
Mathematics, 11.03.2020 02:08
Questions on the website: 13722361