Question: ARRAY Write a complete C++ program to calculate the tuition fees for a student based on the number of credit hours enrolled for the semester.

 ARRAY Write a complete C++ program to calculate the tuition fees

ARRAY Write a complete C++ program to calculate the tuition fees for a student based on the number of credit hours enrolled for the semester. Write a main program to perform the following tasks: - Write the function prototype for the functions caleCredit () and calcFee(). Ask the user to input the following details: Type of Study (P for Diploma Program and G for Degree Program). Field of Study (c for Social Science and T for Science Technology). Student ID Name. Write the statement to call function calccredit(). - Write the statement to call function calcFeel). - Display the output as shown in the example below: Name: Ali Student ID: 2018135799 Total Credit: 15 Tuition Fee: RM900 Write function definitions for the following functions: calccredit() to calculate and return the total credit hours. This function will do the following: prompt the student to enter the credit hour value for five subjects, into an array called creditHour 1, whereby the credit hours for each subject is in the range of 2 - 4 credit hours. calcFee () to calculate and return the tuition fee. This function will do the following: Receive the following parameters: o total credit hours o type of study o field of study Give 15% discount for the tuition fee for Diploma student and no discount for Degree student Calculate the tuition fee based on the following table: Type of Field of Study Fees per Credit hour Discount study (RM) (%) Diploma Social Science (C) 50 (P) 15 Science Technology (T) 60 Degree Social Science (C) 50 No discount Science Technology (T) 60

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!