1

It looks like the program executed.
Here's how to copy the console window instead of usung an image:
To copy the contents of the command prompt window:
Click on Icon in upper left corner
Select Edit
Select 'Select All' - The selection will show
Click in upper left again
Select Edit and click 'Copy'

Paste here.

1

Module JK1337 Computer Processing ...
Menu
1.Add Students
2.Add Grades
3.Remove Students
4.Remove Grades
5.Exit

Cool, so whats next?

1

I mean my problem still stands, after entering any of those number except 5 it just repeats itself

0

You need to add some code to the if statements that do something. Like the "add" section needs to get info from the user about a student, create a new Student object and add that object to a list of Student objects.

0

Is it possible you can ammend my code correctly for me as I don't know how to do it.

0

Do it one small step at a time: Get the info for a student.
You know how to prompt the user for input. write code that asks the user for the info needed to build a Student object and then reads the user's response and saves it in local variables.

1

So should I make a loop from scratch and leave the one I showed you?

1

To be able to keep on adding Students which include the assingmentOne marks and finalExamGrade as well as the finalLetterGrade.
So it doesn't stop, untill I exit >.<

1

Ye but i'm unable to enter anything, its not completely linked together, if you could help me link that up would be all thats needed.

0

Post the code you are talking about.
I am talking about adding code to the Main class that you posted last. That is where you should be adding code.

1

This one

import java.util.Scanner;



public class Main extends Student

{

    public static void Main(String[]args)
{


    Student firstBlock = new Student();
    Scanner sc = new Scanner(System.in);
    int selection;

    do{
    System.out.println("tMenu");
    System.out.println("1.Add Students");
    System.out.println("2.Add Grades");
    System.out.println("3.Remove Students");
    System.out.println("4.Remove Grades");
    System.out.println("5.Exit");
    selection = sc.nextInt();
    if(selection == 1){


}

    if(selection == 2){

}

}
    while(selection != 5);

}

}

Edited by syed30: error

0

Yes. Add code afer line 25 to get the data for a student and store it as discussed above.

0

Can you give me an example like 1/2 lines then i'll try finishing it of from there

0

Here is an example from your code:

  System.out.println("5.Exit");  // prompt the user
  selection = sc.nextInt();      // read the user's response
0

You need to think about what the program is supposed to do.
Make a list of the steps for adding a new student.
How would you do it with a piece of paper? Ask questons, write down responses, put the piece of paper in a pile with the other pieces of paper with other students' data.

1

All the information that is inputted when the program is executed at the moment is the things that the Student has, instead of the program clossing it should continue from step 1 which is inputting Student name etc.

0

If you get this sorted out for me soon i'll vote up all your comments, if that helps =p. Need to finish this ASAP because I also need to do documentation straight after due tommarow

0

When this gets done is up to you. I really don't care at all about votes. Not important. Meaningless.

0

Then let me help you get you that coffee by you giving me what I need i'll give you what you need, then we're both happy aha.

0

Wow i've became a Light Poster now cool =p even though I probably won't use this website after i'm done with my program

Votes + Comments
May as well stop now if you're expecting someone to write it for you.