Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
2Activity
0 of .
Results for:
No results containing your search query
P. 1
SP AND MP_LAB MANUAL

SP AND MP_LAB MANUAL

Ratings: (0)|Views: 402|Likes:
Published by MITMCA

More info:

Published by: MITMCA on Aug 02, 2011
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as DOC, PDF, TXT or read online from Scribd
See more
See less

12/15/2014

pdf

text

original

 
 
DEPARTMENT OF MASTER OF COMPUTER APPLICATION
LABORATORY MANUALDepartment : Master of Computer ApplicationLaboratory : System Programming And MicroprocessorLab (MCA 531)Semester & branch : 3
rd
Semester, MCAName of the faculty : Archana.HNo of contact hours/week : 3Submitted by: MRS. ARCHANA H(Signature of the faculty)Date:22/07/2011Approved by: Dr. Krishnamoorthi Makkithaya
 
(Signature of HOD)Date:
MANIPAL INSTITUTE OF TECHNOLOGY
(A constituent college of Manipal University, Manipal)
Manipal Karnataka 576 104
 
LIST OF PROGRAMS
PART A SYSTEM PROGRAMMINGWEEK 1
Introduction to LEX. Structure of LEX program.1)
 
W
rite a lex program to display µHELLO¶ when the user presses the enter key.2)
 
W
rite a lex program to display your name taken as input along with a messagewhen the enter key is pressed.3)
 
W
rite a lex program to check whether the given input is a number, word or aspecial character.
 WEEK 2
4
)
 
W
rite a lex program to count the number of a)
 
Positive and negative integers b)
 
Positive and negative decimals5)
 
W
rite a lex program to count number of characters, words, lines and spaces in agiven string.6)
 
W
rite a lex program to count the vowels and consonants in the given string.7)
 
W
rite a lex program to accept the language a
n
 b
m
where n>=0 and m>=1.
Optional
a)
 
W
rite a lex program to check whether the given sentence is simple or compound b)
 
W
rite a lex program to implement a calculator.
WEEK 3
8
)
 
Program to recognize a valid arithmetic expression and identify the identifiers andoperators present. Print them separately.9)
 
W
rite a lex program to count the number of characters, words, spaces and lines ina given input file.10)
 
Program to recognize and count the number of identifiers in a given input file.
WEEK 4
11)
 
W
rite a lex program to count the number of printf and scanf statements in a validc program and replace respectively with write and read statement.
 
12)
 
W
rite a lex program to count the number of comment line and tab space in a givenc program. Also eliminate the comment and copy that program into a separatefile.
WEEK 5
Introduction to YACC.13)
 
W
rite a yacc program to display GOOD MORNING when morning is typed.1
4
)
 
W
rite a yacc program to test the validity of an arithmetic expression.
 WEEK 6
15)
 
W
rite a yacc program to evaluate a given arithmetic expression.16)
 
W
rite a yacc program to recognize valid identifiers.17)
 
W
rite a yacc program to recognize the language a
n
 b
n
, n>=0.
 WEEK 7
1
8
)
 
W
rite a yacc program to identify a valid if statement or if-then-else statement.19)
 
W
rite a yacc program to check validity of a simple c program and also valid loopstructure in it.
 WEEK 8
20)
 
Program to recognize strings µaaab¶, µabbb¶, µab¶ and µa¶ using the grammar (a
m
  b
n
, m>0, n>=0).21)
 
Program to recognize the grammar (a
n
 b, n>=10).
 PART B MICROPROCESSOR WEEK 9
22)
 
W
rite a program to add two
8/
16 bit numbers.23)
 
W
rite a program to illustrate the use of subtract instruction.2
4
)
 
W
rite a program to multiply two
8
bit numbers and two 16 bit numbers.25)
 
W
rite a program to performa)
 
16 bit
/8
bit division b)
 
32 bit
/
16 bit division
Optional
a)
 
W
rite a program to compare two bytes and check whether they are equal or not.

Activity (2)

You've already reviewed this. Edit your review.
1 thousand reads
1 hundred reads

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->