logo

Principles of Programming

   

Added on  2023-03-17

4 Pages546 Words118 Views
Principles of Programming
Compiling The C++ Program.
An automation file, Makefile, has been provided to assist in compiling the program.
To utilize it, run “make” command while in the same directory as the C++ source files.
Alternatively, running “g++ *.cpp -o SIS” produces the same results. Upon successful compilation, an
executable fill called “SIS” is generated.
Running The Program
With the executable file having been generated, we can run the program be issues the following
command:
./SIS
This displays the program’s Menu Options as show in the image below.
Figure 1 SIS Menu Options

Programming Concepts
In the process of replicating both the functional and some non-functional requirements, various concepts
and programming practices have been utilized.
Classes and Subroutines:
As per the requirement, three classes have been created. Access specifiers along with setters and getters
have also been utilized to enhance data abstraction.
Course Class:
A course is the top dependency in the sense that, without at least one course being registered, subjects
cannot be added. Also, no new student can be admitted without a course.
Subject Class
A subject packs subject name along with the associated outcome for each subject with active
enrollment.
Student Class
This class consumes most of the functionality features that the other two classes. In general, when a
student is registered /added, their first and last name is needed, along with the course that they will be
pursuing. The course has to be amongst those already registered. Later on, the student can enroll into a
subject. At the moment, the student can enroll into any subject that has been registered. In future,
perhaps it would be better it the student can only enroll for a subject that is strictly within the course
they are pursuing.
The student can view subjects that actively have enrolled student. This is to perhaps assist them into
making pre-informed decisions before enrolling too. Upon enrolling into a subject, marks / outcome for
that enrolled subject can be added and the transcript generated.
Figure 2 Class Diagram for the Classes

End of preview

Want to access all the pages? Upload your documents or become a member.

Related Documents
ATM App - Java Program for ATM Operations
|6
|769
|60

Student Name Student ID.
|24
|5117
|235