Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Java-Beginners Help Me in My Java Work
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


alshaer
Help Me in My Java Work
0 Answer(s)      2 years and 11 months ago
Posted in : Java Beginners


Can you help me please...

Write a Java application, to be called GpaCalculator, which will return a grade point average (GPA) when given a range of decimal figures representing a selection of exam marks. The GpaCalculator should assign a GPA value to each exam mark, and then calculate the average grade point value for all the marks entered. The GPA points for individual marks are given below:

(i) A mark ranging from 90 to 100% is awarded a GPA of 4.0 (ii) A mark ranging from 80 to 89%: is awarded a GPA of 3.5. (iii) A mark ranging from 70 to 79%: is awarded a GPA of 3.0. (iv) A mark ranging from 60 to 69%: is awarded a GPA of 2.5. (v) A mark ranging from 55 to 59%: is awarded a GPA of 2.0. (vi) A mark ranging from 50 to 54% is awarded a GPA of 1.5. (vii) A mark ranging from 45 to 49% is awarded a GPA of 1.0. (viii) A mark below from 45% is awarded a GPA of 0.

The GpaCalculator application should prompt the user to enter a series of integer or decimal values ranging from 0 to 100. These values should be entered one at a time and, if a value of â??-1â?? is entered, then the GpaCalculator application should terminate. Here is an example of the GradeClassifierâ??s input and output for valid data:

Example of GpaCalculatorâ??s output for valid input :

Enter a mark between â??0â?? and â??100â?? or â??-1â?? to exit: 91 Total number of marks entered so far: 1. GPA = 4.0 Enter a mark between â??0â?? and â??100â?? or â??-1â?? to exit: 89 Total number of marks entered so far: 2. GPA = 3.75 Enter a mark between â??0â?? and â??100â?? or â??-1â?? to exit: -1 Total number of marks entered: 2. GPA = 3.75. Application terminated.

NOTE: The GpaCalculator application should also respond appropriately to invalid input (by displaying an error message if the user enters a number which is below -1 or above 100). The deadline submission date for this assignment is November 8, 2011. Late submissions will be penalized.


Advertisement
View Answers

