Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Java - has to be done in command line p7.16 A hotel salesperson enters sales in a text le. Each line contains the following, separated

Java - has to be done in command line

image text in transcribed

p7.16

A hotel salesperson enters sales in a text le. Each line contains the following, separated by semicolons: The name of the client, the service sold (such as Dinner, Conference, Lodging, and so on), the amount of the sale, and the date of that event. Write a program that reads such a le and displays the total amount for each service category. Display an error if the le does not exist or the format is incorrect.

Business P7.17 Write a program that reads a text file as described in Exercise P7.16, and that writes a separate file for each service category, containing the entries for that category. N amc the output files Dinner.txt, Conference.txt, and so on

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database And Expert Systems Applications 24th International Conference Dexa 2013 Prague Czech Republic August 2013 Proceedings Part 1 Lncs 8055

Authors: Hendrik Decker ,Lenka Lhotska ,Sebastian Link ,Josef Basl ,A Min Tjoa

2013 Edition

3642402844, 978-3642402845

More Books

Students also viewed these Databases questions