A C console application that calculates test score percentages and provides grade-based feedback.
This program prompts users to enter their actual test score and total points possible, calculates the percentage grade, rounds it to a whole number, and provides humorous feedback based on the grade range.
- Percentage Calculation: Computes accurate percentage from score and total points
- Smart Rounding: Implements custom rounding function (3.5→4, 3.49→3)
- Grade Feedback: Provides commentary based on grade ranges
- Above 90: "Excellent"
- 80-89: "Bad"
- 70-79: "Catastrophe"
- 60-69: "Death"
- Below 60: "F"
- Floating-point Arithmetic: Demonstrates proper float usage in C
- C Programming Language
- Standard I/O (
<stdio.h>) - Mathematical calculations with floats
- Visual Studio project structure
- C compiler (Visual Studio recommended)
- Windows operating system
- Open the solution file in Visual Studio
- Build the solution (F7 or Build > Build Solution)
- Run the executable or press F5
- Run the program
- Enter your actual test score
- Enter the total points possible
- View your percentage grade and feedback
Enter your actual test score: 85
Enter total points possible: 100
Your grade: 85%
Bad
Christian Burnett