Latest Activity In Study Groups

Join Your Study Groups

VU Past Papers, MCQs and More

We non-commercial site working hard since 2009 to facilitate learning Read More. We can't keep up without your support. Donate.

CS201 Assignment #1 For Fall 2015 Solution and Discussion Due date 22-05-2015.

Assignment No. 01
Semester: Spring 2015

CS201: Introduction to Programming

Total Marks: 20

Due Date: 22/05/2015

Lectures covered: 1 to 7


Please read the following instructions carefully before submitting assignment.

It should be clear that your assignment will not get any credit if:


  • The assignment is submitted after due date.
  • The submitted assignment does not open or file is corrupt.
  • Assignment is copied(partial or full) from any source (websites, forums, students, etc)




The objective of this assignment is to provide an on hand experience of:

  • Learn to code, edit, compile and execute C++ program.
  • Learn to use arithmetic operators in C++ program.
  • Learn to take input from user and display the results.
  • Learn to make power point presentation file with audio narration.



  • Code should properly be indented and well commented.
  • Follow C/C++ naming conventions while using variables etc.

Assignment Description:


In this assignment, you are required a write a simple C++ program which will input two numbers and display sum on output screen. First number shall be your ID first two digits and second number shall be the next two digits of your ID. Sample output is given below. You shall use your own VU-ID where dummy ID is used in screen shot.







Enter first number as first two digits of your ID

Solution Output:


Display your VU-ID here

Enter second number as next two digits of your ID


You are required to submit your solution as a presentation in power point file through LMS. A template file is attached. You need to use provided “Solution-Template.ppt” file for your presentation.

Prepare presentation slides in following way.

  1. In first slide enter your name, VU-ID and MS Office version that you used as given in template.
  2. In second slide show your solution code and record audio narration which will explain your solution code step by step. You need to give very brief explanation for each line of code. While recording audio narration, don’t forget to speak your name and VU-ID in the beginning. 
  3. Take screen shot your solution output screen and paste in third slide. In this slide you have to explain the procedure of compilation, execution and functionality of your program with audio narration.

Guidelines for Recording Audio Narration:

You have to make a presentation file with audio narration to explain your solution code and output.

The guidelines about how you will attempt your solution are given below.

  1. You have to give solution on the template that is attached with assignment file.
  2. Record your presentation using the method given in demo video file attached with assignment. If you are using Office 2003 then watch “Audio Narration Recording Office 2003” video and for Office 2007 use “Audio Narration Recording Office 2007” video file.  
  3. The total time for audio recording should not exceed 5 minutes.
  4. Double check your recorded narration is working fine and voice is clear for listening before submission. For this purpose you can run your presentation on multiple computers.
  5. If your audio is not properly recorded, audio is not clear or submitted file is corrupt then you will receive zero marks.


Solution submitted in MS Word, CPP, PDF, Image or any other format will not acceptable.

Solution submitted through email will also not acceptable.  




Views: 13367

Replies to This Discussion

its problem.

mein jb program run krta hu to compile error ata hai .why????

share ur print screen

See Error please Help



using namespace std;


use this piece of code instead #Include<iostream.h>

still first line error

then there are 2 options,

1_ 1st one- change ur Dev++ version according to ur window.

2_ 2nd is, download these 2 header files 

iostream.h & fstream.h from here 

and Copy into this location of your computer

C:\Program Files (x86)\Dev-Cpp\MinGW64\x86_64-w64-mingw32\include

Now, u can use these directories,




Hope, your compiler will work properly now without any error.

let check your screen shot of ur error..

Still unable to complete this assignment Jo b code likho error aa jata hy 


© 2021   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service