0% found this document useful (0 votes)
12 views

Oops

1. The document appears to be an index of experiments conducted on various dates with brief descriptions and page numbers. 2. It includes entries for writing C++ programs to create a simple class and object, write a function to calculate the sum of two numbers using objects, and write a program to calculate the average of n students and display the results. 3. The document provides details on the date, name of experiment, page number, and signatures for 8 experiments conducted between January 20th and April 20th.

Uploaded by

Abhiram Abhiram
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views

Oops

1. The document appears to be an index of experiments conducted on various dates with brief descriptions and page numbers. 2. It includes entries for writing C++ programs to create a simple class and object, write a function to calculate the sum of two numbers using objects, and write a program to calculate the average of n students and display the results. 3. The document provides details on the date, name of experiment, page number, and signatures for 8 experiments conducted between January 20th and April 20th.

Uploaded by

Abhiram Abhiram
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 14

INDEX

SI.No. Date Name of the


Experiment PageNo. Signature
1 20/1/23| wite a t t Proqham to uuae o
a Aimplu clau and ohjed .

2 |20/l23 wite o Shoham to Jnlenur|02


a da
03
3 20/1/23 1Jaite a c++ phogham Jo 0ate
deails
clau do gul and iuk

&tba o
udu Abutuu do
2o/1/1 3| WAP hat numbin Apoalty
paaly af
ABudenl dau 05
05
20/4-/13 1AP to nuale N Akudenb
&o Duod
an bunf
d taily
Jo lusbate h wokin
06 09

20/4/23 MAP
ahd c a ih (4t.
oebjeu

a claus ime with 10 41


Ao Ueate Ai(an d.
20/4/13WAP minuukr ahd
numbo ho, two i objeu
T a k nult) o
Aum o had twe
ahd displa th
m 42-13
AP
muliblrtokOn o fwo
8 2 o/1h3 matir sihg 0os

P
NATIONAL INSTITUTE OF TECHNOLOGY, AGARTALA
Departmentol Computev ScienceandEngineering
Name .as.hana.hoLAM.A.. ** oneorsas************sssssnseeianessesman***********

Date..m .m Semester.. . Roll No. .O32.. Page No....


Waitt a (t* Mam o eak a AIml d a and hed

#incude<icsexeam
#include<bits/stdc+t:h
VSing namespace sd;
clos Num
/access modi Her
Publt
data membets
int numi
in nutmm
I Constud
Num (inta, int b) f
this-snumi = a
this nun =b, 3
Juun numi +num2, }

h-mouh (){
/obseu extalton;
Num firc (3,4)
un 0,
AGARTALA
TECHNOLOGY,
NATIONAL INSTITUTE
OF
bngineenin
Scienceand
Departmentof Computer
tabla "
******

Nao ******sstn**ssssssss***********odarnuareanassnatsspssssanoaspaerssssnassa*
Tnbut oulpul
ame
N o . . . w w w m m m u Pago No..
aneam
Roll

omostO

otufut ****
umslynard
a das
to
Tnsut ite a POham

#include <iostrtam

unution jut unt a sing nahcspou sd


Thu
statemnt.
Cla Num f
Public
int humd
int non2
ind b)f
NUm(inda,
thi's n o n l z a
-
th humL
Int sunl )f
d n nUnit nun1
catmuWcad

a
oubut Void Statel kuntton Jud piind
This
Coud"
statemunt

a
fundbn juB þvint
Thu ind m a i n ) S

Num f i r c t ( 3 , 4 ) ;

f l cadeC );
twn 0,
NATIONAL INSTITUTE OF TECHNOLOGY, AGARTALA
Depatmento Computev Scienceand engineeing
* * * * s s s s s s * b n p * * * * * * * * * s * * * * * * * * * * * * * * * * s 0 a p p O R p r t
ssstpAsGO********srp****o*vanh****** **a*
Namo
b99OnouYudnunaa
RollNO..asmmanau

Dato.
Dato
*as**aoe************* °OmODulm* su

lo uale dau o d and pird


Cosile a ttt
phoum
debil
includer iobiean)
USih hanes pau sl
ca su dent
Publ
sttng nane
int toll
Void sel-nanal )f
stg a
cin a
his namea

