You are on page 1of 1

MANAV RACHNA INTERNATIONAL INSTITUTE OF RESEARCH AND STUDIES

(Deemed to be University under section 3 of the UGC Act 1956)

Faculty of Computer Applications


ASSIGNMENT-3

DEPARTMENT: BCA SEMESTER: I


SUBJECT: INTRODUCTIONTO IT & PROGRAMMING IN C
ASSIGNMENT: 3 TIME ALLOWED: 1 WEEK

NOTE/INSTRUCTION (if any)……………………………………………………………………..

Q1. Write a program that generates and prints the Fibonacci words of order 0
through 5. If f(0) = “a”, f(1) = “b”, f(2) = “ba”, f(3) = “bab”, f(4) = “babba”, etc.
Q2. Write a program to sort a set of names stored in an array in alphabetical order.
Q3. Create a structure called student that contain data given below:
Roll number, Name, Department, Course, Year of joining
Assume that there are not more than 100 students in the college.
1) Write a function to print names of all students who joined in a particular
year.
2) Write a function to print the data of a student whose roll number is received
by the function.
Q4. Write a program to accept a line of text and display the number of consonants
and spaces in that line of text.
Q5. Write a program to input text and replace all the occurrences of word
“Bombay” by “Mumbai” in that text.

You might also like