CS201p-Assignment.pdf

Verified academic study resource for CS201 (Introduction to Programming) under the Computer Science at Virtual University of Pakistan. This PDF document (2026 Assignment & GDB Solution Guide) covers Active 2026 Semester Graded Activities spanning approximately 18 pages across 8 curriculum modules, and is indexed for student examination review with instant in-browser preview and 100% free direct download.

Course
CS201 – Introduction to Programming
Faculty
Computer Science
Format
PDF
Type
Assignment
Coverage
Active 2026 Semester Graded Activities
Tags
ASSIGNMENT

Always personalize your submission by rewriting explanations and renaming code variables. Keep Turnitin similarity under 19% and leverage the official 24-hour grace period with zero marks penalty.

What this file covers — CS201 syllabus roadmap

  1. Core Architecture, Syntax & Primitive Data Structures — Lectures 1 to 6 (Pages 1 to 65). 15% Objective Marks (8–10 MCQs)
  2. Conditional Branching, Loops & Logical Control Flow — Lectures 7 to 12 (Pages 66 to 140). 18% Exam Marks (MCQs + 2-Mark Short Questions)
  3. Memory Management, Pointers, Arrays & Functions — Lectures 13 to 18 (Pages 141 to 215). 22% Exam Marks (High Yield for Midterms)
  4. Midterm Consolidation, Strings & Algorithm Synthesis — Lectures 19 to 22 (Pages 216 to 280). Midterm Exam Culmination (Lectures 1–22 Scope)
  5. Object-Oriented Paradigms: Classes & Data Abstraction — Lectures 23 to 29 (Pages 281 to 360). 16% Final-Term Marks (Core OO Concepts)
  6. Inheritance Hierarchies & Dynamic Polymorphism — Lectures 30 to 36 (Pages 361 to 435). 20% Final-Term Marks (Virtual Functions & V-Tables)
  7. Templates, Standard Library & Persistent File I/O — Lectures 37 to 41 (Pages 436 to 510). 14% Final-Term Marks (Generic Code & Streams)
  8. Final-Term Examination Dossier & Capstone Synthesis — Lectures 42 to 45 (Pages 511 to 585). Final-Term Exam Synthesis (Lectures 23–45 Scope)

Frequently asked questions

Where can I download CS201p-Assignment.pdf for free?

You can preview and download "CS201p-Assignment.pdf" (CS201 PDF, ~18 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs201p-assignment-pdf) with 100% free high-speed downloads and zero registration requirements.

What syllabus chapters and lectures are covered in this CS201 file?

This document covers Active 2026 Semester Graded Activities across 8 distinct lecture units (Lectures 1 to 6, Lectures 7 to 12, Lectures 13 to 18, Lectures 19 to 22, Lectures 23 to 29, Lectures 30 to 36, Lectures 37 to 41, Lectures 42 to 45), featuring comprehensive definitions, solved objective questions, and examiner marking rubrics.

What is the passing criteria for CS201 under the VU 20% Two-Half Rule?

Under official Virtual University regulations, students must score at least 20% in the First Half (Quizzes, Assignments, GDBs, and Midterm combined) AND independently at least 20% in the Final-Term examination paper. Scoring under 20% in the final exam results in an automatic F grade regardless of earlier marks.

Are CS201 solved past papers and handouts verified for 2026 exams?

Yes. All CS201 materials on MIHORA VU—including Moaaz, Waqar Siddhu, and team archives—are reviewed against the current VU syllabus to help students prepare for 2026 Midterm, Final-Term, and online quiz examinations.

Inside this file

# 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)

{

       double temp[3] = {ag1, ag2, ag3};

       int count = 0;

       for(int i = 0; i < 3; i++)

       {

                  if(temp[i] >= 90)

                  {

                            count++;

                  }

         }

         return count;

}

double aggSum(double ag1, double ag2, double ag3)

{

         double temp[3] = {ag1, ag2, ag3};

         double sum = 0;

         for(int i = 0; i < 3; i++)

         {

                            sum += temp[i];

         }

         return sum;

}

main()

{

         double st1_SSCMarks = 971, st1_HSSCMarks = 953, st1_EntryTestMarks = 950;

         double st2_SSCMarks = 1052, st2_HSSCMarks = 976, st2_EntryTestMarks = 996;

     double st3_SSCMarks = 990, st3_HSSCMarks = 981, st3_EntryTestMarks = 1020;

     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;

}

More CS201 files

All CS201 files · Midterm Prep 2026 · MCQs Bank