Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Demystifying Databases A Hands On Guide For Database Management

Authors: Shiva Sukula

1st Edition

8170005345, 978-8170005346

More Books

Students also viewed these Databases questions

Question

Are robots going to displace all workers? Explain your answer.

Answered: 1 week ago