I'm programming a program that requires user to input choice of 3 codes (A,B,C)that defines cost of a room in a hotel an unspecified number of users are using and wou. And at the end of the day, the reservation clerk should be able to choose the option to end the day and the program should display the room that has the most booking and lowest booking popularity for the day.So, what function should I be using for the program? I'm assuming that it has something to do with count++?
So, what function should I be using for the program?
It depends what you have learned so far and what you are allowed to use.
You could use 3 vars to count for reach room and when to user has entered a room increment the corresponding var. At the end you need to find the main and max value of these.
I would start with the main function and use a while loop to read the room choice untile some exit value is entered. Once you get this working you can start to think about the rest.