Void sal-xot )f
Cin S> a

hrt roll=a1

Staing gatane ()f


utan bs hane
i n gl volt ( roll' } 7,
utun thls
nt mainlO
Studerd Are
Arc sd-hang )
gef-hamo()
eand
Coul<< Hrsd

uan 0,
AGARTALA
Inu aulfut Jukl NATIONAL INSTITUTE. OF TECHNOLOGY,
Departmentat Compuev Science and Engineering

Inut auput Page No...OL.

94 34 911150 91349U50
bite o
ooy.am ha u bottuu to o n 3 ontu
08 21 412381 a numban spanal y
o8214238 nuUnbun.
Counby code kea code 0iginalhon
#ínclude<ios trtan
Using namesbace Std
outhut class Numbsa {

Eni tu couny code, o t a code and


aiginal num au Publíc
srng tounby ode
upruhvely: string aNCA-Code3
stíng origfralnumber;
91349U50
Numbua(strmq a, skrirq b, string c)f
thi's
this
country-code
aracode =b
thísoTígiral-aumber =c;
( ) {
sring complete-humber
hum ber
unn Coun&yCode +ata Code +origina

in main C)
strn a,b,
Code and
Cou Eni t h county Code, ave :" kerdl,
Osiginal hum bet aëspetivly
Cin s> a>> BS> c;

Number Sadhara a,b, c)


CSud Sadhara Comblebe-humber ()<e end
NATIONAL INSTITUTE OF TECHNOLOGY, AGARTALA
Departmentof Campudev Scienceand Engineeting
Tnhu eupul takl : Na
amo nmmasnasasssero s*naseee***** ************* *

Page No.O5.. * * * "

3 TR detoails of sStudenk M: Date.. u s u 5omester...maasRO NO.*******

Sadha it a
pho.an o ouade uderd cla had an unt
Sadhona
Name isSadhan a N sude dtail
Roll no' t s 3
Hishan Setien =include <bits /stdc+t h>
14+0
TRe detuu o studtnd 4 sing namespau sld;
184 Naune i Nishan closs sudent
Roll no' +0 daba nen ber
SeuHon : Stxing nam
The deaik oudet i fnt tol;
Name JA nu Cha Sec
Roll no 187
oid s l )
Seulon B Cin > name
this>name = nome
cin >> Toll

ouut cin sec


this Se c Sec:3
Enbn tu numbvn of stu den
3 Couk< Nama Ja: <<
thisname<<endl:
T d dails studau i: Coud Roll no' is: < thi toll <<endl
Name i : Sadhana
Couut "Sec Hon is:" << his sec <endl
Roll nd 3

Th details o skud er i'nt nt)


Non : Hishan
N oute" Enton tha numbe o Students:;
cin s> N;
Roll ns 1+0
student VCN 9;
Sedteh M B
TR deaily o cuda fo Cint c=0; i<N; +)
out The de kaa ot su der u
Nam hogi VCi sdt (); endl;
Roll ho' 189
Seuhoh ' . B
of Cerhnalugy, Agartala
Nufional Justitute
GOVERNMENT OF INDIA
Department of Computer Science Engineering
Inbut tabu Rol N. Semester.. Date...3./..o.J23.Page No. .. *

Exoimnd )
Input Outut boait Aalay whau
WAP C+nhut onshy ram1 and
Ho
Sadhano DA 14199 ISabau dalany
5 0 0 0 0 0o TA 4199 DA 30 obauic 4alwy TA-
HRA 10 obaic Aalay.
HRA 5000o Calutate
ad nat
ou Aalay nd Aalouy al
ncor ua deduion.
Print all dcti n Auutallb manv
Inometar 5 4249
Net Scuaky 203u4

include< i0streamb
h>
ihcludt bits / sldc++
<

USing amessat St

class emb
Public
data member
Sti name
Bacie-sahy,
H Constuetor
Cmp (stirg name, int
Basíc -salay )T
Ehisname =noame
this BasícSalay= Baur-ala
int DA Cit
tun Sala *
salasy )
O»3;
int TA nt aaulay )
dun salanyO15;
int RRA CIN salay) f

ind gyoss Ci
hdun sudovu)
salaty Asal ay+ TA .

