Skip to content

Nouman-Irfan/grade-calculator-console-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

grade-calculator-console-app

πŸ“Š Grade Calculator in C++ πŸ’» A simple project that reads student marks from a file πŸ“‚, calculates averages & grades πŸ“, and generates formatted results in console and output file πŸ“„. Built using arrays, functions, loops, conditions, and file handling concepts in C++ πŸš€

πŸ“Š Grade Calculator in C++

A simple yet well-structured Grade Calculator project developed in C++ for Programming Fundamentals. This project reads student data from a file, calculates averages and grades, and generates formatted results in both the console and output file.


✨ Features

βœ… Read student names and marks from file βœ… Calculate student averages βœ… Assign grades automatically βœ… Calculate class average βœ… Save formatted results to output.txt βœ… Display complete report on console βœ… Modular programming using functions


πŸ› οΈ Technologies Used

  • πŸ’» C++
  • πŸ“‚ File Handling (ifstream, ofstream)
  • πŸ” Loops
  • 🧠 Conditional Statements
  • πŸ“¦ Arrays
  • βš™οΈ Functions

πŸ“ Project Structure

GRADE-CALCULATOR/
β”‚
β”œβ”€β”€ Grade Calculator.cpp
β”œβ”€β”€ input.txt
β”œβ”€β”€ output.txt
└── README.md

πŸ“₯ Input Format

The program reads data from input.txt.

Example:

Ali 78 85 90 88 92
Ahmed 67 70 72 69 75
Sara 95 91 93 97 96

πŸ“€ Output

The program generates:

  • Student marks table
  • Average of each student
  • Grade of each student
  • Class average

Output is displayed:

  • On Console πŸ–₯️
  • In output.txt πŸ“„

πŸ† Grade Criteria

Average Grade
90 - 100 A
80 - 89 B
70 - 79 C
60 - 69 D
Below 60 F

πŸš€ How to Run

  1. Clone the repository
git clone https://github.com/Nouman-Irfan/GRADE-CALCULATOR.git
  1. Open project in Visual Studio / Dev C++ / CodeBlocks

  2. Make sure input.txt exists in project directory

  3. Compile and Run ▢️


πŸ“š Concepts Practiced

  • File Handling
  • Arrays
  • Functions
  • Modular Programming
  • Data Processing
  • Console Formatting

πŸ‘¨β€πŸ’» Author

Muhammad Nouman πŸŽ“ BS Computer Science Student


⭐ Project Purpose

This project was created as a Programming Fundamentals assignment to strengthen understanding of basic C++ concepts and problem-solving skills.

About

πŸ“Š Grade Calculator in C++ πŸ’» A simple project that reads student marks from a file πŸ“‚, calculates averages & grades πŸ“, and generates formatted results in console and output file πŸ“„. Built using arrays, functions, loops, conditions, and file handling concepts in C++ πŸš€

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages