Programming in c, Exams of C programming

alfnk.sdfnkndfs/sjdl/fnmlsfmal/dm

Typology: Exams

2017/2018

Uploaded on 04/25/2018

bala_1102
bala_1102 🇮🇳

1 document

1 / 134

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
E.G.S PILLAY ENGINEERING COLLEGE,
NAGAPATTINAM DEPARTMENT OF COMPUTER
SCIENCE AND ENGINEERING
(Approved by AICTE, Aliated to Anna University)
(Accredited by NBA – CSE/EEE/MECH)
(Accredited by NAAC with “A” Grade)
(An ISO 9001:2008 Certied Autonomous Institution)
17GEX51 - PROGRAMMING IN C LABORATARY
MANUAL
PREPARED BY
J. NOORUL AMEEN M.E, MISTE, EMCAA, Ph.D.,
ASSISTANT PROFESSOR
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51
pf52
pf53
pf54
pf55
pf56
pf57
pf58
pf59
pf5a
pf5b
pf5c
pf5d
pf5e
pf5f
pf60
pf61
pf62
pf63
pf64

Partial preview of the text

Download Programming in c and more Exams C programming in PDF only on Docsity!

E.G.S PILLAY ENGINEERING COLLEGE,

NAGAPATTINAM DEPARTMENT OF COMPUTER

SCIENCE AND ENGINEERING

(Approved by AICTE, Affiliated to Anna University)

(Accredited by NBA – CSE/EEE/MECH)

(Accredited by NAAC with “A” Grade)

(An ISO 9001:2008 Certified Autonomous Institution)

17GEX51 - PROGRAMMING IN C LABORATARY

MANUAL

PREPARED BY

J. NOORUL AMEEN M.E, MISTE, EMCAA, Ph.D.,

ASSISTANT PROFESSOR

DEPARTMENT OF COMPUTER SCIENCE AND

ENGINEERING E.G.S PILLAY ENGINEERING

COLLEGE, NAGAPATTINAM

Mail id: [email protected]

Website: profameencse.weebly.com

  1. implement the basics of structures, unions, file management and preprocessor in C language References:
  2. E. Balagurusamy “Programming in ANSI C”-McGraw Hill Education India Private Limited;
  3. Seventh edition, 2017.Pradip Dey, Manas Ghosh, ”Computer Fundamentals and Programming in C”, Second Edition, Oxford University Press, 2013.
  4. Ashok N. Kamthane ”Programming in C”, Pearson Education India; 3 edition ,2015.
  5. Yashavant P. Kanetkar. “Let Us C”, BPB Publications, 15th Revised and Updated edition, 2016.
  6. http://nptel.ac.in/

Prepared by : Prof J. Noorul Ameen M.E, MISTE, EMCAA, (PhD)., /AP CSE/E.G.S PillayEngineering college,

Nagapattinam/Mail Id: [email protected]/ Website: profameencse.weebly.com

Page 3 of 68 Ex.No: 1.a DOCUMENT CREATION Date: Aim To create a document and manipulate text with scientific notations. Procedure

1. Select StartàProgramsàMS-Office Microsoft Word

  1. Now new document window will be opened
  2. Type the contents within the document and Perform the operations Like 3.)a Make some text bold type, underline & make italic 3.)b Correct spellings & save the document with suitable name 3.)c Change the text with different font types & size

3.)c.()I COMPUTER

Definition Computer is an electronic machine which performs a particular task. Parts of the Computer It has three components. They are

. CPU i. Input unit and ii. Output unit.

CPU is the central Processing Unit which consists of three other units like ALU, Memory unit and Control unit. ALU means Arithmetic and Logic Unit which performs all arithmetic and logical operations. Memory unit is to store all programs and data. Control unit controls the overall system. Fundamentals of Computing Fundamentals of computing

Prepared by : Prof J. Noorul Ameen M.E, MISTE, EMCAA, (PhD)., /AP CSE/E.G.S PillayEngineering college,

Nagapattinam/Mail Id: [email protected]/ Website: profameencse.weebly.com

Page 4 of 68 Fundamentals of computing ABS TEXTILES, 45,Car Street, Tiruchengode-637 204. 04288-233871.

iv. Search for the word Computer and replace it with Computer System v. Type the following at the end of the document:

