Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Assignment: students.txt I need this in java and also in the 4 classes that's listed including the generic stack class which means no usage of
Assignment:
students.txt
I need this in java and also in the 4 classes that's listed including the generic stack class which means no usage of the built in java stack. The output should be like the example output in the assignment.
This fourth assignment will allow you to explore four different concepts in one program. You will be creating a program that makes use of: an abstract data type (ADT), file input/output (/O), classes & objects, and the creation of a Unified Modeling Language (UML) Class diagram in an object-oriented (OO) programming language (Java). You will also experience a common software development practice in the form of a "code review" through the receipt of feedback and resubmission more on that later... For this assignment, you are tasked with the responsibility of reading in a list of students from a text file, creating a Student object for each student, pushing the Student object onto a Stack (ADT), and then providing an option to print the contents of the Stack by (You should print each Student on a separate line in the console - see Sample Output). This program will be written in Java and must compile and run on Tesla popping the students off the Stack one-b y-one Your program will be menu driven in which you will provide the following prompts to the user: 1. Load Students (From File) 2. Print Stack 3. Exit Program We will assume the each student has the following data available First name Last name Address o Address (Line 1) o Address (Line 2) o City o State o Zip Code Student ID GPA The text file containing sample student data will be provided to you. The filename will be students.txt - this file can be found (and downloaded) on Canvas. The file will contain ten (10) students. The format of the file will be as follows: FirstName, LastName, StreetAddress, Address2,City,State, ZipCode,ID, GPAStep 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