0% found this document useful (0 votes)
3 views

Programming fundamental

Uploaded by

fatimaajmal004
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

Programming fundamental

Uploaded by

fatimaajmal004
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 7

Riphah International College (RICT)

Programming Fundamental
PROJECT REPORT
NAME: Fatima Ajmal

REGISTERATION NUMBER : AF23LNB1196

SECTION : ADP CS [E]

PROJECT NAME

“STUDENT MANAGEMENT SYSTEM”

INTRODUCTION;
A Student Management System (SMS), also known as a Student Information
System (SIS), is a software designed to record, analyze, and manage
information related to students in an educational setting. It integrates data about
students.

Student Information System in C++


Overview
This document provides an overview of a simple C++ program that implements a Student Information
System. The program allows users to input and display information for a specified number of student
records. The information collected includes student name, father's name, address, email, class, and roll
number.

Code;
#include <iostream>

int main() {

using namespace std; // Using the std namespace

int Records;

cout << "Enter the number of student records: ";


cin >> Records;

char names[Records][50]; // Using a 2D character array for names

char fathers[Records][50]; // Using a 2D character array for father's names

char addresses[Records][100]; // Using a 2D character array for addresses

char emails[Records][50]; // Using a 2D character array for emails

char classes[Records][20]; // Using a 2D character array for class names

int rollNumbers[Records];

// Input information for each student

for (int i = 0; i < Records; ++i) {

cout << "Enter details for Student " << i + 1 << ":\n";

cout << "Name: ";

cin >> names[i]; // Reading the name using the extraction operator

cout << "Father's Name: ";

cin >> fathers[i];

cout << "Address: ";

cin >> addresses[i];

cout << "Email: ";

cin >> emails[i];

cout << "Class: ";

cin >> classes[i];

cout << "Roll Number: ";

cin >> rollNumbers[i];

// Display information for each student

cout << "\nStudent Information:\n";


for (int i = 0; i < Records; ++i) {

cout << "Student " << i + 1 << ":\n";

cout << "Name: " << names[i] << "\n";

cout << "Father's Name: " << fathers[i] << "\n";

cout << "Address: " << addresses[i] << "\n";

cout << "Email: " << emails[i] << "\n";

cout << "Class: " << classes[i] << "\n";

cout << "Roll Number: " << rollNumbers[i] << "\n\n";

return 0;

Output;
Components Used

Arrays;

- Names A 2D character array to store the names of the students.

- Fathers: A 2D character array to store the names of the students' fathers.

- Addresses: A 2D character array to store the addresses of the students.

- Emails: A 2D character array to store the email addresses of the students.

- Classes: A 2D character array to store the class names of the students.

- Roll Numbers: An array of integers to store the roll numbers of the students.

Loops;
- For Loops: Used for iterating through each student record, prompting the user to input details.

- Display Loop: Used to display information for each student.

User Input;

- cin: Used for taking input from the user, such as the number of student records, names, fathers'
names, addresses, emails, classes, and roll numbers.

Output;

- cout: Used for displaying information on the console.

Motive

The motive behind this program is to create a basic Student Information System that demonstrates
the use of arrays, loops, and user input in C++. It allows users to input information for a specified
number of student records and later displays the collected information.

Program Flow

1. The program starts by prompting the user to enter the number of student records they want to
manage.
2. Arrays are declared to store information for each aspect of a student's record: name, father's name,
address, email, class, and roll number.

3. For each student record, the program uses loops to collect information:

- The program prompts the user to enter details for each student, including their name, father's name,
address, email, class, and roll number.

4. After collecting information for all student records, the program uses another loop to display the
collected information for each student.

Conclusion

This C++ program provides a basic foundation for a Student Information System, illustrating
fundamental concepts such as arrays, loops, and user input. It can serve as a starting point for more
complex systems with additional features and functionalities.

-----------------------------------------------------------------------------------------------------------------------------------------

You might also like