(sala y)+ HRA Salasu1


National Justifufe of Terlhnalagy,
GOVERNMENT OF INDIA
Agurtala
thn tu ha
ol Cmlayu Sadhana Department of Computer Science Engineering
Sooooo
Enlin ba dala Roll
No.. Semester.
Date.. J PageNo.0
DA 1 N9999
ncomt-tax(tnt Salay)f
TA 4999

HRA 5 00o n gs (Sadoy )o0


tnk d-salas nk salay)f
Innomtnx 54249
Ne Salany 20NI int main )
Stirg home
intkalay
Coul <r Énn th nama of unbloyee
Cín > >name;
Cautecendi&Enin &a bauí Aal ay; ";
cin > sala,
em fircd rame, Salaty
C o u ts DA " <ir D A ( s a l a y ) <<erd1;

CAul < TA c TA (Saloy) «enI


HRA (saly ) «<ndl
"

Cout ee HRA
Coute" hToss i fig oulalary ) r«ndí:
"

kru ntont azalo eend1-


"

Coule" Inome a is
Coute" Nlet saby ís i " < < hn nsalau (Salauj« ed
un 0
Nufional Insfifute of Cerhnalagy, Agartal
GOVERNMENT OF INDIA
Aig OTyDavop
Department of Computer Science L Engineering
Tnut aukuk takL Rol No. Sermester. Date. Page No..D

WA in
t to iru Unpiup nu ad bas Aalmy whou,
Tn sul GuAut D 30 /. bai aloy T-IS ob nnu HRA 10
boli alo luie u Jalauy andn aly coníd
inore ax o 07 rt
Saly 4 u o o 2 1sk
Sadhana 5 00000 Pen annm Salany 930o000
md Salaiay in &dwun akh, 57.
2
d Aalauy u
DA 150000
2 akh ard 7 r aly yaadu han o akh.
n bulwean
5t io
TA 2soo0 #include c bitlstdet +.h )
Std
DSing hamcshau
HRA 50 000
class emb I
nvou 335000 Publie
ncome tax 651000 Stting rame
lohg oy Bas Sala
Nd salany 24 000
em (sting nam, in salay)
Ehu hatnt hame
h Rasit. Sala=Salay:

long lang DA
(lohg iorg Selaq )
uulh saleysoAao
J
lory lorg TA Clong lag Ssalay
tun salas.y 1s/100
long ley HRA (lorgokgalany )
wn Soleny 1o /1oo
long long 9no (iong leg Salaa )
aeton SaloDA(salay)+TA(la +HRAlsalosy
lorg leng Pper-dhnum (long tong Aaloy )T
uon 1ou(Salay)iy Y
lorg long invoho ax (teng lorq Salory) [
lorg long yeab.lyR-aum (salay
of Cechnalogy, Agartala
Nufional nsfifufe
GOVERNMENT OF INDIA
Department of Computer Science Engineering
Enu name and Salmy
Rol No. Semester. Date. Page No 9.
500000
Saxllhana
300000
o L yaly e 20000o)
Po amum Salny eun yeo 0,
DA 13000o
dn if ytal 200000 14 <=5ooooo)
TA 5 000 clun yal 42/100;
HRA S0000

995000
d (yeaa soo00o
4 ely e=
lo oocoo)
Inuatre tox G51000 uhoa yeanly /10

Ntt Sala 129000 uuhh yeady e a/0o


lsrg leng nl-salaky (lorg long Salanuy )f
u h vou (Aalay)
-income_tnx (salasy) 7
intrainl ) T
sbug nant
ong Leng Salay
CouleEntn nams ond Sala' end
Cin rome > salaoy
emp Ask (nane, saloas);
Caule pen anun olrd sala "ce"
Coul Bsl.patahnum (alay)& end
Coul e DA
Coule rd.DA(Salmy)
Cow<"aTA "
«adi
Coule" HRA
vs TAA: (iadany) «codi

Cou
Cou fas HRA saloby) «endi

coul « r9hou(salou) «endt;


coul Intome tox
Coul "Nd, saloy,
Caueeish-salo salay) << endt
AGARTALA
NATIONAL INSTITUTE OF TECHNOLOGY,
Science and Engineezing
Departmentol Campudev
Name ***********************

