Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

This application will take in each student\'s name, id number and quiz grade, pu

ID: 3813967 • Letter: T

Question

This application will take in each student's name, id number and quiz grade, put him/ her in the Listbox. Then display the average score of the class. Here is a picture of what the application should look like.

After adding in two students, the application should look like:

This application will require 5 labels, 3 textboxes, 1 button, and 1 Listbox.

The 3 textboxes will be used to hold the Student Name, Student Number and Quiz Grade. The labels will be for the textbox labels and the Average.

So, for example, let's try to do the Student Name textbox and label. You would start out, putting one label and one textbox in the forms as follows:

For the first label on the left, let's rename that textbox "StudentNameLabel" under properties,

Now, let's put the text in it to be: "Student Name:"

This is how you create the labels for each textbox.

Now you need to add a button on Add each student to the array. Ignore the Listbox for now

Student Grade Average Student Name: Student Number: Quiz Grade: Add Student Average

Explanation / Answer

import java.util.Scanner; public class JavaProgram { public static void main(String args[]) { int mark[] = new int[5]; int i; float sum=0, avg; Scanner scan = new Scanner(System.in); System.out.print("Enter Marks Obtained in 5 Subjects : "); for(i=0; i80) { System.out.print("A"); } else if(avg>60 && avg40 && avg0) { name = dis.readUTF(); age = dis.readInt(); addr = dis.readUTF(); gender = dis.readUTF(); qual = dis.readUTF(); if(name.equals(txtName.getText().trim())) { txtAge.setText(age+""); txtAddr.setText(addr); if(gender.equals("Male ")) chkMale.setState(true); else chkFemale.setState(true); while(qual.charAt(i)!='!') { j=qual.indexOf(' '); tmp = qual.substring(i,j); if(tmp.equals("MCA")) chkMca.setState(true); if(tmp.equals("BCA")) chkBca.setState(true); if(tmp.equals("BBA")) chkBba.setState(true); if(tmp.equals("MBA")) chkMba.setState(true); i=j+1; } break; } } Fin.close(); } if(str.equals("NEW")) { txtName.setText(""); txtAge.setText(""); txtAddr.setText(""); chkMale.setState(false); chkFemale.setState(false); chkMca.setState(false); chkBca.setState(false); chkBba.setState(false); chkMba.setState(false); } } catch(Exception e) { System.out.println("The Exception Is : " +e); } } } class Bio2 { publicstaticvoid main(String args[]) { try{ Frame1 F = new Frame1("Biodata"); F.setSize(400,400); F.show(); }catch(Exception e) { System.out.println(e); } } }