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 }

Np Ms Office 365/Excel 2016 I Ntermed
1st Edition
ISBN:9781337508841
Author:Carey
Publisher:Carey
Chapter6: Managing Multiple Worksheets And Workbooks
Section: Chapter Questions
Problem 6RA
icon
Related questions
Question

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
}
AI-Generated Solution
AI-generated content may present inaccurate or offensive content that does not represent bartleby’s views.
steps

Unlock instant AI solutions

Tap the button
to generate a solution

Similar questions
Recommended textbooks for you
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
CMPTR
CMPTR
Computer Science
ISBN:
9781337681872
Author:
PINARD
Publisher:
Cengage
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
New Perspectives on HTML5, CSS3, and JavaScript
New Perspectives on HTML5, CSS3, and JavaScript
Computer Science
ISBN:
9781305503922
Author:
Patrick M. Carey
Publisher:
Cengage Learning
Systems Architecture
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning