Menu

#33 Known is a drop Mark calculating system - Mini Project
📰

#33 Known is a drop Mark calculating system - Mini Project

DEV Community·Deepikandas·6 months ago
#b4wggR7x
#beginners#codenewbie#java#showdev#system
Reading 0:00
15s threshold

Mark calculating system

package twelfth ;

import java.util.InputMismatchException ; import java.util.Scanner ;

public class TwelfthMark { static String School = "Good Hope Higher secondary school" ; String name ; int marks [] = new int [ 6 ];

public void getName ( Scanner sc ) { while ( true ) { System . out . println ( "Enter the student name" ); name = sc . nextLine (); if (! name . isBlank ()) { break ;

} System . out . println ( "\"Name cannot be empty\"" ); } }

public void printScore ( double sum ) { System . out . println ( "Total mark scored " + sum ); System . out . printf ( "Average :%.2f\n" , ( sum / 6 )); double percentage = ( sum / 600 ) * 100.0 ; System . out .…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.