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 calcool). Ask the user to input the following details: Type of Study (for Diploma Program and a for Degree Program) Field of Study (c for Social Science and 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: All Student ID: 2018136799 Total Credit 15 Tuition Fee: RM200 Write function definitions for the following functions: caleCredit() 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. calcea () to calculate and retum the tuition foo. 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) (25) Diploma Social Science (C) 50 (P) 15 Science Technology (T) 60 Degree Social Science (C) 50 Science Technology (1) 60 No discount

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!