Sunday, March 20, 2022

Student Final Grade in Java

 A program that will ask the users prelim,midterm, and endterm grade and then the program will compute the final grade of the student and display students in the screen using Java programming language.

I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me in the following email address for further details.  If you want to advertise on my website kindly contact me also in my email address also. Thank you.


My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.

My mobile number here in the Philippines is 09173084360.

Please subscribe to my channel  https://www.youtube.com/channel/UCOs-lpOoIeJoh6gpJthPoGg

Thank you very much for your support.






Program Listing

/* Student_Final_Grade.java

 * Author : Mr. Jake Rodriguez Pomperada, MAED-IT, MIT

 * www.jakerpomperada.com and www.jakerpomperada.blogspot.com

 * jakerpomperada@gmail.com

 * Bacolod City, Negros Occidental Philippines

 */



import java.util.Scanner;


public class Student_Final_Grade {

public static void main(String args[]) {


Scanner input = new Scanner(System.in);

double prelim_grade, midterm_grade;

    double endterm_grade, final_grade;


char c,ch;

     

do 

{

System.out.println();

System.out.println("\tStudent Final Grade in Java");

System.out.println();

System.out.print("\tGive Student Prelim Grade   : ");

prelim_grade  = input.nextDouble();


System.out.print("\tGive Student Midterm Grade  : ");

midterm_grade = input.nextDouble();


System.out.print("\tGive Student Endterm Grade  : ");

endterm_grade = input.nextDouble();


System.out.println("\n");

final_grade = (prelim_grade * .2)+ (midterm_grade * .3) + (endterm_grade *.5);



System.out.println("\tThe Student Final Grade : "+ Math.round(final_grade));

        System.out.println();

System.out.print("\tDo you want to continue? Y/N : ");

c = input.next().charAt(0);        


ch = Character.toUpperCase(c);  

}while (ch == 'Y');  


System.out.println();

System.out.println("\tThank you for using this software.");

System.out.println();

input.close();

}


}


No comments:

Post a Comment