Results 1 to 2 of 2
- 09-22-2011, 08:17 PM #1
Member
- Join Date
- Sep 2011
- Posts
- 1
- Rep Power
- 0
Help with array for "students avg test scores."
Hello everyone,
Java is still kind of Greek to me and I just need help with my assignment. I'm having a little difficulty starting. I know I need to use a for loop but I don't know how much arrays I would need. Below is the problem that I have to code. Thanks in advance for all the help.
Problem:
From the book: “A teacher has 5 students who have taken 4 tests. The teacher uses the following grading scale to assign a letter grade to a student, based on the average of his or her four test scores:
Test score Letter grade
90-100 A
80-89 B
70-79 C
60-69 D
0-59 F
Demonstrate the class in a program that allows the user to enter each student’s name and his/her 4 test scores (or read them from a file). It should then display each student’s average test score and letter grade.
Do not accept test scores less than 0 or greater than 100.”
-
Re: Help with array for "students avg test scores."
You need to learn enough to be able to get started, and that can't be obtained from a forum such as this but rather from self-study of your texts or a tutorial (such as this one). We do better answering specific questions, and I invite you to come on back if you after your study and your attempt you have any.
Similar Threads
-
Caused by: java.lang.SecurityException: class "Test$1" does not match trust level of
By catdude in forum Java AppletsReplies: 2Last Post: 09-07-2011, 07:03 PM -
How to change my form design from "metal" to "nimbus" in Netbeans 6.7.1?
By mlibot in forum New To JavaReplies: 1Last Post: 01-21-2010, 09:20 AM -
MoneyOut.println("It took you (whats wrong?>",year,"<WW?) years to repay the loan")
By soc86 in forum New To JavaReplies: 2Last Post: 01-24-2009, 06:56 PM -
the dollar sign "$", prints like any other normal char in java like "a" or "*" ?
By lse123 in forum New To JavaReplies: 1Last Post: 10-20-2008, 07:35 AM -
the web site "monitor test page"
By dubdubdub in forum New To JavaReplies: 0Last Post: 11-28-2007, 07:48 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks