abhijeet02singh/Student-Result-Calculator — reverse-engineered prompt
Reverse engineered prompt
Build me a simple Java console program for calculating a student’s result. It should ask for the student name and roll number, then ask for marks in 5 subjects. Each subject should be out of 20, so if someone enters more than 20 or a negative number, ask again until they enter a valid mark.
After all marks are entered, show the total marks, percentage, grade, and a short remark. Use these grades, A for 90 and above with Excellent, B for 80 to 89 with Very Good, C for 70 to 79 with Good, D for 60 to 69 with Average, E for 40 to 59 with Need Improvement, and F for below 40. Also, if the student gets less than 7 in any subject, they should automatically fail no matter what the total is.
Keep it beginner friendly and easy to understand, using Scanner, loops, and simple if else or switch logic.
Want more depth? Deep Reverse