Search:

Type: Posts; User: JavaPF

Search: Search took 0.09 seconds.

  1. Replies
    23
    Views
    10,508

    [SOLVED] Re: NEED HELP, Java Grading Assignment

    No problem.

    You can pay us back by being an active member on the forums ;)
  2. Replies
    23
    Views
    10,508

    [SOLVED] Re: NEED HELP, Java Grading Assignment

    The text file needs to be like this:



    22 34 100 90 98 92 55 24


    Not
  3. Replies
    23
    Views
    10,508

    [SOLVED] Re: NEED HELP, Java Grading Assignment

    Put it one directory up from that. Not in the src folder.. Put it in the directory that contains the src and bin folders.

    But with that new code i've just posted, put it on your C:\ drive.
  4. Replies
    23
    Views
    10,508

    [SOLVED] Re: NEED HELP, Java Grading Assignment

    Yes that is because the scores.txt file cannot be found.

    Make sure you save the file in the right directory.
    My scores.txt file is located in the same directory as my projects bin and src...
  5. Replies
    23
    Views
    10,508

    [SOLVED] Re: NEED HELP, Java Grading Assignment

    I've added the DecimalFormat code so now the average is rounded to 2 decimal places.

    You can see the changes in bold.



    import java.util.Scanner;
    import java.text.*;

    public class Grades {
  6. Replies
    23
    Views
    10,508

    [SOLVED] Re: NEED HELP, Java Grading Assignment

    Hey Peetah05, just incase you still need it. I've modified Chris's code to read the scores from a text file which is what you need for part B.

    PART B:



    import java.util.Scanner;
    import...
  7. Replies
    23
    Views
    10,508

    [SOLVED] Re: NEED HELP, Java Grading Assignment

    Nice one Chris! I'm sure this is what he was after although class is probably over now lol

    Peetah05, next time you need help. Please give a bit more notice ;)
  8. Replies
    23
    Views
    10,508

    [SOLVED] Re: NEED HELP, Java Grading Assignment

    Hey Chris,

    Nice work although this doesnt work as its supposed to.

    Your ment to enter scores in one line like: 23 34 23 100 98 12 -1

    And the minus number causes the loop to stop and print...
  9. Replies
    23
    Views
    10,508

    [SOLVED] Re: NEED HELP, Java Grading Assignment

    So the user enters grades into the console. You say as integers so its got to be numbers right? Rather than actual grades.

    What scores do you have to get to have A, B, C, D, F grades?

    I need an...
  10. Replies
    23
    Views
    10,508

    [SOLVED] Re: NEED HELP, Java Grading Assignment

    There is no way I can have this finished tonight. Sorry.. Hopefully someone else will post. Ill update first thing in the morning.
  11. Replies
    23
    Views
    10,508

    [SOLVED] Re: NEED HELP, Java Grading Assignment

    Hello Peetah05 and welcome to the Java programming forums :)

    I've edited this code in order to get it to compile. Im not sure if its producing your desired output though.



    import...
Results 1 to 11 of 11