Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

hellpppppppp! i need help with my j.a.v.a homework. How do i do this?!?!?!?!?! please help Arrays are often used together with iterations. In this exercise,

hellpppppppp! i need help with my j.a.v.a homework. How do i do this?!?!?!?!?! please help image text in transcribed

Arrays are often used together with iterations. In this exercise, you will review your skills of manipulating arrays with looping. Design a Java application that reads a sequence of student id, last name and first name from the user and then saves the user-entered data into an array of Student. The data input process will continue until the user enters -99 (negative 99) as the student id. Draw a UML class diagram to show your design of the Student class, which has three attributes (id, first name, and last name) and several methods. Define the main() method to test the Student class. The student data will be saved into an array of Student. Add a method called displayStudents() that, when called, will display all students currently stored in that array. Show the design of your displayStudents() method as a pseudocode. Show the design of your main() method as a pseudocode Include your source program. Program Verification: Compile and run your program verify that the program behaves correctly. Test your program by entering the following data when running the application. Attach the screen snapshots of testing your program. Note that the student data will be displayed by the application. Text file streams: The main objective of this exercise is for you to practice using text files. Instead of manually entering the student data, revise your program such that it reads the data from a text file. Click this link and save the text file studentData.txt into your local disk. 1111 John Doe 2222 Jane Doe 3333 Mary Smith 4444 Peter Smith 5555 Debbie Wong 6666 Philip Anderson 7777 Samuel Peterson 8888 Pat MacDonald 9999 Chris Singh Include your source program. Program Verification: Compile and run your program and verify that the program behaves correctly. Test your program by entering the following data when running the application. Attach the screen snapshots of testing your program. Note that the student data will be displayed by the application

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

More Books

Students also viewed these Databases questions