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 Other Requirements: • Your solution must use object-oriented techniques (No points earned for a procedural solution). You must keep Data definition class and Implementation class separate. • Your solution must be designed as a modular solution using methods other than main, with each method performing one task. The main method should contain only a very minimal amount of code, calling methods instead. • Your solution must not use any regular expressions for validation or String Builder Class. • Your solution must not use any arrays or arrayList. • Your solution must include appropriate constants, constructors, accessors, mutators, and special purpose methods (including a toString() method), as necessary in support of the problem. • Your solution may not use any functions or language constructs not covered during IT 106 or this semester’s IT 206 without prior authorization from your instructor, even if you know other functions or language constructs. We want everyone to be on the same "playing field", regardless of previous programming exposure, and get practice with algorithmic design to solve problems (the intent of the session). Using something existing not discussed in class does not give you as much practice as solving the problem yourself. Doing this may lead to a substantial grade penalty, a grade of zero, or an Honor Code inquiry. When in doubt, ask! Hints: • You do NOT need to use arrays to solve this problem. Keep in mind once you have finished entering the information for one group, it is not necessary to keep the information. • Think about any special purpose methods that might be needed in the data definition class. Special purpose methods are important when using values in instance variables to perform a specific process. I'm stuck about create a session object and generates a report. Can you explain to me to make a correct code for JAVA OOP? 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
Other Requirements:
• Your solution must use object-oriented techniques (No points earned for a procedural
solution). You must keep Data definition class and Implementation class separate.
• Your solution must be designed as a modular solution using methods other than main, with
each method performing one task. The main method should contain only a very minimal
amount of code, calling methods instead.
• Your solution must not use any regular expressions for validation or String Builder Class.
• Your solution must not use any arrays or arrayList.
• Your solution must include appropriate constants, constructors, accessors, mutators, and special
purpose methods (including a toString() method), as necessary in support of the problem.
• Your solution may not use any functions or language constructs not covered during IT 106 or this
semester’s IT 206 without prior authorization from your instructor, even if you know other
functions or language constructs. We want everyone to be on the same "playing field",
regardless of previous programming exposure, and get practice with algorithmic design to solve
problems (the intent of the session). Using something existing not discussed in class does not
give you as much practice as solving the problem yourself. Doing this may lead to a substantial
grade penalty, a grade of zero, or an Honor Code inquiry. When in doubt, ask!
Hints:
• You do NOT need to use arrays to solve this problem. Keep in mind once you have finished
entering the information for one group, it is not necessary to keep the information.
• Think about any special purpose methods that might be needed in the data definition class.
Special purpose methods are important when using values in instance variables to perform a
specific process.
I'm stuck about create a session object and generates a report. Can you explain to me to make a correct code for JAVA OOP?
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)