In this Java program, run this in netbeans ide and show the picture of the output. Thank you See the picture below that's a Source Code of this program. Thank you
Q: Define a function calc_total_inches, with parameters num feet and numunches, that returns the total ...
A: - We have to code for the total number of inches with the feet and inch as the parameters as the fun...
Q: Explain physical data independence and its significance in database systems.
A: Introduction Physical information Independence : Physical information Independence is outlined becau...
Q: The prefix of 3 is the first 3 characters of a String. Given a String input, output the first three ...
A: use the method substring as String.substring(int startindex,int lastindex) here start index= 0 last ...
Q: What are some of the main reasons he gives for having a robust cyber defence?
A: Introduction: Defending your device, software, and network from cyberattacks or threats is what cybe...
Q: A computer virus is a little, deviously clever software that copies itself to other computers, causi...
A: Introduction: A computer virus is a little, deviously clever software that copies itself to other co...
Q: Write an expression using Boolean operators that prints "Special number" is -99,0,or 44 sample outp...
A: Introduction Write an expression using Boolean operators that prints "Special number" is -99,0,or ...
Q: File "/Users/foramodedara/Desktop/i2p/assg3_219283662.py", line 17, in wordtomorse code += Mcode [or...
A: Please refer to the following step for the complete solution of the problem above.
Q: U1 n=5 V1 V2 U5 U2 V5 U4 U3 V3 V4
A: A dominating set for a graph G = (V, E) is a subset D of V such that every vertex not in D is adjace...
Q: How is Binary Heap usually implemented?
A: NOTE :- Below i explain the answer in my own words by which you understand it well.
Q: With appropriate examples, explain the features of static class members.
A: In C++, a class's data members and member methods can be classified as static. A class can have both...
Q: What is asymptotic analysis and why is it used? Use examples to demonstrate.
A: Asymptotic analysis of an algorithm refers to defining the mathematical foundation/framing of its ru...
Q: MODAL LOGIC ONLY PLEASE Give a formal derivation in KT showing that: KTEA→ OA
A: The flavor of (classical) modal logic called S4S4 is (classical) propositional logic equipped with a...
Q: The three stages of data modeling should be differentiated from one another.
A: - The three steps of data modelling must be highlighted. The differences are as follows: - Data mode...
Q: What are some of the most important aspects to consider when it comes to data backup and recovery?
A: Introduction : Planning is done throughout the data backup and recovery process to keep track of vit...
Q: 2 (a) Convert the hexadecimal number B5 into binary: Convert the binary number 11110110 into hexadec...
A: Below is the correct answer to above question. I hope this will meet your requirement...
Q: Write the JAVA programming language to get the following output with using more than one double-quot...
A: Here is the detailed explanation of the solution
Q: What is the return value of the following call: bin_search([3, 6, 8, 9, 10, 15, 17], 17)? O True Fal...
A: A binary tree consists of several nodes in which each node must have two child nodes. one is left ch...
Q: Access is a program with a great deal of flexibility. Is it possible for end users to access the dat...
A: Introduction: Access 2010 and Access Services (a SharePoint add-on) offer a framework for developing...
Q: What exactly is a named argument?
A: Named arguments also known as Keyword arguments are those values which when passed to a method / fun...
Q: Many regular expression implementations contain additional operators or symbols beyond the three bas...
A:
Q: What are some of the most important aspects to consider when it comes to data backup and recovery?
A: The ability to use different retention policies, exclude content, use different storages, extra copi...
Q: Describe the network layer's data plane and control plane.
A: Introduction: All operations and procedures that determine which path to utilize to convey the packe...
Q: Determine whether p→(q→r) and p→(q^ r) are equivalent using truth tables. Not enough information Equ...
A: Option C: Not Equivalent p q r q->r p->(q->r) q^r p->(q^r) F F F F F F F T F T T ...
Q: Explain............ Alex is setting up a new office. He wants the nodes in his office network to be...
A: Answer : Star Topology Star topology is a network topology in which each network component is...
Q: Explain the various ways for implementing integrity controls to ensure database security.
A: Introduction: Data integrity is an important aspect of information security that is handled by integ...
Q: Give an example of a downside of utilising Java applets on web pages.
A: Introduction: The following are the disadvantages of utilising Java Applets on web pages:
Q: Distinguish between the phrases primary key, candidate key, and super key.
A: Primary key The term primary key is used to denote a candidate key that is chosen by the database d...
Q: B. Partial - Fraction Expansion with MATLAB Determine the partial fraction expansion of the followin...
A:
Q: Computer science Explain the types of Routing policies available in Amazon route S3. 63. Explain the...
A: Introduction: Amazon Route 53 is a highly accessible and scalable cloud Domain Name System (DNS) web...
Q: What are some of the advantages of data profiling?
A: Introduction: Data profiling enhances data quality, shortens the time it takes to perform large proj...
Q: Why is top-down data security superior than bottom-up data security?
A: Introduction: The top-down strategy has the benefit of allowing choices to be made and executed rapi...
Q: Enumerate five (5) modules available for this system excluding home/dashboard. Describe the specific...
A: ERP appliances focus on a variety of crucial business processes.
Q: When it comes to databases, what is the difference between centralized and parallel/distributed
A: A database system is basically a computer based record maintainance system . It keeps record and hen...
Q: (b) Show the results of inserting the keys В, R, A, U, H, S, F, T, K, Р, М, L, N, W, Q in order into...
A: A B-tree is a tree data structure that keeps data sorted and allows searches, insertions and deletio...
Q: Multiply the value 32 (expressed by 8-bit signed two's complement representation) by 2 Divide the va...
A: 8) 32 x 2 = 64 8-bit signed 2's complement representation of 64 is 01000000
Q: Explain the importance of e-commerce security and encryption.
A: eCommerce security These are the rules that govern safe internet transactions. It has measures in p...
Q: rks and how it relates to mult
A: Show how video recording works and how it relates to multimedia creation.
Q: Which of the following instructions is impossible?
A: In this question, we are asked to give the correct answer out of many Given:
Q: (a) Describe the differences among short-term, medium-te long-term scheduler.
A: Lets see the solution.
Q: Consider using BPEL or other business process modeling languages
A: Introduction: BPEL is a process modeling/management language that standardizes process descriptions ...
Q: Explain briefly four issues that are frequently related with table-based Web page layout.
A: Introduction: While the material in a table arrangement is linear, it may not necessarily make sense...
Q: The negative numbers are stored in a computer as 2's complement form plus 1. * False Skip True The i...
A: Given To know about the 1) negative numbers are stored in a computer as 2's complement plus one . 2...
Q: (True/False): The PROC directive initiates a procedure, whereas the ENDP directive terminates one.
A: Intro Directives: In the assembly language, the directives are a command that give instruction to t...
Q: Conduct Internet research to learn about developing trends in wireless networking and the typical co...
A: In a small space, such as a house, school, computer lab, campus, or office building, a wireless LAN ...
Q: When processing client requests, DHCP policy specifies a set of criteria to consider. Explain TWO ty...
A: Computer networks that employ a server to store data, manage resources, and govern user access are k...
Q: What are the benefits and drawbacks of distributed data processing that should be considered before ...
A: Intro Scattered data processing is a type of computer networking method where more than one computer...
Q: How is Binary Heap usually implemented?
A: Introduction: Arrays are widely used to implement heaps. Any binary tree may be stored in an array, ...
Q: inheritance? State the different types of inheritance supported by java
A: Lets see the solution.
Q: 048" never moves in the matrix. Here is an example in the picture. It blocks out numbers coming in ...
A: The program provided below is manipulating a matrix such that all the numbers can move accept 2048 w...
Q: The scope of an identifier should be described.
A: Introduction: The range of program instructions within which an identifier is accepted as a legitima...
In this Java
See the picture below that's a Source Code of this program. Thank you
Step by step
Solved in 2 steps with 1 images
- please build up the java codecomplete the code and fill up missing codes// = needs input for the code thank you import java.awt.*;import java.awt.event.*;import javax.swing.*;import java.util.ArrayList; public class GUI extends JFrame implements ActionListener {JMenuItem resetItem, startItem;JTextField ansTextField;JLabel resultLabel, scoreLabel, timeLabel, operationLabel;Timer timer;DoubleDigitOp op;final int maxTime = 6;final int runTime = 100;double score = 0;int newTime = maxTime*runTime;String[] status = new String[]{"Score: ","Timer: "};String[] reset = new String[]{"Score: 0.00","Timer: "+((double)newTime/100),"00 + 00 = ","Game Message"};public GUI(String title){setTitle(title);//Create a Menu names "Game" (1) //Add two menus on "Game": the menus named "Start" and "Reset" (6) -- both execute an actionJMenuBar menuBar = new JMenuBar();menuBar.add(gameMenu);setJMenuBar(menuBar);JPanel content = new JPanel();content.setLayout(new BorderLayout());JPanel statusPanel = new…Write this code to get 7 inputs: import javax.swing.*;import java.awt.*;import java.awt.event.*; class WeeMadLib implements ActionListener { JFrame wmlGame = new JFrame("Wee Mad Lib");JPanel gameBoard = new JPanel(new GridLayout(3,3)); JLabel subjectLabel = new JLabel("Subject");JLabel verbLabel = new JLabel("Verb");JLabel objectLabel = new JLabel("Object"); JLabel subject = new JLabel("My friend ");JTextField verb = new JTextField(25);String[] objectOptions = { " a ball."," chickens."," a kazoo.", " an igloo." };JComboBox object = new JComboBox(objectOptions); JButton clear = new JButton("Clear");JTextArea sentence = new JTextArea("My friend ___ ___.");JButton exit = new JButton("Exit"); public WeeMadLib() { wmlGame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); wmlGame.setSize(300,300); subjectLabel.setOpaque(true); subjectLabel.setBackground(new Color(0,255,255)); subjectLabel.setHorizontalAlignment(JLabel.CENTER); sentence.setEditable(false); sentence.setOpaque(false);…package colordialog; import java.awt.Color; import java.awt.Graphics; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.GradientPaint; import javax.swing.JButton; class ColorButton extends JButton implements ActionListener { int indexColor; ColorLabel currColor; ColorLabel [] colorArray; ColorButton() { colorArray=new ColorLabel[7]; colorArray[0]=new ColorLabel("RED" ,new Color(255, 0, 0));//RED colorArray[1]=new ColorLabel("ORANGE",new Color(255,128, 0));//ORANGE colorArray[2]=new ColorLabel("YELLOW",new Color(255,255, 0));//YELLOW colorArray[3]=new ColorLabel("GREEN" ,new Color( 0,255, 0));//GREEN colorArray[4]=new ColorLabel("BLUE" ,new Color( 0, 0,255));//Blue colorArray[5]=new ColorLabel("INDIGO",new Color(128, 0,255));//INDIGO colorArray[6]=new ColorLabel("VIOLET",new Color(192, 0,192));//PURPLE indexColor=0;…
- Java ProgramEdit this program that when you press the clear button, it actually clears the textfield and data of the previous numbers pressed.import java.awt.BorderLayout;import java.awt.Container;import java.awt.Dimension;import java.awt.GridLayout;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import java.util.ArrayList;import javax.swing.*;public class Pincode extends JPanel implements ActionListener {JLabel display, displayExtra;JButton numButton;JButton clr;JButton etr;String displayContent = "";String[] numPadContent = {"1", "2", "3", "4", "5", "6", "7", "8", "9", "CLEAR", "0", "ENTER"};ArrayList<JButton> buttonList;String PASSWORD = "061904";JFrame f;Pincode(Container pane) {pane.setPreferredSize(new Dimension(320, 335));display = new JLabel(displayContent);displayExtra = new JLabel(displayContent);display.setPreferredSize(new Dimension(320, 25));display.setBorder(BorderFactory.createLoweredBevelBorder());pane.add(display,…import java.awt.*;import javax.swing.*;import java.util.*; // Model classclass FrogModel { private int xc; private int yc; public FrogModel() { // Initialize frog's coordinates randomly Random rng = new Random(); // Creating an instance of Random xc = rng.nextInt(200); yc = rng.nextInt(200); } public int getX() { return xc; } public int getY() { return yc; } public void leap() { // Update frog's coordinates randomly Random rng = new Random(); // Creating an instance of Random xc = rng.nextInt(200); yc = rng.nextInt(200); }} // View classclass FrogView extends JPanel { private FrogModel model; public FrogView(FrogModel model) { this.model = model; setBackground(Color.BLUE); } @Override protected void paintComponent(Graphics gc) { super.paintComponent(gc); gc.setColor(Color.GREEN); gc.fillOval(model.getX(), model.getY(), 10, 10); //…import java.awt.*;import javax.swing.*;import java.util.*; // Model classclass FrogModel { private int xc; private int yc; public FrogModel() { // Initialize frog's coordinates randomly Random rng = new Random(); // Creating an instance of Random xc = rng.nextInt(200); yc = rng.nextInt(200); } public int getX() { return xc; } public int getY() { return yc; } public void leap() { // Update frog's coordinates randomly Random rng = new Random(); // Creating an instance of Random xc = rng.nextInt(200); yc = rng.nextInt(200); }} // View classclass FrogView extends JPanel { private FrogModel model; public FrogView(FrogModel model) { this.model = model; setBackground(Color.BLUE); } @Override protected void paintComponent(Graphics gc) { super.paintComponent(gc); gc.setColor(Color.GREEN); gc.fillOval(model.getX(), model.getY(), 10, 10); //…
- PLEASE ADD SOME DESIGNS ON MY JAVA PROGRAM, LIKE FONTS, BACKGROUND COLOR ETC. import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.util.*; //class declaration public class foodtest extends JFrame implements ActionListener { // declare global variables JCheckBox cbBurger, cbEggs, cbFriedChicken, cbBrownRice, cbIceCream; JLabel lblTitle, lblBurger, lblEggs, lblFriedChicken, lblBrownRice, lblIceCream; JButton b1Calculate, b2Check, b3Reset, b4Cancel; JTextArea t1Output; int burgerCal = 295, eggsCal = 72, friedchickenCal = 260, brownriceCal = 111, icecreamCal = 300; int totalCal = 0; ArrayList<String> foodItems = new ArrayList<String>(); ArrayList<Integer> foodCalories = new ArrayList<Integer>(); // constructor public foodtest() { // set frame properties setTitle("IS YOUR FOOD HEALTHY?"); setSize(630, 520); setLayout(new FlowLayout());…Please help me fix the errors in the java program below. There are two class AnimatedBall and BouncingBall import javax.swing.*;import java.awt.*;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;public class AnimatedBall extends JFrame implements ActionListener{private Button btnBounce; // declare a button to playprivate TextField txtSpeed; // declare a text field to enterprivate Label lblDelay;private Panel controls; // generic panel for controlsprivate BouncingBall display; // drawing panel for ballContainer frame;public AnimatedBall (){// Set up the controls on the appletframe = getContentPane();btnBounce = new Button ("Bounce Ball");//create the objectstxtSpeed = new TextField("10000", 10);lblDelay = new Label("Enter Delay");display = new BouncingBall();//create the panel objectscontrols = new Panel();setLayout(new BorderLayout()); // set the frame layoutcontrols.add (btnBounce); // add controls to panelcontrols.add (lblDelay);controls.add…Question & instructions can be found in images please see images first Starter code import javax.swing.*;import java.awt.*;import java.awt.event.*;import java.text.DecimalFormat; public class GPACalculator extends JFrame{private JLabel gradeL, unitsL, emptyL; private JTextField gradeTF, unitsTF; private JButton addB, gpaB, resetB, exitB; private AddButtonHandler abHandler;private GPAButtonHandler cbHandler;private ResetButtonHandler rbHandler;private ExitButtonHandler ebHandler; private static final int WIDTH = 400;private static final int HEIGHT = 150; private static double totalUnits = 0.0; // total units takenprivate static double gradePoints = 0.0; // total grade points from those unitsprivate static double totalGPA = 0.0; // total GPA (gradePoints / totalUnits) //Constructorpublic GPACalculator(){//Create labelsgradeL = new JLabel("Enter your grade: ", SwingConstants.RIGHT);unitsL = new JLabel("Enter number of units: ", SwingConstants.RIGHT);emptyL = new…
- PLEASE HELP ME MY CANCEL BUTTON AND TRY BUTTON DO THE SAME THING I WANT MY CANCEL BUTTON TO CLOSE MY PROGRAM/FRAME import java.awt.*; import javax.swing.*; import java.awt.event.*; import java.util.Scanner; public class oopfr implements MouseListener, KeyListener, ActionListener { private JPanel jp; private JFrame jf; private JTextField tf, z; private JLabel nm, jl, n, v, c; private JButton button, button2, button3; oopfr() { jp = new JPanel(); jp.setBackground(Color.YELLOW); jf = new JFrame("Consonant and Vowel Count"); jf.setSize(500, 500); jf.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); jf.add(jp); jf.addKeyListener(this); jp.setLayout(null); nm = new JLabel("Name: "); nm.setBounds(10, 20, 55, 20); jp.add(nm); z = new JTextField(); z.setBounds(100, 20, 130, 20); z.setBackground(Color.WHITE); z.addKeyListener(this); jp.add(z);…Chapter 18 Problem 38.PE Textbook: Introduction to Java programming and datastructure. 11th Edition Y. Daniel Liang Publisher: PEARSON ISBN: 9780134670942 This code is taken from your website does not work. package e38; import javafx.application.Application;import javafx.event.ActionEvent;import javafx.event.EventHandler;import javafx.scene.Scene;import javafx.scene.control.Button; import javafx.stage.Stage;import javafx.geometry.Pos;import javafx.scene.control.Label;import javafx.scene.control.TextField;import javafx.scene.control.Textfield;import javafx.scene.layout.BorderPane;import javafx.scene.layout.HBox;import javafx.scene.layout.Pane;import javafx.scene.shape.Line;import javafx.stage.Stage; public class E38 extends Application { @Override public void start(Stage primaryStage) { // Create a pane TreePane tp = new TreePane(); // Create a textfield TextField tfOrder = new TextField(); // Set the Depth…Please help me fix this java code which is supposed to be a Pac-Man game Java program is below import java.awt.*; import javax.swing.JFrame.*; public class ManyPacMans extends JFrame { public void paint(Graphics g) { g.drawghostShape(60,30,40); setBackground(Color.BLUE); g.fillghostShape(130, 30,100, 80); g.drawghostShape(60,30,40); setBackground(Color.PINK); g.fillghostShape(130, 30,100, 80); g.drawghostShape(60,30,40); setBackground(Color.RED); g.fillghostShape(130, 30,100, 80); g.drawOvalpacman(30,130,50, 60); setForeground(Color.yellow); g.fillOval(130,130,50, 60); } public Ghost(String imgPath, int x, int y, int speed, boolean ip) { super(imgPath, new int[] {0,0}, GHOST_WIDTH, GHOST_HEIGHT, GHOST_FRAMERATE, x, y); super.addFramesForAnimation("scatter", "ghost_scatter.png", 0, 0, 22,0); super.speed = speed; startX = x; startY = y; scoreValue = 200; } public ManyPacMans() { initUI(); } private void initUI() { add(new…