# include using namespace std; double maxAggregate(double agge1, double agge2, double agge3) { if(agge1 > agge2 && agge1 > agge3) { return agge1; } else if(agge2 > agge3 && agge2 > agge1) { return agge2; } else if(agge3 > agge1 && agge3 > agge1) { return agge3; } } int eligibleStudentCount(double agge1, double agge2, double agge3) { double temp[3] = {agge1, agge2, agge3}; int count = 0; for(int x = 0; x < 3; x++) { if(temp[x] >= 90) { count++; } } return count; } double aggSum(double agge1, double agge2, double agge3) { double temp[3] = {agge1, agge2, agge3}; double sum = 0; for(int y = 0; y < 3; y++) { sum += temp[y]; } return sum; } main() { double std1_SSCMarks = 971, std1_HSSCMarks = 953, std1_EntryTestMarks = 950; double std2_SSCMarks = 1052, std2_HSSCMarks = 976, std2_EntryTestMarks = 996; double std3_SSCMarks = 990, std3_HSSCMarks = 981, std3_EntryTestMarks = 1020; double std1_AggPerc, SSC_Agg_std1, HSSC_Agg_std1, Entry_Agg_std1, Aggregate_std1; double std2_AggPerc, SSC_Agg_std2, HSSC_Agg_std2, Entry_Agg_std2, Aggregate_std2; double std3_AggPerc, SSC_Agg_std3, HSSC_Agg_std3, Entry_Agg_std3, Aggregate_std3; // aggregate percentage SSC_Agg_std1 = std1_SSCMarks * .1; HSSC_Agg_std1 = std1_HSSCMarks * .4; Entry_Agg_std1 = std1_EntryTestMarks * .5; Aggregate_std1 = SSC_Agg_std1 + HSSC_Agg_std1 + Entry_Agg_std1; std1_AggPerc = Aggregate_std1 / 1100 * 100; SSC_Agg_std2 = std2_SSCMarks * .1; HSSC_Agg_std2 = std2_HSSCMarks * .4; Entry_Agg_std2 = std2_EntryTestMarks * .5; Aggregate_std2 = SSC_Agg_std2 + HSSC_Agg_std2 + Entry_Agg_std2; std2_AggPerc = Aggregate_std2 /1100 * 100; SSC_Agg_std3 = std3_SSCMarks * .1; HSSC_Agg_std3 = std3_HSSCMarks * .4; Entry_Agg_std3 = std3_EntryTestMarks * .5; Aggregate_std3 = SSC_Agg_std3 + HSSC_Agg_std3 + Entry_Agg_std3; std3_AggPerc = Aggregate_std3 /1100 * 100; // output cout<<"\n\n"; cout<<"*********************************************************************************"<<"\n\n"; cout<<"*******AL-JUNAID INSTITUTE OF GROUP*******"<<"\n\n"; cout<<"*******For More Info Contact one me = 0304-1659294*******"<<"\n\n"; cout<<"*******For More VISIT: vulmshelp.com*******"<<"\n\n"; cout<<"*******Join For Latest QUIZ Assignmnt and GDBz File on my Whatsapp*******"<<"\n\n"; cout<<"*******************************************************************"<<"\n\n"; cout << "*************************Merit Calculation*****************************************"; cout << "\n"; cout << "\nPercentage of Student One Calculate as : " << std1_AggPerc << "\n"; cout << "Percentage of Student One Calculate as : " << std2_AggPerc << "\n"; cout << "Percentage of Student One Calculate as : " << std3_AggPerc << "\n"; cout << "Maximum aggregate percentage is : " << maxAggregate(std1_AggPerc, std2_AggPerc, std3_AggPerc) << "\n"; cout << "Number of Students Eligible for Admission are : " << eligibleStudentCount(std1_AggPerc, std2_AggPerc, std3_AggPerc) << "\n"; cout << "Aggregate sum of all students are : " << aggSum(std1_AggPerc, std2_AggPerc, std3_AggPerc) << "\n"; }