Question
Use java it will looks like following format: Use student.txt, that contain following info: [ James Bond,200304,3.2,undergraduate,true Michelle Chang,200224,3.3,graduate,Cleveland State University Tayer Smoke,249843,2.4,undergraduate,false David Jones,265334,2.7,undergraduate,true
Use java
it will looks like following format:
Use student.txt, that contain following info:
[
James Bond,200304,3.2,undergraduate,true Michelle Chang,200224,3.3,graduate,Cleveland State University Tayer Smoke,249843,2.4,undergraduate,false David Jones,265334,2.7,undergraduate,true Abby Wasch,294830,3.6,graduate,West Virginia Nancy Drew,244833,2.9,graduate,Case Western Lady Gaga,230940,3.1,undergraduate,false Sam Jackson,215443,3.9,graduate,Ohio State University
]
Your program will ask the user which data field is used to sort the students, name, ID, or gpa. It will then sort the students accordingly and write the sorted list to an output file provided at command line. Your program should ignore invalid values and prompt again. A sample run may look like this
C: Intel Logs PanoptoRecorder PerfLogs Program Files Program Files (x86) qycache Users Windows import java.io.File; import java.util.collections; import java.util.Comparator; import java.io.IOException; import java.io.Printwriter; import java.util.ArrayList; import java.util.Scanner; public class FuAssignment6 { G FuAssignment6.java Compile Messages JGRASP Messages Run! Open Projects ED Stop Clear Copy FuAssign6 C:\Users\Yong OneDrive Documents\CIS A
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started