[SOLVED] SOLVED:program that reads a file and displays the total amount for each service category.

15.00 $

Programming resource
Digital learning resource
Category:
Practical programming resource
Suitable for guided study and reference
Tutor guidance available when needed

Description

5/5 - (1 vote)

A hotel salesperson enters sales in a text file. 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 file and displays the total amount for each service category. Display an error in the file does not exists or the format is incorrect.

Resource details

Understand the Task Before You Use the Resource

Review the requirements, identify the programming concepts involved, study the implementation and test your understanding with your own examples and modifications.