Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This is a JAVA problem. Consider classes in detail lecture we covered, implement a similar application to the one we see in section 8.11 (static

This is a JAVA problem.

Consider classes in detail lecture we covered, implement a similar application to the one we see in section 8.11 (static class members). In this practice we created an Employee class to represent an employee object.

You are expected to create a very similar application but rather than employees, you will create Student objects.

Your student class will have ID, FirstName, LastName fields, and a static count to keep track of number of students. Provide setters and getters for each variable and then provide a static method called getCount to return the static variable.

In main, ask the user in a loop to create student objects. Until the user says no, you should create objects and in the end, you display student information and student count. So it should look like:

Would you like to enter student information? > Yes What is the ID? > 2134 What is the first name? > Susan What is the last name? > Baker
Student created. Do you want to add another student? > No
Number of students: 1 Student 1: 2134 - Susan Baker

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

Data Management Databases And Organizations

Authors: Richard T. Watson

2nd Edition

0471180742, 978-0471180746

More Books

Students also viewed these Databases questions