You are on page 1of 5

S

REG NO 20l|5OID NAME: DHANUE H kUMAR S

DEPT Bech AI eoML. TE 26lD8|203)


EN 7 -
LAB X PERIM
LAB FXPERIMET
CLEAN CODING
-

vote wnng commonts:


1) WYta owa Progam for aliguha

AIM vote ung


70 wYHo Yagam o ligib
O AaNa
Commar%

ALGoeTHM
Saner
clas
etep 1 ImPozt

class hame

8tap 2
wth values
vartales

Step 3 Ag he tha conditiëno

stetemot

Stop 4
progcen
Stop

Baue cnde
oport owa.ti). scanne

EligRbietoroie
Clae

poam

public statie voiel man ( sing aag)$


methad &tab
/7090 Auto geneakd
Jind Candidate lguleturots 0
int candidatoAolesigiltorav 1
Sannen C =
now scanner C
Ystem h) 3
aSTem Out uln C "pleae ente you e .
candtts Egitetrote
Candito Eligdblulorota
Carinota vetseligibltovote
Sysem. oLe-
paintuCcoqauktionypu a
igde or voy;|
ele
System.Out-punly (' DTYY ) ou ca not eliba vebrg "

Sample oudpud

plaase ente youo 1


Cngaatulalzon you a igi ov votino

RESULT
Thu the abena proqpam ao baen eacad ano

v i duue
2) AvHh mali opintor wg Horizotad cpeme and
Janmby
AIM
TOwrhe a aNa pragram pY authmtu epeedtor uupg
pil zotl open r o and dannds

ALGCRITHm;

Sep 1 Sta ho PrOgam

12p 2 AMgnan9 vaabes W ith Valuos

Stsp 2 B9 Uig Qthmetie opeiato Cheik whetha i


clely datad r nolated 9 horizenta

SHep 4 Sio t PYegam

Soua cooe
puuie cdas Phithmote
/x*
paam ags

uldic void main


na axgs)
l/1ODOAuto gereatad mothod tal

Sysiam .ocut pruinHn Catb)


t. puntLn Ca-b) ,
ayetem ut puMln Caxb)
sysiem. cet uirh ca|b)
iyeiem . eut prunt ln Ca «h))
3
Sample outpud
5

REULT
Thus the abone pragam hap baen exocute2d ahol

Veripied Buesuwy

) WTIte a ana Progam ig tNe comeept ot objec

OYRndad

AIM Udg tMe Concapt


prcnam
TO write a gowa
oriended

ALeyOeITHM
S1op Staa the prayam
Cvat ma name

class Name
S tep 3

Stap 4 Declare youn

StepS Slop he Peea


e m e cole

class madha

private

Pri v a t

vod add c)

sysem out pzindln Catb"'):G

clans u l erterdo motlio &


pYivatz a
painade Ant b

Void sus C
syatem ot- prubtln Ca-b")

Cla opet

pultc aie vod main Cring C) ags )

S. add C

S.sul c;

ampia otput
atb
a -b

RESUL T
ece cete
akone prJam ben
Thu the
and
eutiv d maully

You might also like