Skip to content
VUBuddy

CS201P Assignment

Introduction to Programming (Practical) PDF 218 KBUpdated 23 Oct 2026
Assignment CS201P Assignment PDF 218 KB
vubuddy.com
Type
Assignment
Course
CS201P Introduction to Programming (Practical)
Size
PDF 218 KB
Updated
23 Oct 2026
Free download 0 of 3 used today
Download free · 218 KB

You get 3 free files a day on the website. Add the Chrome extension for 30 a day.

Unlimited downloads in the Android app Get it free on Google Play

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;

All CS201P files →
CS201P Introduction to Programming (Practical) All CS201P handouts, past papers, quizzes and MCQs in one place. Open course page

Get more out of VUBuddy, for free

Android app Free on Google Play
  • Unlimited downloads
  • The explanation behind every MCQ answer
  • Study offline on slow data
Get the Android app
Chrome extension Free on the Chrome Web Store
  • 30 downloads a day instead of 3
  • Sign in and buy Pro Semester here
Add to Chrome

One Pro Semester membership works in both the extension and the app.