Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
II Sem B.S(Engg.)
(2013)
Prepared by
Approved by
(Ashwath Rao B)
(H.O.D)
M.I.T., MANIPAL
INSTRUCTIONS TO STUDENTS
1. Students should be regular and come prepared for the lab practice.
2. In case a student misses a class, it is his/her responsibility to complete that missed
experiment(s).
3. Students should bring the observation book, lab journal and lab manual. Prescribed textbook
and class notes can be kept ready for reference if required.
4. They should implement the given experiment individually.
5. While conducting the experiments students should see that their programs would meet the
following criteria:
Note: - The programs done in the first 4 weeks should aid in the development of the subsequent
mini project.
Week 1, Week 2
Defining functions, invoking functions, passing parameters to functions and returning values from
functions; programs involving integer arrays, character pointers, strings and menus.
Exercise :
i.Design an account for a bank customer. Savings account and Current Account are two types of
accounts. Each account has account type, account holders name(s), address and interest rate. After
determining the principal amount, time and interest rate calculate the interest for the account.
ii. A movie theatre has 200 seats out of which 60 are balcony and 100 are first class and the rest
second class. Design a ticket booking system for a single show. Till the seats are vacant the system
should reserve seats.
iii. Design a dictionary for English to Hindi. The dictionary should have English words and the
corresponding word in Hindi. Create a class for dictionary and store few entries. Design a class called
Word which has a word text, the language of the text. Implement a convert() which will change the
word text and also the language.
Week 3,4
Classes, records, array of records defining student/employee classes, defining array of
student/employee records; performing various operations on these records as well as on the array.
Files opening a file, writing objects/records to a file, reading objects/records from a file, including
the length of a file etc.
Exercises for Week 3 :
1. A college is offering an undergraduate programme and a post-graduate programme. There are
five subjects in undergraduate programme and grade is absolute percentage of marks obtained. In a
post-graduate programme there are five subjects where the grade is calculated on a 10 point scale.
i. Create a set of students of graduate and post-graduate programme.
ii. Read in the details of students namely registration number, name, type of programme, marks in
each subject.
iii. Determine the grade for each student(note: grade depends on the type of programme).
iv. Determine the students who have obtained less than 35 marks in any subject. Display the
registration number, name, name of subject(s).
v. Determine the topper in each type of programme.
Week 5, 6, 7, 8
Mini project:- Batches are formed with 2 students in every batch. Sample systems like Library
management system, a university system, banking system etc to be take up.
Front end should have a simple menu and files to be used as backend/storage.(Instead of
databases). Each system should provide a minimum of 4/5 functionalities.
Sample systems for the mini-project
i.
Banking system
Lab References:1. Object oriented programming with C++ Balaguruswamy, McGrawHill publications.
2. Mastering UML with Rational Rose Wendy Boggs, Michael Boggs, BPG, 1999 edition.