This document summarizes a summer training project created by Shivansh Singh that uses object-oriented programming concepts in C++. The project includes two programs - a student report card generator and a simple cricket game. The report card program allows users to input a student's information and marks to generate a report listing the grades and percentages. The cricket game allows users to create teams from a player pool and take turns batting and bowling overs to chase a target score. C++ was chosen as the programming language due to its speed, support from developers, and use in operating systems and applications. The projects utilize functions, classes, and other OOP concepts in C++.
2. About Project
The project is based on topics learned during the training. The Project is based on
the concepts of Object Oriented Programming in C++.
This project mainly uses C++.
The project also makes use of functions and classes that are mainly used for shorter
and efficient coding
The basic structure of the program consists of function class and declarations.
Basic functionalities are implemented using functions and then are called by the
main method when required
3. About C++
C++ is a general-purpose, object-oriented programming language that was
designed by Bjarne Stroustrup in 1979 to be an extension of the C language.
It has the features of imperative, object-oriented as well as generic programming
models.
C++ also has some additional facilities to those in C such as classes, inheritance,
default function argument, etc. C++ plays quite an integral role in modern times as
many contemporary systems such as operating systems, web browsers, databases,
etc. have C++ code in at least some part of their codebase. Moreover, C++ is quite
useful in performance-critical areas because of its speed.
4. Why use C/C++
Although C/C++ are mainly used for creating operating systems and kernel, it is
very dynamic and can be easily used to create dynamic applications which are user
friendly and easy to understand.
It has large user community thus excellent support from developers around the
world. The language is also used for mainstream OS and thus can be used to create
seamless application across multiple platform without changing g the codebase.
C++ is fairly lightweight and when it comes to execution the compile time is
extremely small and is very fast running thus can be used to create high
performance applications which respond to user quite well.
Also C++ has abundant library support thus, it is quite well suited for variety of
application from scientific to commercial.
5. Project 1: - Student Report Card
This is a small application which makes use basic C operations to collect info about
the students in form of strings and integers.
The user first enters his/her name. Thereafter, they are required to enter their class
and section.
Once, basic info is collected they are asked to enter their marks in various subjects
out of 100.
After collecting all the information and the marks of the student, based on
predefined criteria the grade of students is decided. Along with grades students
total marks stored and percentage is calculated.
The final report is generated in a format, listing all their marks, along with school
name with other mentioned info.
8. Project 2: - CRIC-IN application
This application is small cricket application where user can play cricket.
The user can create teams from the list and play as a batting or bowling team.
The application starts with a welcome screen, after pressing enter user is presented
with players list where team can be divided into players each.
The toss is then done, after which winning team chooses to bat or bowl.
The innings is then proceeded with repeated interaction from user where batting
team gets to play an over of game (one inning is made up of 6 bowls or one over)
After finishing of the over the target is given for other team to chase.