develop a java program for a grading system | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

develop a java program for a grading system

develop a java program for grading system that satisfies the following requirement. 1) requirement for passing an exam is that, student must pass the exam by score of 25 or more and must also pass the assessment by 15 or more to get a certificate. 2) if student score a total grade of 35 for both grading component ( i.e. if only a student score exam 25 and assessment 15 totalling 39), the student is condoned. 3) if a student satisfy requirement 1 or requirement 2 and paid their fees in full ( where fees is 100), they are issued with a certificate. 4) A student is deemed to have failed if he/she does not meet the requirement 1 or requirement 2. 5) however, your program must inform a student which component he/ she passed or failed. 6) where a student fails both components he/she is repeated.

9th Nov 2019, 7:59 PM
jonathan ishak
jonathan ishak - avatar
3 Answers
0
help me with the codes
9th Nov 2019, 8:01 PM
jonathan ishak
jonathan ishak - avatar
0
Please read question carefully and try to implement them step by step. This is your work. So please first try to do by yourself.
9th Nov 2019, 8:56 PM
A͢J
A͢J - avatar
0
package system; import java.util.Scanner; public class grade { public static void main(String[] args) { int grade; int fees; int examscore; int assessment; //take inputs from keyboard Scanner keyboard = new Scanner(System.in); System.out.print("Enter exam score: "); examscore = keyboard.nextInt(); System.out.print("Enter class score: "); assessment = keyboard.nextInt(); System.out.print("Enter fees: "); fees = keyboard.nextInt(); System.out.println("\n\n***************************\n"); grade = examscore + assessment; System.out.println("Total score: " + grade); if(examscore >= 25) { System.out.println("Passed exams"); } else { System.out.println("Failed exams"); } if(assessment >= 15) { System.out.println("Passed assessment"); } else { System.out.println("Failed assessement"); } if(fees >= 100) { System.out.println("Fees paid in full"); } else { System.out.println("You owe fees"); } if ( examscore >= 25 && assessment >= 15) { System.out.println("Certificate allowed "); } else if ((examscore == 25 && assessment == 14) || (examscore == 24 && assessment == 15)) { grade = examscore + assessment; System.out.println("Please you're condoned"); }else { System.out.println("Please you have failed "); } if (((examscore >= 25 && assessment >= 15) || (examscore == 25 && assessment == 14) || (examscore == 24 && assessment == 15)) && fees == 100 ){ System.out.println("Please issue a certificate "); } else{ System.out.println("You are repeated "); } } }
25th Mar 2021, 12:48 PM
Paul Scorti