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

You have started your Telecom Consulting business. It seems like it was yesterda

ID: 3534226 • Letter: Y

Question

You have started your Telecom Consulting business. It seems like it was yesterday when you were sitting care-free in the most interesting course you ever took at Hood College (IT 548) and today you have to deal with your expanding business. First problem, concurrent internet access. You have 550 employees, each with their desktop and they all need to have Internet access at the same time. You do your market survey and talk to two ISPs, BORIZON and BT&T, in order to buy IP addresses. BORIZON allocates IPs in Class A, B or C while BT&T allocates IPs using CIDR. You want to be mindful of costs so you want to get the smallest IP range that can support all computers.

(a) Let

Explanation / Answer

You can increase your creativity with this source. And you can add a new Label or Button to make a best program. I'll give you a source code. You must save this code with name"Log.java".

import javax.swing.*;

import java.awt.*;

import java.awt.event.*;

public class Log extends JFrame {

public static void main(String[] args) {

Log frameTabel = new Log();

}

JButton blogin = new JButton("Login");

JPanel panel = new JPanel();

JTextField txuser = new JTextField(15);

JPasswordField pass = new JPasswordField(15);

Log(){

super("Login Autentification");

setSize(300,200);

setLocation(500,280);

panel.setLayout (null);

txuser.setBounds(70,30,150,20);

pass.setBounds(70,65,150,20);

blogin.setBounds(110,100,80,20);

panel.add(blogin);

panel.add(txuser);

panel.add(pass);

getContentPane().add(panel);

setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

setVisible(true);

actionlogin();

}

public void actionlogin(){

blogin.addActionListener(new ActionListener() {

public void actionPerformed(ActionEvent ae) {

String puname = txuser.getText();

String ppaswd = pass.getText();

if(puname.equals("test") && ppaswd.equals("12345")) {

newframe regFace =new newframe();

regFace.setVisible(true);

dispose();

} else {

JOptionPane.showMessageDialog(null,"Wrong Password / Username");

txuser.setText("");

pass.setText("");

txuser.requestFocus();

}

}

});

}

}

and you must save this source below with name "newframe.java"

import javax.swing.*;

import java.awt.*;

import java.awt.event.*;

public class newframe extends JFrame {

public static void main(String[] args) {

newframe frameTabel = new newframe();

}

JLabel welcome = new JLabel("Welcome to a New Frame");

JPanel panel = new JPanel();

newframe(){

super("Welcome");

setSize(300,200);

setLocation(500,280);

panel.setLayout (null);

welcome.setBounds(70,50,150,60);

panel.add(welcome);

getContentPane().add(panel);

setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

setVisible(true);

}

}

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