Page N o O
D e n e s t e r . a m s
Roll No.
Date.***********s*******
wih rembus
Tnut Raultant m i bite a hoyasn do oaae a cla E
ad and Tak: uub two i m shredy
3 4 15 hauh, minule
and display u Sum othal
05:05:40
2 1 25
#clude<bits/stdc:hS
USing rameshatu su;
classTineC)
Public
idata mem bn
nt hou
int min
int See
h constudton:
Tima (int heun,int min, înt sac)f
this houn=houh
tha-mun= mun
t ù s Set Sac3

Void timis (nt heun, int min , int cr)f


Caul e haouh <e": '<min« ":"<sec«
endl;
Void sun
(Tim Artt, Tim
tnt a1,bi, ci atond) SS
CA i s Sa
bL- A-mih Setend o
m Stond
a1-ict- houa + Serand-houn
14 (C1
= 60 ) bt =C1/60 ca rci-6o1
elke i (b1>=60)
Tim suliant (ai, bl,
{ait=bL/(o bi= bi- 60,
y
Coul e Resultant ci)
tîm is: <
Jultant Him-is atl
Cai,bl, c); Y2
AGARTALA
NATIONAL INSTITUTE OF TECHNOLOGY,
Science and Engineering
Depastment at Camputer
Nane essepne*********e*******

Page No

O
minui and Setans o
En the hous, main)
in a,bc 4,cf
3 4 15 objed: and Sconds hrd
and Cecon oScahd Coute" Entn he hoa, munñu
EnD the h a , mihulty
chicdendl
25
cin a bS>c
Tine rsd la,
bc) cnd
Raultan! Jim Coud Ehtn h heuu, muiubu and Saten
aed:"«nd.
05 05.40
Cin doses>£;
Tim Secend (d,e, +)

tre sun(irrd, stetend)

n n
AGARTALA
NATIONAL INSTITUTE OF TECHNOLOGY,
Bepantmentof lomputev Scienceand engineering
Ente aadria Namo. ne**sapopsosn******aran
Roll
}No. meaenenPago Nod
Dato.sssosa********** 8emestof.m uunu
QulAut ing
Tnut two malbi
Malt a à Lbitta popanho mulhPiaka
Enttn [o) ro) #include <bits/stdctt-h
2
USing namespace sd;
Enta L17Co 5
s
Ent X t1)1) chss Habrk t
Hatria b u Public
6 6 intx[iJ[toJ;
Enb
x toJto): int
Enbn x [ o ) [ 4 3 3 4 int Col;
a, nt )f
Eten x l41to)
3 Void gel -Hotrn Cint
Halxix n1
axb givas thiso=
Ghiscl = b
21 26

39 48
caueEntn xt"<<i«<" It«j«"]:";
cins> xEICj1;}
Void putMaltixt) f
forCint to icrow; it+){

te (into: jetol; '+*)f


Ceutextiitj]««" *";
Colulee endl, }
mi)
Hatsk mulbply (Hakvix
Hatix m,
m-Yow 3O
m Col=Col
i<row; t+t)
fer Cint t0, (mi-xt
foGint j-o Jecol, jtt){
x t i j
+ ((xtiJtK))*
y u n m; 1
o, NATIONAL INSTITUTE OF
TECHNOLOGY, AGARTALA
Gullut Depatmentot Camputev Science and Engineering
Enn madna a D
arne..osesesess*ssssespaa
sassssosemoeees GEmeseTmmonanucumma
PO iO.a.
-Page No.3
2
Enb x [ojco int maih )
GNAto1t4) Hadit i , wa, m3
9
Enln x c1) lo] Cuu " En modt a "

<ehd
Ewn x [17C1)5
L Hedrr (2a),
Malx 6
2 3
i PulNahia )
5 Couul ce" thin mati b:«ndl,
ma u-Madr (ai):
Etu na»kux . Coul " Hatrra b eend1,

Enttn x to Jro7 m 2 Pu Nadw ()


x )l4) : 7
Co m3m nulhpy th1)
Enkn
Enku (1to 3
Cou " a x b givVe"u
m3 PuHalrr ()

6
3

axb 9 ru
24 26
39 98

You might also like