Lab 3 - Student Record Search Instructions For our final lab we will be building on the application we created in Lab 2, using the Student class and the StudentRecordTracker class. We are going to...

1 answer below »
building on a previous assignment I did, I will provide the previous assignment and explain what I need to be done.


Lab 3 - Student Record Search Instructions For our final lab we will be building on the application we created in Lab 2, using the Student class and the StudentRecordTracker class. We are going to create an interactive application that will allow a user to search student records. Please note this lab covers material from Unit 1 through to Unit 6. The guidelines below are a recommended approach to completing this final lab. Week 5:  Read and analyze the problem and ensure that you have a complete understanding of the requirements.  Refer back to Unit 2 - specifically the lesson on Do While Loops and implement the event controlled loop required to for the interactive component for your program. This code should go in your StudentRecordTracker.java class. At this stage simply implement the code that asks the user for a student number then prompt the user to enter 1 to continue or 2 to exit. We will be writing the searching logic in week 6. Week 6:  After reviewing the material in Unit 6, create an array to store Student objects.  Initialize your array with the student objects you created in Lab 2.  Be sure that you have a method in your student class that returns the student number. You will need this in order to do your search.  Implement the searching logic using a for loop. Week 7:  Continue working on your searching logic if you haven't completed it yet.  Be sure that you have followed the correct Java naming and style guidelines.  Test your program and ensure that it is error free and produced the correct output. The Student Record Tracker - Requirements The requirements for this program are fairly straightforward. The program must allow the user enter a student number which will be used to search an array of Student objects. If a student record is found the program should display the student's first name, last name, their program and the final grade they received. You can simply display all this information on a single line - (Use the StringBuilder class to do this to make your job easier). If a student record is not found the program should display the appropriate message. When the search is complete the program should ask the user if they wish to continue searching or exit the program. Additional Notes: When working through this problem keep in mind the lesson on "Arrays of Objects" in unit 6. Remember that we can run object methods from an array. This will be a critical component of your searching logic. Also please refer to the lesson on "Parallel Arrays and Array Searching", looking specifically at the final ProductSearch.java example. In this case we aren't using parallel arrays rather a single array of objects however the searching logic is very similar. When you locate the matching student record be sure that you set your flag and set your index value so that you can locate that object in the array later on in your code. You may use the Scanner class or the JOptionPane class to accept input from the user. Submission Instructions Create a folder on your computer called C:\IntroToJava\Lab 3, place all your .java files required for this lab in that directory. Zip the contents of that directory and upload your file.
Answered Same DayJun 16, 2021

Answer To: Lab 3 - Student Record Search Instructions For our final lab we will be building on the application...

Aditya answered on Jun 16 2021
145 Votes
public class Student {
private int position;
private int studentNumber;
private Strin
g lastName;
private String firstName;
private String gradDate;
private String program;
private String programLength;
float studentGrade;
//i tried to name everything in a way that was as specific as possible.
// all data from the pdf is included even if it isn't used for the final output.
public Student(int position, int studentNumber, String lastName, String firstName, String gradDate, String program, String...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here