0% found this document useful (0 votes)
44 views7 pages

C++ Practical Guide

Uploaded by

abimbolaprospa02
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)
44 views7 pages

C++ Practical Guide

Uploaded by

abimbolaprospa02
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/ 7

COMPUTER PROGRAMMING USING C++ (SWD 313)

PRACTICAL GUIDE
PRACTICALS 1-3

TOPIC: SIMPLE PROGRAMS TO DEMONSTRATE THE USE OF C++PROGRAM


BASICS

OBJECTIVE: To demonstrate and inculcate in students the use of C+


+program basics like data types, keywords, identifiers, constants and
different types of operations.

EQUIPMENT: Computer Systems with C++ Compiler and OHP with screen.

PROCEDURE:

1. Sample C++ program shall be written and displayed on projector


screen for students to see.
2. Students shall be given three (3) simple problems each to demonstrate
the use of the basic items of C++ programming language as in the
objectives above.
3. Students shall write, run their programs and then print out both the
codes and the output from running as attachments in their reports.
4. Students shall report their activities in t heir practical report books
for assessment by the instructor.

CONCLUSION: Students will develop the ability to develop simple


programs in C++; mastering gradually the use of data types, keywords,
identifiers, constants and different operations in C++.
PRACTICAL 4

TOPIC: THE USE OF SELECTION STRUCTURE IN C++

OBJECTIVE: To enable students understand how selection structure (e.g. IF


statements and its different forms) is implemented in C++ programming.

EQUIPMENT: Computer Systems with C++ Compiler and OHP with screen.

PROCEDURE:

1.) Sample C++ program shall be written and displayed on projector screen
to demonstrate the use of selection structure in C++.
2.) Students shall be given simple problems that involved selection to solve
using C++ programming language.
3.) Students shall be assigned to computer systems in the laboratory with
C++ compiler installed.
4.) Students shall write, run their programs and then print out both the
codes and the output from running as attachments in their reports.
5.) Students shall report their activities in their practical report books for
assessment by the instructor.

CONCLUSION: Students would have mastered the use of the IF structures


in C++ at the end of this practical.

PRACTICAL 5
TOPIC: IMPLEMENTING ITERATION STRUCUTRES IN C++

OBJECTIVE: To enable students know, practically, the use of iteration


statements like the for statement, do... while structure and switch
statement in C++programs.

EQUIPMENT: Computer Systems with C++ Compiler and OHP with screen.

PROCEDURE:

1. Sample C++ programs shall be written for each of these statements and
demonstrate to the students with the use of projector.
2. Students shall be given simple problem situations that involve iterations
and be asked to make use of any of the iteration structures they
have been taught to write programs for solving those problems.
3. Students shall run their programs and then print out both the codes
and the output from running as attachments in their reports.
4. Students shall report their activities in their practical report books for
assessment by the instructor.

CONCLUSION: The use of iteration statements taught would have been


mastered by the students at the end of this practical.

PRACTICAL 6
TOPIC: INVOKING AND USING THE IN-BUILT LIBRARY FUNCTIONS IN C+
+PROGRAMMING LANGUAGE

OBJECTIVE: To expose students to the use of in-built library functions


in C++ programming language.

EQUIPMENT:C++Reference Manuals, Computer Systems with C+


+Compiler and OHP with screen.

PROCEDURE:

1. Sample C++ programs shall be written to demonstrate the use in-


built library functions and then displayed on projector screen for
students in the laboratory.
2. Students shall be given problem situations that involve the invocation
of some library functions for them to write on.
3. Students shall write, run their programs and then print out both the
codes and the output from running as attachments in their reports.
4. Students shall report their activities in their practical report books
for assessment by the instructor.

CONCLUSION: Some of the available in-built library functions in C++shall be


used in writing C++ programs in this practical.

PRACTICAL 7
TOPIC: USING PROGRAMMER-DEFINED FUNCTIONS IN C++

OBJECTIVE: To show students how to write C++ programs that


implement programmer-defined functions.

EQUIPMENT: Computer Systems with C++ Compiler and OHP with screen.

PROCEDURE:

1. Students shall be given problem situations that requires


programmer-defined functions to write programs on.
2. Students shall write, run their programs and then print out both the
codes and the output from running as attachments in their reports.
3. Students shall report their activities in their practical report books
for assessment by the Instructor.

CONCLUSION: At the end of this practical students shall be able to


distinguish clearly the in-built library functions from the programmer
defined functions implemented here.

PRACTICAL 8

TOPIC: WRITING AND RUNNING CLASS PROGRAMS IN C++


OBJECTIVE: To enable students to understand how to write and run
class programs in C++ programming language.

EQUIPMENT: Computer Systems with C++ Compiler and OHP with screen.

PROCEDURE:

1. Students shall be given problem situations that requires class


implementation and be asked to write and run C++ programs for
them.
2. Students shall write, run their programs and then print out both the
codes and the output from running as attachments in their reports.
3. Students shall report their activities in their practical report books
for assessment by the Instructor.

CONCLUSION: Students shall master how to write and run class programs
in C++ programming through this practical.

PRACTICAL 9

TOPIC: IMPLEMENTING THE CONCEPT OF POLYMORPHISM IN C++.


OBJECTIVE: To expose students to the practical implementation of the
C technique-polymorphism in C++ programs.

EQUIPMENT: Computer Systems with C++ Compiler and OHP with


screen

PROCEDURE:

1. Students shall be given problem scenario involving the concept of


polymorphism to produce software solutions.
2. Students shall write, run their programs and then print out both the
c and the output from running as attachments in their reports.
3. Students shall report their activities in their practical report books fo
assessment by the Instructor.

CONCLUSION: At the end of this practical, students shall understand th


concept of polymorphism better and be able to implement it in their
future programming encounters.

You might also like