1 Homework 8 – ISM 3230/ISM6148 Student application Write a program that allows the user to create and process a list of students and their quiz grades. The list of students is stored in a text file...

uploaded assignment


1 Homework 8 – ISM 3230/ISM6148 Student application Write a program that allows the user to create and process a list of students and their quiz grades. The list of students is stored in a text file called Students.txt. The contents of the input file look like this: Tyler-Allen-76-97-83 Rafina-Amin-86-100-63 Yimy-Ceron-68-68-100 Lukasz-Chmielewski-86-95-89 Hunter-Courten-96-56-69 Emily-Festin-96-82-91 Eric-Fullilove-85-60-84 Farhin-Haque-75-96-66 Cory-Kent-86-65-70 Feng-Linder-Etienne-86-65-78 Richard-Martin-60-92-78 Alexander-Maxwell-90-72-88 Michael-Michaud-86-99-96 Jenny-Montes-96-95-93 Carl-PierreLouis-71-94-74 Alex-Rudchenko-96-82-92 Michael-Salazar-85-80-94 Willie-Stevenson-91-84-84 Hongyi-Su-95-60-94 Angie-Velasquez-69-78-100 Rebecca-Wilson-86-95-70 Jad-Yassine-96-95-90 Daniel-Yi-86-99-90 Gentian-Zogaj-86-95-85 You must use at least two classes in this assignment – one class containing your main method and another class to store and process the student information. The Student class is provided for you – please be sure to download the .java file from Canvas to use in your NetBeans project. The logic that you write for this program should belong in the class with your main method. Program requirements Your program must implement the following logic/requirements for full credit: • Use an ArrayList of Student objects to store the student information read from the file. This ArrayList should be declared in your main method as a local variable. • Store the data from the file in the appropriate attributes in the Student objects (i.e. you cannot declare a new String variable in Student that stores the line of information read from the file – you must parse the pieces of information (e.g. first name) and store them in the appropriate Student attributes). • Include the following user-defined methods in the class with the main method: 2 • Generate the list of Students: ▪ No return value ▪ One parameter (ArrayList of Student) ▪ While the input file has more data to read, do the following:  Read a line from the input file  Extract the pieces of student information  Store the information in the attributes of a Student object  Store the Student object in the ArrayList • Print Student information to the screen: ▪ No return value ▪ One parameter (Student object) ▪ Print the student’s name and his/her quiz average 3 This assignment MUST be created individually. You must turn in your OWN source code and Java bytecode executable files. You MAY NOT share files! Instructions • Compile and execute your program to ensure that it works correctly. • Be sure to run your final program using the sample data included in the Sample Output file to ensure your program works properly. • Make sure your output labels match those in the Sample Output file exactly. Notes • You MUST store any calculations in variables (i.e. do not calculate the length conversions directly in your System.out.println statements) • You do NOT need to worry about formatting the decimal places on values you calculate • You must include the two different classes specified on the previous page (Student and a class with your main method). You may include additional methods in the class with your main method if you want (other than the two mentioned on the previous page), but Student should NOT be modified from what you see on Canvas. • You must use/call the available method(s) in Student to update each student’s information. Your main method should not change attribute values of Student directly. • You may perform the tasks in any order as long as your output follows the order of the output in the example scenarios contained in the Sample Output file. Extra credit (10 points) Prompt the user to input a student name. Try to find this student in the ArrayList. Once found, print the student’s name and quiz average to the screen. If not found, print an error message. Please refer to the Sample Output – BONUS file for formatting details. You do not need special syntax to do this – you will have to think logically about how to solve this problem. To receive full credit: • Submit the following files in a single zip file to Canvas o Files with your Java source code (.java files) [you will have two for this assignment] o Files with your Java bytecode executable files (.class files) [you will have two for this assignment] o Your program must completely and accurately execute and produce the sample output. o Refer to the instructions for creating the zip file on Canvas – if you do not create the file with the correct folders and structure, you will lose points ▪ Course Documents → NetBeans Information • You must follow the appropriate Coding Standards listed in the Coding Standards document under Supplemental Materials on Canvas. o 40% of your grade on the source code will be based on how well you follow these standards and how well you comment your source code 4 • Submit your zip file to Canvas using the Assignment submission feature. Instructions for submission are available on Canvas where you downloaded this file (Assignments - -> Homework 8).
Apr 20, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here