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
Apipe with an outside diameter of 15 cm is exposed to an ambient air and surrounding temperature of -20°c. the pipe has an outer surface temperature of 65°c and an emissivity of 0.85. if the rate of heat loss from the pipe surface is 0.95 kw per meter of length, the external convective heat transfer coefficient (h) is: (a) 12.5 w/m"k (b) 18.6 w/mk (c) 23.7 w/mk (d) 27.9 w/mk (e) 33.5 w/mk
Answers: 1
question
Engineering, 04.07.2019 18:20
Select any two (2) areas of applications of chain-drive. (clo4) a)-permanent lubrication necessary b)-hydraulic forklift truck operation c)-rigging and heavy moving materials d)-relatively high maintenance costs e)-costlier than belt drives
Answers: 2
question
Engineering, 04.07.2019 18:20
Modern high speed trains do not have perpendicular expansion gaps where rails are joined end-to-end any more they are mostly welded together but what might happen if there was a spell of particularly hot weather that causes inspection of the tracks?
Answers: 1
question
Engineering, 04.07.2019 19:10
Which of the following is the most important advantage of a large field of view? a. allows larger areas to be examined b. relieves eyestrain c. minimizes parallax errors. d. increases precision in proportion to the in- crease in field of view
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
Chemistry, 19.04.2021 08:40
question
Mathematics, 19.04.2021 08:40
question
Mathematics, 19.04.2021 08:40
question
Biology, 19.04.2021 08:40
question
Mathematics, 19.04.2021 08:40
question
Mathematics, 19.04.2021 08:40
question
Mathematics, 19.04.2021 08:40
question
History, 19.04.2021 08:40
Questions on the website: 13722361