Cs201 Assignment 1 Solution Nov 2015 Calendar

the correct code of cs201 assignmentn of ending date 16-2-016 is

#include<iostream>
#define MODEL "HP"
#define ALPHABET 26
#define NUMKEYS 10
#define FUNKEYS 12
using namespace std;

class Keyboard
{
public:
void operator=(const Keyboard &obj1);
Keyboard();
~Keyboard();

private:
string Model;
int Albkeys,Numkeys,Funkeys;
};

Keyboard::Keyboard()
{
Model=MODEL;
Albkeys=ALPHABET;
Numkeys=NUMKEYS;
Funkeys=FUNKEYS;
cout"\nKeyboard Created. "endl;

cout"\nModel "Model;
cout"\nAlbkeys "Albkeys;
cout"\nNumkeys "Numkeys;
cout"\nFunkeys "Funkeysendl;
}

void Keyboard::operator=(const Keyboard &obj1 )
{
Model=obj1.Model;
Albkeys =obj1.Albkeys;
Numkeys =obj1.Numkeys;
Funkeys =obj1.Funkeys;
cout"\nKeyboard is assigned "endl;
}

Keyboard::~Keyboard()
{
cout"\nKeyboard has been Destroyed "endl;
}

int main(void)
{
Keyboard *obj1=new Keyboard();
Keyboard obj2;
obj2=*obj1;

}

Recommended : CS201- midterm solved mcqs - Introduction to Programming

You Can Also Download CS201 Mid Term Papers, CS101 Short Notes, CS201 Assignment Solutions, CS201 Lecture Wise Questions Answers Files, CS201 Solved MCQs, CS201 Solved Quiz , CS201 Solved Mid Term Subjective Papers , CS201 Solved Mid Term Objective Papers from Virtual Study Solutions For Preparation of Mid Term Examination.

Recommended : C++ Programming Tutorials

CS201 Current Midterm Paper Pattern For Spring 2017

Total Question = 26
Total Marks = 40

Time = 60 Mints

Objective Paper: 1 Marks Mcqs = 20

Subjective Paper:
  • 2 Marks Short Questions = 2 
  • 3 Marks Short Questions = 2 
  • 5 Marks Short Questions = 2
Recommended :CS 201 solved midterm Past Papers Download 2015

CS201 03 JUNE 2017 MID TERM PAPER:


  • mcqs were mostly from moaaz collection (18 marks)
  • write a program using do while loop (5 marks)
  • explain & | operators (3 marks)
  • explain the highlighted lines in a program (5 marks)
  • write a c++ program ( 5marks)
  • write the output of a program (3 marks)
Shared By : amna mughal

CS201 03 JUNE 2017 MID TERM PAPER:

1 - Write a program and display 15% tax of a item. First take a input from user and then show his 15% tax as output.

2 - Write a program in which ask user to inpur radius and then using switch statement write 2 cases
1. Enter A or a to find area of circle.
2. Enter C or c to find Circumference of circle
Formula were given ....

3 - write a program to make a 2D array which has 4 rows and 2 columns and display it. i used rand() and then displayed 1st row elements in it 

for example there is a array:

23 43. 5. 84.
54. 42. 1. 75

the Display/output should be like this :


23 43 5 84

shared by : Tariq Ali

Recommended : CS201 all past solved midterm papers 2015
Stay with us, more Current Papers will be added as Soon as students will share with us.
If You have attempted CS201 Mid term Paper Spring 2017 Please share with us in comments section below. Thank You.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *