Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I am trying to write this program - but I am writing the InternetPackages class

ID: 3623365 • Letter: I

Question

I am trying to write this program - but I am writing the InternetPackages class and the InternetPackagesGUI for input/output. I am trying to do this using dialog boxes by importing the javax.swing.JOptionPane class. I know the InternetPackages class is used to setup the variables and methods as well as perform the actual calculations. Then the InternetPackagesGUI is used for input and output as well as setup the objects and call the methods. But I am unsure how exactly to put them together?

I there anyone that can assist me with this PLEASE???

Explanation / Answer

The InternetPackagesGUI class will hold an object of the InternetPackages class in it. Inside the InternetPackagesGUI class: private InternetPackages p = new InternetPackages(parameters); Throughout this class, you will take in input and modify the InternetPackages class with a series of mutators (setters). So, if you take in input, you then called the set method: p.setPackageSize(500); To output the information, you then call the accessor (getter) methods. Then you can output them however you like. System.out.println("Package size: " + p.getPackageSize()); Jlabel s = new JLabel("Package size: " + p.getPackageSize()); Hope this helps! Feel free to message me if you have any other questions

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote