CSC404: PROGRAMMING II Assignment
Questions
UiTM Johor will organize an Active Learning Workshop among lecturers from UiTM and other universities in Malaysia. This workshop will be held for two days. The participants can choose either weekdays or weekends to attend this workshop. If the participants are from UiTM, 15% will be given as a discount. Below is the fee rate for the workshop:
- Write the function getInput ( ) which is used to get the input for day code (D- Weekday and E-Weekend), university code (U-UiTM and O-other universities), number of person from the user and return them to the main function through its parameters
- Write the function named calcPayment ( ) which receives day code, university code and number of person as its parameters. This function will calculate the payment that the user needs to pay based on the day code and return the payment to the main program. If the code is incorrect then the payment is set to 0. The function returns the payment to the main program.
- Write the main program which calls the above functions. It will then check for discounted price, if any, and display the user's information (day code, university code and number of person) with the