The Artima Developer Community
Sponsored Link

Java Answers Forum
Need help! Basic stuff

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
PETER KIM

Posts: 1
Nickname: peta
Registered: Jan, 2003

Need help! Basic stuff Posted: Jan 24, 2003 10:19 PM
Reply to this message Reply
Advertisement
e-mail to nypk@nexonclub.com
oh man..i have to do write this 2 times..because i closed the exploer by accident x.x;
anyway..i have been working on this project for 3 weeks and cant figure it out. I really need help by next wed.
the person who helps my ass out..which should be very easy to u guys..its basic java; i`ll send money order check..because i`ll really appreciate ur willingness to help..this poor man
here u go.. my e-mail is nypk@nexonclub.com
this is the output

Hello Student 1: Please Enter your first name: John
Hello Student 1: Please Enter your last name: Doe
Hello Student 1: Please Enter your student id number: 123456

Do you need to know the acerage for ant of your classes?(yes or no)
Yes
John, how many grades do you need to enter? 4
Please enter your grades:
90
91
92
80
Your average with the lowest grade dropped is a 91.

Do you need to know the average for any of your classes?(yes or no)
No

Now we need to get your cumulative average for Math, English, Social Studies, Science, Gym and your Elective:
Class 1, how much credit will you get for this class: 1
Class 1, what is your average in this class? 90
Class 2, how much credit will you get for this class: 1
Class 2, what is your average in this class? 95
Class 3, how much credit will you get for this class: 1
Class 3, what is your average in this class? 92
Class 4, how much credit will you get for this class: 1
Class 4, what is your average in this class? 89
Class 5, how much credit will you get for this class: .5
Class 5, what is your average in this class? 100
Class 6, how much credit will you get for this class: .5
Class 6, what is your average in this class? 80

Your cumulative average is a 91

Good luck with your class rank!


Hello Student 2: Please Enter your first name: Jennifer
Hello Student 2: Please Enter your last name: Smith
Hello Student 2: Please Enter your student id number: 125600

Do you need to know the average for any of your classes?(yes or no)
Yes

...

Congratulations John, your highest test score was a 92, keep up the good work!
Congratulations Jennifer, your highest test score was a 110, keep up the good work!
Congratulations someone, your highest test score was a xxx, keep up the good work!( need to creat 3 people)

Here is the ranking of the students averages:

99
91
72



ok this is it..
u need to use 2 classes..
StudentRank and StudentGrades

In StudentGrades you will declare 3 objects cakeed student1, student2, and student3.
each student is asked for their average
find cumulative average
place grades in order from highest to lowest

In studentRank
set all initial values
students find our their average on a 100 point scale
drop the lowest grade then average it with 3 numbers
for each students award is givin out..
like if student1 gets 90..tell him ur great!..something like that
rank tress students average from highest to lowest

Topic: parallelport Previous Topic   Next Topic Topic: Dynamic permission of ProtectionDomain

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use