0% found this document useful (0 votes)
14 views15 pages

Grade Calculator Project in Python

Uploaded by

st4007891
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views15 pages

Grade Calculator Project in Python

Uploaded by

st4007891
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

SUNDARAM CENTRAL

SCHOOL, PALGHAR

A Project on
“GRADE CALCULATOR
Using Python
For
AISSCE 2024 Examination
Submitted By
Ravi Godbole
[Roll no: 19]
Under the guidance of
Mrs. Mohini Verma
PGT(Computer Science)
1
CERTIFICATE
This is to certify that Mr. Ravi Godbole has
successfully completed the project work on
informatic practices for class IX practical
examination of Central Board of Secondary
Education in year 2023-2024. It is further
certified that this project is the individual
work of candidate.

Signature of student Signature of internal


examiner

Signature of Principal

Date: ______________

Place: ______________

2
ACKNOWLEDGMENT
I feel proud to present my project in
Informatics Practices on the topic "GRADE
CALCULATOR". This project wouldn't
have been feasible without the proper and
rigorous guidance of my IP teacher Mrs.
MOHINI VARMA who guided me
throughout this project in every possible
way.

I would like to express my gratitude towards


my friends for providing the necessary
information and knowledge about the work
during the period of my project.

Ravi Godbole
11th (Science)

3
INTRODUCTION
Python is a popular programming
language. It was created by Guido van
Rossum, and released in 1991.
It is used for:
Web development (server-side),
Software development,
Mathematics,
System Scripting.

Why Python ?
▪ Easy to Use and Learn
▪ Increased Productivity
▪ Flexibility
▪ Extensive Library
▪ Supportive Community

4
What can Python do?
#Python can be used on a server to
create web applications.
#Python can connect to database
systems.
#Python can be used to handle big data
and perform complex mathematics.
#Python can be used for rapid
prototyping, or for production-ready
software development.

5
Explanation of ‘Grade
Calculator’ Code

An empty list called `students` is


created to store information about each
student.

The user is prompted to enter the


number of students for whom they want
to record results. The input is converted
to an integer and stored in the variable
`n`.

If n is less than or equal to 0, the


program prints an error message and
6
does not proceed with the loop.
Otherwise, it enters a for loop that
iterates n times, prompting the user to
enter details for each student.

A `for` loop is used to iterate `n`


times, where the user is prompted to
enter details for each student.

Inside the loop, the program collects


information such as the student's name,
and marks in Mathematics (`mth`),
Science (`sc`), English (`eng`), and
Information Practices (`IP`).

7
The total marks and average marks for
each student are calculated.

Based on the average marks, a grade and


pass/fail status are determined for each
student.

8
The student's information, including
name, total marks, average marks, grade,
and pass/fail status, is stored in a
dictionary called `data`, and this
dictionary is added to the `students` list.

Finally, the program displays the results


for each student using a loop that repeat
through the `students` list and prints
out the relevant information. A message
is printed, indicating that the marks are
registered for the specified number of
students.

9
Summary Code:-

10
Explanation of Output
Output 1:-

In this case, the program takes input for


three students, calculates their results,
and displays the information for each
student.
11
Output 2:-

Program takes input of two students and


calculate the status pass and fail
respectively.
Output 3:-

12
If the user enters 0 as the number of
students, the program prints an error
message and does not proceed with the
loop.
Output 4:-

If the user enters a negative number as the


number of students, the program prints an
error message and does not proceed with
the loop.

13
CONCLUSION
The provided Python code is intended to
collect information about students, calculate
their total marks, average marks, determine
their grades, and display the results. The
program allows the user to input the
number of students, and for each student, it
prompts for details such as name, math
marks, science marks, English marks, and
IP marks.

14
BIBLOGRAPHY
$ [Link]
thon/python_intro.asp
$ Informatics Practices Class 11
Sumita Arora by SUMITA ARORA

15

Common questions

Powered by AI

The Python Grade Calculator uses a list called 'students' to store information about each student. For each student, a dictionary called 'data' contains their name, total marks, average marks, grade, and pass/fail status. This organization allows the program to manage multiple students' data efficiently and facilitates the output of results in an organized manner .

The Grade Calculator exemplifies the integration of programming and informatics by using Python programming for data collection, processing, and outputting structured student results. It involves managing user input, implementing data structures, and handling logic for operations like grade calculation, showing practical applications of informatics principles in creating functional software .

The steps involve prompting the user to enter the number of students. If the number is positive, the program enters a loop to collect each student's details such as name and marks in various subjects. It then calculates each student's total and average marks, determines their grade and pass/fail status, and stores this information in a dictionary. Finally, this dictionary is added to a list called 'students' and results are displayed .

The Grade Calculator program determines a student's pass or fail status based on the average marks obtained by the student. The program calculates total marks and average marks for each student, then uses these averages to assign a grade and determine if the student has passed or failed .

A supportive community plays a pivotal role in the success of programming languages like Python by offering resources, tutorials, and forums for troubleshooting and learning. This community-driven support accelerates problem-solving, aids in overcoming technical challenges, and fosters innovation through collaboration and sharing of best practices, contributing to Python's widespread adoption and development .

Insights from the Grade Calculator project highlight the importance of hands-on projects in computer science education for reinforcing conceptual understanding. It demonstrates how students can apply theoretical knowledge in practical scenarios, enhancing problem-solving skills, logic building, and familiarity with practical programming tools. This experiential learning approach fosters deeper engagement with computer science principles .

Python is considered suitable for projects like the Grade Calculator because of its ease of use and learning curve, increased productivity, flexibility, an extensive library, and a supportive community. These features make Python an efficient choice for rapid prototyping and production-ready software development .

The Grade Calculator prints an error message and does not proceed with its loop if the user enters 0 or a negative number as the number of students. These scenarios trigger error handling to prevent invalid input from causing errors in the program's execution .

Python's extensive libraries are advantageous in educational projects because they provide a wide array of pre-built functions and modules that simplify complex tasks, enhancing productivity for students and educators. This reduces the need for building functionalities from scratch, allowing learners to focus on problem-solving and learning core programming concepts .

Error handling is crucial in programs like the Grade Calculator to ensure robust and reliable operations. It prevents the program from crashing due to invalid inputs, such as entering 0 or a negative number for the count of students. By managing such scenarios proactively, the program can maintain data integrity and provide meaningful feedback to users, enhancing user experience .

You might also like