Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

java language Attache file named Students.txt. Each record (line) includes: Student ID First name Last name City State Zipcode Number of classes currently taking GPA

java language

Attache file named Students.txt. Each record (line) includes: Student ID First name Last name City State Zipcode Number of classes currently taking GPA Email Password The input file is sorted by GPA (from highest GPA to lowest) and uses white space as delimiters. This assignment is designed as a review of classes and arrays. You will read the file and create an array of student objects

Part 1: Create a Student class which contains the 10 instance data items above. Create an accessor for each item. (We will discuss security for classes soon.) Create a mutator for all but student ID. Include a toString( ) method to build a string of the class data which is nicely formatted and easy to read Create a program which will read date from the Students.txt file as input, instantiate a Student object for each record in the file (row of data) and store the Student objects in an array. Once the array is loaded, use the array of Student objects and Student class methods to create a nicely formatted report stored in an output file (text file) named GPA Report.txt The report should be in a professional format: o Date of report o A main heading for the report o The data presented in easy-to-read columns with headings for the columns (using the printf() method may help) o Quality of output will be factored into the grade. The formatting of the output should be easy to read and aligned so that it is easy for the user. The report should the list following data for each student: o First and last name o GPA o Email Address The report should have a summary section at the bottom that lists the following totals: Average GPA of students: x.xx

Part 2: Make sure Part 1 is working before proceeding. Modify your program to produce 2 reports while reading through the array once. The second report should be called Passwords.txt. This report should be a listing of all students. The report should be in a professional format: o Date of report o A main heading for the report o The data presented in easy-to-read columns with headings for the columns o Quality of output will be factored into the grade. The formatting of the output should be easy to read and aligned so that it is easy for the user. The report should include: o Student ID o First and last name o Email o Password At the end of the report display the following totals: Total number of students: xx

Students.txt