Related Tutorials/Questions & Answers:
Help Me in My Java Work
Help Me in My Java Work  Can you help me please... Write a Java application, to be called GpaCalculator, which will return a grade point average (GPA) when given a range of decimal figures representing a selection of exam marks
hello. can anyone help me with my java project, using jcreator?
hello. can anyone help me with my java project, using jcreator?  this is how it goes.. we are to develop a GUI of a certain form, in my case this one... just couldn't solve it.. alot of errors.. pls do help... thanks
Advertisements
Please help me to modify my java code from php code
Please help me to modify my java code from php code  i want to covert... help me to convert it into Java. if (request.getParameter("orders") != null... same, as they alter it before. Please help me on this topic "how to order rows
Please help me to modify my java code from php code
the exact result as the above PHP code is giving. So please help me to convert...Modify Java code from PHP Code  i want to covert this php code int java/JSP. if (isset($_POST['orders'])) { $orders = explode('&', $_POST
help me about to solve my qustion
help me about to solve my qustion   An employee receives 15 SR per... SR per hour . Write a java class that ask a user to enter the number of hours he work for day . Compute and display his salary for that day
Help me please with my final homework
Help me please with my final homework  Write a Java program of your choice that demonstrates the following concepts: ? Input and Output. ? Selection/Conditional (e.g. if statement). ? Arithmetic. ? Loops. ? Arrays
I need help on my Java code.... please please help me out!?
I need help on my Java code.... please please help me out!?  Well my... in the file. Also it should be displayed on the screen. However my code doesn't display the anagram on screen or the output file! Please show me whats wrong. Thanks i
PLEASE HELP WITH MY JAVA
PLEASE HELP WITH MY JAVA  Hey my name is Gavin and im a student at school that takes IT. my teacher has gave me a problem and i can't figure it out please help!!!!!!!! it is a for-loop question: Display the first 5 multiples
Help With My Java Project?
Help With My Java Project?  Write a console program that repeatedly prompts the user to enter data until they type done (any case, Upper, Lower... to put it all together to make it work. please help import
i want to find the byte code of a image file ... for my project..plz if anybody help me for java coding i will grateful..
help me for java coding i will grateful..   i want to convert a image file to its byte code format that help me for the pattern matching in my... help me
Help me - Java Beginners
Help me  please help me in writing a program in java "A student has a name,roll no., class, home address, date of birth. First dessigne a suitable class for date, write constructor and get and set functions. Then dissign a class
Help me - Java Beginners
Help me  I m using session in my project session is activated and admin_home.jsp page will be display but data r not displayed plz guide what is incorrect my code
help me - Java Beginners
help me  helo guys can you share me a code about Currency Conversion.Money will convert according to the type of currency.would you help me please... into 2 decimal places sample 1.25) Mexican_________ guys help me..thank
help me .. Java
help me .. Java  ReadStudentsData that takes as parameters an array NAMES of String and another array SCORES of int. It should read an unspecified number of students?? scores and names. This method will return the number
help me - Java Beginners
help me   i want to create a login form in java with jdbc connection in ist form there will two label for passworrd and user name and two button one button for login and another for new user if anybody click into login
HELP ME - Java Beginners
HELP ME  How can I write only digits in the the textfield when I am using keyTyped and keyPressed metods of KeyListener, but I do not want to write an any character in it?(This question means when a user pressed a key in keyboard
java program for me to see who are on my server
java program for me to see who are on my server  Hello, Im a beginner in java, doing some tutorials and stuff. I wanna write a java program to put on my server where i wanna see if like 3 people are on my server PLUS that i want
this is my javascript code and i am not understanding the mistake in this,please help me?
this is my javascript code and i am not understanding the mistake in this,please help me?  <html> <h2>Form Validation</h2> <script language = "Javascript"> function checkEmail
plz Help me - Java Beginners
plz Help me  Hi, I want learn struts,I dont have any idea about this plz help how can i make a framework.If u have any information then plz send my personal id plz tell me that whose software installed.and give me brief
plz help me - Java Beginners
give me reponse my persinal given id  Hi ragni, i am sending...plz help me  Thanks deepak continue response..i face some problem i... admin page this is my web.xml file i m declaring in the session tag
Help me please!!! - Java Beginners
Help me please!!!  im badly needing the complete code for this project in java!!! can you please help me???!!! it is about 1-dimensional array... the answers 8Hours from now!!! Kindly help me!! please!!please!!! NOTE
plz help me - Java Beginners
plz help me  Deepak I can write a sessioon code plz help me admin_home.jsp page is display but data is not disply plz help me what is wrong
pls. help me - Java Beginners
pls. help me  please help me i do need now if its okay... Consider the method headings: void funcOne(int[] alpha, int size) int funcSum(int...[] list = new int[50]; int[] Alist = new int[60]; int num; Write Java
plz help me - Java Beginners
plz help me  Hi, I want to search all field from database using name, and display in text box, then data is update and delete. i want to search name using alphabets a-z, plz reply fast. plz help me this is very urgent
please help me - Java Beginners
please help me   I have some error in this programe //write acomputer programe using java to generate following series : //output: //1,2,3,0,-2,7,-4..... class Series1HW { public static void main(String args
help me in these - Java Interview Questions
help me in these  hello every body i have some question if you cam plz answer me it is important to me and these are the questions : 1)Write... with its characters reversed . ( tool to loot) then test your method in java
help me - Java Interview Questions
interview questions java pdf   Do you have any PDF for Java Interview questions
plz help me - Java Beginners
plz help me  deepak hw can i create a data grid in jsp and also how can i connect to the data base plz help me  to create data grid in jsp use html tables with borders. to connect to data base use scriptlets. ex
help me
help me  MY GLASSFISH SERVER NOT START PROPERLY help me warning shows DPL5404:Specification-Version for the optional package [ GNUJAXP ] in the jarfile [ C:\Program Files\Java\jdk1.7.0_02\jre\lib\ext\gnujaxp.jar
help me
help me  please send me the java code to count the number of similar words in given string and replace that word with new one
please help me here.. - Java Beginners
please help me here..  ..uhhmm.. im a little bit new to java and i go confused on my case study.. import java.lang.*; import java.io.*; public... work.. it should compare the second string to the first string to know
 

 

 

DMCA.com