Home / Expert Answers / Computer Science / nbsp-please-answer-question-11-and-12-both-sub-parts-11-write-a-c-program-to-implement-the-pa155

(Solved):   please answer question 11 and 12(both sub parts) 11. Write a C++ program to implement the ...



11. Write a C++ program to implement the admission fee payment process in a school. Assume that
few students have received sc

 

please answer question 11 and 12(both sub parts)

11. Write a C++ program to implement the admission fee payment process in a school. Assume that few students have received scholarships and they don't need to pay the fees. The students who have not received scholarships are expected to pay the fee, Implement fee payment functionality by creating class Admission and function overloading. Use the constructor for initializing the number of students and the total cash collected. You are expected to read installment number, class category and assign the fee as per the table given below. The cash is collected based on the following criteria: Class Category/Installment Class 11,12 Class 1 to 5 (Rs.) Class 6 to 8 (Rs.) Class 9,10 (Rs.) (Rs.) Installment 1 10000 12000 15000 20000 Installment 2 12000 14000 16000 18000 Installment 3 10000 12000 15000 20000 12. i) Write a function template that can be used to search an element from an array of any type and [10] returns the index of the element, if found. Give both the function prototype and the function definition for the template. [5 Marks] ii) Write a function template for the function Power () which takes base and exp as parameters and retums bus exp. The type of base is the parameter to the template and exp is int. If exp is negative, then it must be converted to its positive equivalent. For example, both 2¹ and 2 are expected to retum 8. [5 Marks] 3 GOGId??)


We have an Answer from Expert

View Expert Answer

Expert Answer


Ans(11): Code: #include using namespace std; //declaring class Admission class Admission { //initializing installment array for each classes int Class_1_To_5[3] = {10000, 12000, 10000}; int Class_6_To_8[3] = {12000, 14000,
We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe