## Online Hibernate Training just in Rs. 1000

One week online training in Hibernate ORM framework. Learn Hibernate Framework and enhance your skills. Best Online Hibernate training at 90% discount. Join Now!! Offer is valid Only for limited Period!!!

# javaprogram 14

Suresh Shahapurkar
javaprogram 14
1 Answer(s)      6 years ago
Posted in : Java Beginners

Write a java program to calculate the percentage of a student marks by using java airthmatic operators like +(addition),%(division).

August 23, 2011 at 11:37 AM

```import java.util.*;
public class Student
{
public static void main(String[]args){

Scanner input=new Scanner(System.in);
System.out.println("MAXIMUM MARKS in each sub : 100");
System.out.print("Enter Marks1: ");
int m1=input.nextInt();
System.out.print("Enter Marks2: ");
int m2=input.nextInt();
System.out.print("Enter Marks3: ");
int m3=input.nextInt();
System.out.print("Enter Marks4: ");
int m4=input.nextInt();
System.out.print("Enter Marks5: ");
int m5=input.nextInt();
int tm=m1+m2+m3+m4+m5;
double percentage=(double)tm/500;
System.out.println("Percentage of student is: "+(percentage*100)+" %");
}
}
```

Related Tutorials/Questions & Answers:
javaprogram 14
javaprogram 14  Write a java program to calculate the percentage of a student marks by using java airthmatic operators like +(addition),%(division).   import java.util.*; public class Student { public static void
javaprogram 26
javaprogram 26  Write a java progtram to create two classes commercial and domestic. override the metod calculatebill() of commercial class(Rs.8 per unit)into domestic class(Rs 6 per unit) to comput electricity bill for both
Chapter 14. Security Management
Chapter 14. Security ManagementPrev Part I. Exam Objectives Next    Chapter 14. Security Management Identify correct and incorrect statements about
Open Source Symbian OS
of Symbian's existence more than 14 mobile device manufacturers have adopted
Common Interview Questions Page - 4
Common Interview Questions Page - 4       Question: 14. Are you a team player?  Answer: Working together as a team is the key point in achieving greater goal than
help m e
help m e  11 12 22 13 23 33 14 24 34 44 15 25 35 35
java
java  how to print 11 12 22 13 23 33 14 24 34 44 15 25 35 45 55
c program
11 12 13 14 5 6 7 8 9 10 11 12 13 14 15 6 7 8 9 10 11 12 13 14 15 16 7 8 9 10 11 12 13 14 15 16 17 8 9 10 11 12 13 14 15 16 17 18 9 10 11 12 13 14 15 16 17 18 19 10
c program
5 6 7 8 9 10 11 12 13 4 5 6 7 8 9 10 11 12 13 14 5 6 7 8 9 10 11 12 13 14 15 6 7 8 9 10 11 12 13 14 15 16 7 8 9 10 11 12 13 14 15 16 17 8 9 10 11 12 13 14
Java arraylist of arraylist
");     }   } } Output [[14, 8, 7], [0, 7, 11], [14, 9, 14]] 14 8 7  0 7 11  14 9 14
java patern - Java Beginners
java patern  write a program to print the given pattern? 1 10 11 20 2 9 12 19 3 8 13 18 4 7 14 17 5 6 15 16
LINK  Thank you friend.cant we use single click instead of double click and also for four link u has given the example but i have 14 links in that case wat i should do
loops
loops  how to print 11 12 22 13 23 33 14 24 34 44 15 25 35 45 55 plz reply fast...EMERGENCY
pattern java example
pattern java example  how to print this 1 2 6 3 7 10 4 8 11 13 5 9 12 14 15
Java basics
be similar to class name. (ex. If class name is JavaProgram than file name should
Hibernate - Hibernate
. INFO: Not binding factory to JNDI, no JNDI name configured Aug 14, 2008 12:06... schema update Aug 14, 2008 12:06:11 PM org.hibernate.tool.hbm2ddl.SchemaUpdate execute INFO: fetching database metadata Aug 14, 2008 12:06:11 PM