Need help with this school assignment

Hi, I need help with this school assignment and i don't know where to start.
please help

Examine the given information and answer questions that follow.

The alumni club at the university has four conference rooms. The conference rooms can be booked for morning, afternoon and evening sessions by its members as per rates given in the following table and information:

Room No Rental cost per Session (Mon-Fri) (S$)
Sat-Sun Surcharge (% of rental cost per session) 101 100 10% 102 200 15% 103 150 12% 104 300 50% Table 3.1: Conference Room Rental

In addition, “evening sesions” costs another $50.


(a) Develop a function that takes a 2D array with the information shown in Table 3.1, room number, day and the session as parameters, trverses through the array to find the rental cost and surcharge. The function computes and returns the net rental cost as output. The function prototype is double calcNetRental(int[], int, int, char). Assume the following global declaration for day. enum day = {SUN=1, MON, TUE, WED, THU, FRI, SAT};

(15 marks)


(b) Write a test driver, which uses a 2-D array to store the information shown in Table 3.1. The driver prompts the user to enter the room number, day and the session and invokes the calcNetRental function to find and print the net rental charges. The driver program repeats with a while loop and terminates when the program encounters a sentinel value, ‘E’. (10 marks)
What did they teach you is the first step to writing any program ?
Topic archived. No new replies allowed.