(A+B)^2 =A^2 +B^2 +2AB H 2 +O^2 àH 2 O √a+b=c

  1. For searching operations press find button in home tools or press F5 key
  2. Save the document as Filename.doc
  3. Close the document

RESULT

Thus the document has been created and manipulated text with scientific notations..

Prepared by : Prof J. Noorul Ameen M.E, MISTE, EMCAA, (PhD)., /AP CSE/E.G.S PillayEngineering college,

Nagapattinam/Mail Id: [email protected]/ Website: profameencse.weebly.com

Prepared by : Prof J. Noorul Ameen M.E, MISTE, EMCAA, (PhD)., /AP CSE/E.G.S PillayEngineering college,

Nagapattinam/Mail Id: [email protected]/ Website: profameencse.weebly.com

Page 6 of 68 e. For underlining , select the particular word or statement or paragraph then press CTRL+U or select the on the formatting toolbar.

f. For spelling corrections , select the particular word, then right click the mouse or click spelling and grammar button on the standard tool bar.

g. For saving the document , press CTRL+S or click on save button on standard tool bar or select the save option from the File menu.

RESULT:

Thus an advertisement for a company with the relevant specifications was prepared using MS-WORD and the output was verified.

Page 7 of 68 Ex.No: 1.c WORKING WITH TABLES Date: Aim To create a table and use table formats and conversion operations. Procedure

  1. Open the new document
  2. Select Table menu bar, then choose insert table option.
    1. Type the following contents within the table and use table formats S.No RollNo Name M1 M 1 1001 Devika 88 84 2 1002 Kavitha 87 97 3 1003 Bhuvana 90 98 4 1004 Prabu 89 88 5 1005 Rani 79 93 f. Select Table LayoutàConvert àTable to Text option to convert a table into text by separating commas and Select Comma in the Table To Text option.

S.No, RollNo, Name, M1, M2 1, 1001, Devika, 88, 84

Prepared by : Prof J. Noorul Ameen M.E, MISTE, EMCAA, (PhD)., /AP CSE/E.G.S PillayEngineering college,

Nagapattinam/Mail Id: [email protected]/ Website: profameencse.weebly.com

Result Thus the table has been created and conversion operation is performed.

Prepared by : Prof J. Noorul Ameen M.E, MISTE, EMCAA, (PhD)., /AP CSE/E.G.S PillayEngineering college,

Nagapattinam/Mail Id: [email protected]/ Website: profameencse.weebly.com

Page 9 of 68 Ex.No: 1.d MAIL MERGE AND LETTER PREPARATION Date: Aim To prepare letters and send it to multiple recipients by using Mail merge. Procedure

  1. Open the new document and type the following letter From The Head of the Department Department of CSE E.G.S Pillay Engineering college Nagapattinam To

Our Students are interested to visit your company on the first week of Next month. I kindly request you to give permission to us.

Thanking You, Yours faithfully, HOD 3.)c.()N Select ToolsàLetters and MailingsàMailMerge Wizard 3.)c.()O Select document type as Letters 3.)c.()P Select starting document as Use the current document 3.)c.()Q Select recipients as Type a new list 3.)c.()R Select Create… 3.)c.()S New address list window appears 3.)c.()T (^) Type the details which you want

Prepared by : Prof J. Noorul Ameen M.E, MISTE, EMCAA, (PhD)., /AP CSE/E.G.S PillayEngineering college,

Nagapattinam/Mail Id: [email protected]/ Website: profameencse.weebly.com

Prepared by : Prof J. Noorul Ameen M.E, MISTE, EMCAA, (PhD)., /AP CSE/E.G.S PillayEngineering college,

Nagapattinam/Mail Id: [email protected]/ Website: profameencse.weebly.com

Page 11 of 68 Output From The Head of the Department Department of CSE

E.G.S Pillay Engineering college Nagapattinam

To Mr. Rajan HCL Corporation Chennai

Dear Mr.Rajan,

Our Students are interested to visit your company on the first week of Next month. I kindly request you to give permission to us.

Thanking You, Yours faithfully,

HOD

Prepared by : Prof J. Noorul Ameen M.E, MISTE, EMCAA, (PhD)., /AP CSE/E.G.S PillayEngineering college,

Nagapattinam/Mail Id: [email protected]/ Website: profameencse.weebly.com