1) Design an algorithm in order to prepare a daily hotel charge report. Input comprises of the series of records that consists of the room number, the customer name, cost of room, and cost of the meals charged to room. Output refers to the hotel charge report that will consists of the room numbers, room charge meal charges, customer name, and the total charges. After all the records have been processed, total number of rooms rented, the total room charges, total meal charges, and a final total of all charges are to be printed. A room number of 000 will be used to signal the end of the input.
b) Re-design the same flowchart in the modular approach