Skip to content
VUBuddy

CS201 Solution 1 by Junaid

Introduction to Programming PDF 218 KBUpdated 23 Oct 2026
Quiz CS201 Solution 1 by Junaid PDF 218 KB
vubuddy.com
Type
Quiz
Course
CS201 Introduction to Programming
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, 2 of 3. Download the file for all 3 pages.

CS201 ASSIGNEMNT SOLUTION · NOTE: · ID and NAME MUST change

#include <iostream> using namespace std;

int main()

cout<<" ---AL-JUNAID INSTITUTE GROUP----"<<endl; cout<<" "<<endl;

int x,y,Z; x=2; y=1;

Z = (x*x)+(2*y*x)-(x/y); cout<<" After evaluation of given expression the value of z = "<<Z<<endl;

PAID ASSIGNMENT SERVICES are AVAIBLE

CS506 Cs411 CS403 CS504 CS604 string ID = "BC"; int id1 = 190202640; string name = "MUHAMMAD JUNAID"; int lastdigit; int Gotnumber;

lastdigit = id1 % 10; cout<<"--Last digit of VU ID is "<<lastdigit<<endl; Gotnumber = Z + lastdigit;

string test; int n = 1; if ((lastdigit % 2) == 0)

test = "even"; cout<<"I got an "<<test<<" number "<< Gotnumber<<endl; while (n <= Gotnumber)

cout<<" My name is "<<name<<endl; n++;

else

test = " odd"; cout<<"I got an "<<test<<" number "<< Gotnumber<<endl; while(n <= Gotnumber)

All CS201 files →
CS201 Introduction to Programming All CS201 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.