- Type
- Assignment
- Course
- CS201P Introduction to Programming (Practical)
- Size
- PDF 218 KB
- Updated
- 23 Oct 2026
You get 3 free files a day on the website. Add the Chrome extensionSign in with the extension for 30 a day.
Preview text
Text from pages 1, 3, 4 of 4. Download the file for all 4 pages.
# include <iostream> using namespace std;
double maxAggregate(double ag1, double ag2, double ag3)
if(ag1 > ag2 && ag1 > ag3)
return ag1;
else if(ag2 > ag3 && ag2 > ag1)
return ag2;
else if(ag3 > ag1 && ag3 > ag1)
return ag3;
int eligibleStudentCount(double ag1, double ag2, double ag3)
int count = 0; double st1_AggPerc, SSC_Agg_st1, HSSC_Agg_st1, Entry_Agg_st1, Aggregate_st1; double st2_AggPerc, SSC_Agg_st2, HSSC_Agg_st2, Entry_Agg_st2, Aggregate_st2; double st3_AggPerc, SSC_Agg_st3, HSSC_Agg_st3, Entry_Agg_st3, Aggregate_st3;
SSC_Agg_st1 = st1_SSCMarks * .1; HSSC_Agg_st1 = st1_HSSCMarks * .4; Entry_Agg_st1 = st1_EntryTestMarks * .5; Aggregate_st1 = SSC_Agg_st1 + HSSC_Agg_st1 + Entry_Agg_st1; st1_AggPerc = Aggregate_st1 / 1100 * 100;
SSC_Agg_st2 = st2_SSCMarks * .1; HSSC_Agg_st2 = st2_HSSCMarks * .4; Entry_Agg_st2 = st2_EntryTestMarks * .5; Aggregate_st2 = SSC_Agg_st2 + HSSC_Agg_st2 + Entry_Agg_st2; st2_AggPerc = Aggregate_st2 /1100 * 100;
SSC_Agg_st3 = st3_SSCMarks * .1; HSSC_Agg_st3 = st3_HSSCMarks * .4; Entry_Agg_st3 = st3_EntryTestMarks * .5; Aggregate_st3 = SSC_Agg_st3 + HSSC_Agg_st3 + Entry_Agg_st3; st3_AggPerc = Aggregate_st3 /1100 * 100; cout << "*************************Merit Calculation**********************************" << endl << endl; cout << "\n"; cout << "\nPercentage of Student One Calculate as: " << st1_AggPerc << endl; cout << " Percentage of Student One Calculate as: " << st2_AggPerc << endl; cout << " Percentage of Student One Calculate as: " << st3_AggPerc << endl; cout << " Maximum aggregate percentage is: " << maxAggregate(st1_AggPerc, st2_AggPerc, st3_AggPerc) << endl; cout << " Number of Students Eligible for Admission are: " << eligibleStudentCount(st1_AggPerc, st2_AggPerc, st3_AggPerc) << endl; cout << " Aggregate sum of all students are: " << aggSum(st1_AggPerc, st2_AggPerc, st3_AggPerc) << endl;
Related CS201P files
All CS201P files →Get more out of VUBuddy, for free
- Unlimited downloads
- The explanation behind every MCQ answer
- Study offline on slow data
- 30 downloads a day instead of 3
- Sign in and buy Pro Semester here
One Pro Semester membership works in both the extension and the app.