in an examination the grades are given according to the marks obtained. wap in java to display the grades acordingly
80% and above-distinction
60% or more but less than 80%- first divison
45% or more but less than 60%-second division
40% or more but less then 45- pass
Less then 40%-promotion not granted

40% is a pass? well, if you go to a school like that, no wonder this seems 'hard'.

You just copy/pasted your assignment without even a moment taken to explain what help you need. That's highly disrepestectful to the many people who give their time to help others here.

There are lots of people here who will freely give their time to help you become the best Java programmer you can be. There's nobody here who is interested in helping you cheat or doing your homework for you.

DaniWeb Member Rules (which you agreed to when you signed up) include:
"Do provide evidence of having done some work yourself if posting questions from school or work assignments"
http://www.daniweb.com/community/rules

Post what you have done so far and someone will help you from there.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.