23111 Simon Smithers Louisa KY 41230 5 4.00 smitherss1234@kctcs.edu hotdogs4me 23445 Sadie Washington Frankfort KY 40601 5 4.00 washingtons5234@kctcs.edu beachtime3# 23452 McKayla Trucker Georgetown KY 40324 4 4.00 truckerm9655@kctcs.edu 4kittenscuteasabutton 04456 Hayley Smith Lexington KY 40506 4 4.00 smithh3345@kctcs.edu bde893dkgBH 31133 Phoebe Harrison Lexington KY 40509 6 4.00 harrisonp9776@kctcs.edu screaminggoats! 03124 Corinne Polly Frankfort KY 40601 5 4.00 pollyc6689@kctcs.edu apples&oranges 23478 Aidan Travis Frankfort KY 40601 3 3.90 travisa4409@kctcs.edu su8mmary3# 24466 Katrina Franklin Frankfort KY 40601 2 3.80 franklink7177@kctcs.edu noplacelikehome 25478 McKenzie Adams Lexington KY 40506 4 3.78 adamsm8800@kctcs.edu badpassword 27578 Faith Hernandez Frankfort KY 40601 1 3.61 hernandezf4999@kctcs.edu offtocollegeyay 85675 Shelby Jones Frankfort KY 40601 3 3.60 joness8109@kctcs.edu starwarsorstartrek 66234 Rhonda Smithsonian Georgetown KY 40324 3 3.60 smithsonianr3330@kctcs.edu secretpassword 35490 Mackenzie Smith Frankfort KY 40601 1 3.48 smithm3999@kctcs.edu a893B92NNpwiv 88865 Colin Black Lexington KY 40506 2 3.48 blackc8111@kctcs.edu musicCla$$#fun 23454 Zack Cheek Frankfort KY 40601 4 3.33 cheekz2999@kctcs.edu Cn23%pnret 00865 Anya Baldwin Lexington KY 40509 5 3.33 baldwina7896@kctcs.edu asIfn38$39 00121 Grace Jones Lawrenceburg KY 40342 5 3.30 jonesg5587@kctcs.edu wifiWIFIWHY99 12414 April Hernandez Frankfort KY 40601 6 3.26 hernandeza4356@kctcs.edu hoverboards 34568 Lauren Meeks Frankfort KY 40601 5 3.22 meeksl2875@kctcs.edu loganmoviesoon 00006 Daniel Crisp Frankfort KY 40601 3 3.20 crispd5433@kctcs.edu chocolatedonuts 33876 Kayla Bigg Lexington KY 40506 4 3.19 biggk4939@kctcs.edu p38$#8nBpET 11111 Morgan Cheek Georgetown KY 40324 6 3.15 cheekm4334@kctcs.edu SJFJkwkl1 33541 Austin Adams Frankfort KY 40601 3 3.12 adamsa4399@kctcs.edu Sterling#!8bunny 09867 Sydney Brooks Frankfort KY 40601 1 3.09 brookss7483@kctcs.edu school!8*login 35632 Aubree Travix Lexington KY 40509 3 3.07 travixa9934@kctcs.edu goC@Tsblu3 22231 Noah Adams Frankfort KY 40601 2 3.00 adamsn5949@kctcs.edu Luv2pLaYPian0 55533 Hannah Lincoln Georgetown KY 40324 3 2.99 lincolnh9990@kctcs.edu $m3llyc@T 45689 Samara Moore Frankfort KY 40601 6 2.98 moores8009@kctcs.edu shagGyD0g:) 89765 John Noel Frankfort KY 40601 1 2.90 noelj4007@kctcs.edu noelj8523@kctcs.edu pr0gr@mM3r++ 48452 Madison Adams Frankfort KY 40601 2 2.77 adamsm4848@kctcs.edu 3agl3sFlYh1gH 90021 Jamison Garrison Georgetown KY 40324 5 2.75 garrisonj6698@kctcs.edu t0ucHd0wNTIde 58844 Haylee Harris Lexington KY 40509 6 2.70 harrish8439@kctcs.edu nuML0cKk3y 65662 Walker Flowers Frankfort KY 40601 6 2.60 flowersw4393@kctcs.edu 3rDr0CkSUn 55557 Chance Washington Lawrenceburg KY 40342 6 2.60 washingtonc9499@kctcs.edu pr3siDentSd@y 11324 Chase Hogg Frankfort KY 40601 2 2.59 hoggc4390@kctcs.edu hoggc4390@kctcs.edu 45674 Christian Harrison Lawrenceburg KY 40342 5 2.59 harrisonc9000hoggc4390@kctcs.edu easytoremember 11234 Adrian Franklin Lexington KY 40506 4 2.50 franklina8488hoggc4390@kctcs.edu reallybadpassword 55555 Rebekah Goodlette Frankfort KY 40601 5 2.48 goodletter4939hoggc4390@kctcs.edu 4839458439390 56578 Zach Davidson Georgetown KY 40324 6 2.10 davidsonzhoggc4390@kctcs.edu pr10r1tystudent 11665 Lexi Goode Frankfort KY 40601 2 2.01 goodel3499hoggc4390@kctcs.edu thegoodestudent 42244 Mallie Jones Frankfort KY 40601 5 2.00 jonesm4838hoggc4390@kctcs.edu anotherjonesgirl 97542 Breanna Wilson Georgetown KY 40324 1 2.00 wilsonb4343hoggc4390@kctcs.edu wilsonsoccerb@11 12345 Macy Black Frankfort KY 40601 5 1.59 blackm9430hoggc4390@kctcs.edu redblu3green 89887 Katelin Brooks Frankfort KY 40601 1 0.95 brookk4399hoggc4390@kctcs.edu str3ams&brooks

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David M. Kroenke, David J. Auer

7th edition

133544621, 133544626, 0-13-354462-1, 978-0133544626

More Books

Students also viewed these Databases questions

Question

=+j Explain IHRMs role in global HR research.

Answered: 1 week ago

Question

=+j Describe an effective crisis management program.

Answered: 1 week ago