0% found this document useful (0 votes)
79 views1 page

C Programming - Assignment - 3

This document contains instructions for Assignment 3 for an Introduction to IT & Programming in C course. It includes 5 questions: 1) Write a program to generate and print Fibonacci words up to order 5. 2) Write a program to sort an array of names alphabetically. 3) Create a student structure and write functions to print names of students who joined a particular year and print data of a student by roll number. 4) Write a program to count consonants and spaces in a line of text. 5) Write a program to replace all occurrences of the word "Bombay" with "Mumbai" in input text.

Uploaded by

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

C Programming - Assignment - 3

This document contains instructions for Assignment 3 for an Introduction to IT & Programming in C course. It includes 5 questions: 1) Write a program to generate and print Fibonacci words up to order 5. 2) Write a program to sort an array of names alphabetically. 3) Create a student structure and write functions to print names of students who joined a particular year and print data of a student by roll number. 4) Write a program to count consonants and spaces in a line of text. 5) Write a program to replace all occurrences of the word "Bombay" with "Mumbai" in input text.

Uploaded by

richa.vijay
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 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

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy