In the previous homework scenario problem below: You have been hired by TechCo to create and manage their employee training portal. Your first task is to develop a program that will create and track different training sessions in the portal. Each training session has the following properties: • A session ID (e.g., "TECH101", "TECH205") • A session title (e.g., "Machine learning", "Advanced Java Programming") • A total duration in hours (e.g., 5.0, 8.0) • Current number of participants (e.g., 25) Each session must have at least a session ID and a total duration and must met the following requirements: • The maximum participant for each session is 30. • The total duration of a session must not exceed 10 hours. • The current number of participants should never exceed the maximum number of participants. Design an object-oriented solution to create a data definition class(DDC) and an implementation class for the session object. In the DDC, a session class must include: • Constructors to initialize session details. • Accessors and Mutators with proper validation. • A method to calculate remaining seats (maximum participant - current participant). • A toString method With a completed data definition class, your implementation class must instantiate four training sessions, gathering session details from the user inputs. Once all sessions are created, the program should generate a well-formatted report, displaying: o Total number of sessions. o Total number of enrolled employees. o Average participant per session. o Details of each session I did create most of the JAVA OOP code for this class TrainingPortal class but I am stuck to create Session object and generates the report. Can you explain to me and get the correct JAVA OOP code for this assignment? import javax.swing.JOptionPane; public class TrainingPortal { public static void main(String[] args) { String id; String title; double duration = 0.0; int participants = 0; id = JOptionPane.showInputDialog("Enter the ID of the session: "); title = JOptionPane.showInputDialog("Enter the title of the session: "); duration = Double.parseDouble(JOptionPane.showInputDialog("Enter the duration of the session: ")); participants = Integer.parseInt(JOptionPane.showInputDialog("Enter the number of participants: ")); } //Create a 'Session' Object for each session //Generate a report }
In the previous homework scenario problem below:
You have been hired by TechCo to create and manage their employee training portal. Your first
task is to develop a program that will create and track different training sessions in the portal.
Each training session has the following properties:
• A session ID (e.g., "TECH101", "TECH205")
• A session title (e.g., "Machine learning", "Advanced Java Programming")
• A total duration in hours (e.g., 5.0, 8.0)
• Current number of participants (e.g., 25)
Each session must have at least a session ID and a total duration and must met the following
requirements:
• The maximum participant for each session is 30.
• The total duration of a session must not exceed 10 hours.
• The current number of participants should never exceed the maximum number of
participants.
Design an object-oriented solution to create a data definition class(DDC) and an
implementation class for the session object.
In the DDC, a session class must include:
• Constructors to initialize session details.
• Accessors and Mutators with proper validation.
• A method to calculate remaining seats (maximum participant - current participant).
• A toString method
With a completed data definition class, your implementation class must instantiate four
training sessions, gathering session details from the user inputs. Once all sessions are created,
the program should generate a well-formatted report, displaying:
o Total number of sessions.
o Total number of enrolled employees.
o Average participant per session.
o Details of each session
I did create most of the JAVA OOP code for this class TrainingPortal class but I am stuck to create Session object and generates the report. Can you explain to me and get the correct JAVA OOP code for this assignment?
Unlock instant AI solutions
Tap the button
to generate a solution
![EBK JAVA PROGRAMMING](https://www.bartleby.com/isbn_cover_images/9781337671385/9781337671385_smallCoverImage.jpg)
![New Perspectives on HTML5, CSS3, and JavaScript](https://www.bartleby.com/isbn_cover_images/9781305503922/9781305503922_smallCoverImage.gif)
![Systems Architecture](https://www.bartleby.com/isbn_cover_images/9781305080195/9781305080195_smallCoverImage.gif)