You have been provided with the following elements • Sheunesu • Katlego • Andries • Buhle • Avinash Write a Java program in NetBeans that creates a LinkedHashSet. Your Java program must use the methods in the LinkedHashSet interface to do the following: 2.1 Add the above elements into the LinkedHashSet 2.2 Display all the elements in the LinkedHashSet
Q: Please help to respond to the below using the VBA Excel and the screenshot with information attached…
A: Using, user defined data type CustomerPurchase, which is made using structures in C++, we can store…
Q: What is the new sematic elements in HTML5? i. ii. iii. iv. a. i and iv b. ii and iii c. i, iii…
A: Defined the new semantic elements in HTML5
Q: Explain the following terms: Cursor, Embedded SQL, JDBC, SQLJ, stored procedure.
A: Introduction database management alludes to the moves a business makes to control and control…
Q: Let POWERTM = { | M is a TM, and for all s € L(M), Is is a power of 2 }. Show that POWERTM is…
A:
Q: Given variables category, heat, and voltage, declare and assign the following pointers: • character…
A: CODE:-#include <iostream>#include <iomanip>using namespace std; int main(){ char…
Q: Can you explain the most significant components of an operating system? to summarise?
A: Introduction: The supervisor programme, which is mostly resident in memory, is the most important…
Q: Examine how they are now being utilised after reading the courses and visiting the websites. Are you…
A: EXPLANATION: The majority of the websites that consumers visit online are utilized for commercial,…
Q: Q.3.1 The organisation has adopted and uses cloud services such as Application as a Service (SaaS)…
A: Here we have given a brief note with example for the best practices suitable for this scenario. You…
Q: Describe the requirements that need to be satisfied to solve the critical section problem. Give a…
A: It is a problem which is followed in a group of processors, so that when process is executing, no…
Q: 1 Pushdown Automata Produce the PDA that decides the following languages. You do not need to show…
A: According to the information given:- We have to produce the PDA that decides the following…
Q: ve 10 advantages of cyberpreneu
A: Introduction: Below the 10 advantages of cyberpreneurship
Q: Convert the DFA shown below to its equivalent regular expression. 1 a a,b b 3 2 b a
A: To convert a given DFA to its regular expression using Arden’s Theorem i.e. Form a equation for each…
Q: Which of the following is not a C language keyword? O a. continue O b. break c. case d. pass
A: C have 32 keywords. auto break case char const continue default do double else enum extern…
Q: for a switching network. Calculate the total data times needed when the following switching…
A: The answer is
Q: Explain what application virtualization is and why it's important.
A: Introduction- Through the process of application virtualization, we use many machines. 1>The…
Q: components of mot
A: Motherboard: A motherboard (also called mainboard, main circuit board,[1] mb, mboard, backplane…
Q: What do you consider to be one of the most essential uses of AI in organisations?
A: Introduction: Artificial intelligence and deep learning artificial intelligence technologies are…
Q: 3. Compute 2101 x 1130 by applying the divide-and-conquer algorithm (Apply) CO2
A: Divide and Conquer algorithm
Q: Write a program to multiply the number (09E6)* 13 and store the result in memory locations 4500 and…
A: Algorithm: First load the data (09E6) into AX(accumulator). Then, load the data (13) into BX…
Q: Block Address: 192.168.16.0/24 Port to Point Link WANI Usable of Hosts: 2 Users X LAN: Usable of…
A: ANSWER:
Q: Explain Simple classification Techniques ? 4) (discuss all 4
A: Introduction • It is the method involved with organizing information into homogeneous gatherings as…
Q: What are the two criteria for classification of the advanced operating systems? Discuss any two…
A:
Q: Fill in the blanks to specialize the "MyClass" template class for integers. template class MyClass
A: The class specialization is creation of explicit specialization of a generic class. We have to use…
Q: Describe the significance of computer security for embedded, networked systems.
A: Dedicated systems that perform a specific set of tasks are called embedded systems. Whether a system…
Q: Complete the following tasks: Design a class named StockTransaction that holds a stock symbol…
A: Design a class named StockTransaction that holds a stock symbol (typically one to four characters),…
Q: demonstrate the use of the periodic interval functions. Observe that since we have N points, and…
A: doubling the number of grid points used should lead to a reduction in the error by a factor of four.…
Q: Write a python code to get a 5 letter words in a user entered string. Please don't use nested loops.
A: Introduction to the question: In this question we have to find out the first 5 word form the user…
Q: To read the course code "Hello Java", we use:
A: We use input.nextLine() for reading the value from the Scanner class . We simply create object of…
Q: Design an application that declares an array of 10 StockTransactionobjects. Prompt the user for data…
A: Given : Design an application that declares an array of 10 StockTransactionobjects. Prompt the user…
Q: d framing protoc ter pattern of utput bit-string a 001101110011, fed is
A:
Q: Exercise 3.1 Define the following terms: relation schema, relational database schema, domain,…
A: Relation schema: Relation schema describes how a relation is arranged, including its name, set of…
Q: omplete the code. The question is in the picture #include using namespace std; class…
A: #include <iostream>using namespace std; class Queue {public:int size;int* queue; Queue() {size…
Q: Write the equivalent assembly code if you were to translate from C to Assembly: for (i=0; i<10; i++)…
A: The given question instructs to convert the given c code to its equivalent assembly code: The given…
Q: 4B) Describe the differences between access control lists and a capabilities lists. How do we set…
A: Access control lists which means is a list of the rules or the things that are used to specify the…
Q: How do smart pointers work? What function do they fulfil?
A: A smart pointer is an abstract data type that replicates a pointer and offers functions like…
Q: List down 5-6 Low KD, High volume keywords batches for the service category in the finance industry.…
A: 5-6 Low KD, High volume keywords batches for the service category in the finance industry.
Q: Wireless networks encounter a variety of challenges as a consequence of their inherent…
A: Wireless signals rapidly lose strength as they go further. This is the same as attenuation (or…
Q: Describe a real-world CSP, the solution it offered, and its local and global implications.b
A: Introduction: CSPs represent an issue's objects as a homogeneous set of finite limits over…
Q: Write a C++ function named is Prime that takes a positive integer argument and returns true if the…
A: Here I have defined the function named isPrime(). Inside the function, I have used a loop to…
Q: Code Example 4-2 def get_volume (width, height, length=2): volume = width * height * length def main…
A: The correct solution is given below with an explanation
Q: Write a program in C++ with total change amount as an integer input, and output the change using the…
A: The program is written in step 2
Q: S3 provides eventual consistency for for which thing in aws?
A: Given question is asking for a thing used in aws s3 for consistency.
Q: lain virtual to physical address mapping cepts with the help of an abstract model.
A: Introduction: Below describe the virtual to physical address mapping concepts with the help of an…
Q: Synaptic weights are w,-1.2, w, -0.4, w, 0.7. Find the given input above (or) below line 2
A: The answer is
Q: What characteristics distinguish computer systems?
A: Introduction: A computer is a machine that takes in raw data and processes it. The computer…
Q: An Artificial Neural Network contains 2 neurons in the Input Layer (called neuron 0 and neuron 1), 2…
A: Output of Neuron 2 is = 0.00061 Output of Neuron 3 is = 0.87 Output of Neuron 4 is =…
Q: Create a class named "Identity" class with attributes: name, age, city and gender. Choose your own…
A: Answer: Algorithms: Step1: we have created class person and data member name, age, city and gender…
Q: Determine the time complexity function of the program snippet below, int f1(int n) { if (n = 1)…
A: The solution is given below with step by step explanation
Q: How many bits would you need to represent 2018 in binary? How many bytes is that?
A: The above question is solved in step 2 :-
Q: Construct, using indirect proof strategy, proofs of the following symbolic arguments.
A: Explanation :- An indirect proof demonstrates that all of the alternatives are untrue rather than…
Step by step
Solved in 2 steps
- we are going to create a new subclass of the SimpleGeometricObject class, namedTriangle. Copy the source code of the SimpleGeometricObject class from the following link: https://liveexample.pearsoncmg.com/html/SimpleGeometricObject.html TASK 1: Create a Triangle class that extends the SimpleGeometricObject class in Eclipse, followingthe below UML diagram. Use the following formula to calculate the area of a triangle: A = 1/2 × base × height TASK 2: Create a TestTriangle class in an individual .java file. In the main method,(1) Create a Triangle object with default base and height values.(2) Create a Triangle object with specified base = 3 and height =4. TASK 3: Add a toString() method to the Triangle class. In this toString() method,(1) Print the base, height, and area of a Triangle object.(2) Call the toString() method of the superclass using the super key word.Then, in the main method of the TestTriangle class, make the two Triangle objects that youcreated in Task 2…In Java. Ask the user for a starting point and ending point. Sort the user list using the method in the previous question, but only display the users within the entered range. I already have a code, but it doesn't sort right. I believe there is something wrong. Here is the data text. I can't copy and paste it because it is too long. https://textuploader.com/t1ol7 The image without the red highlight should be the correct output. Code:import java.io.File;import java.io.FileNotFoundException;import java.util.ArrayList;import java.util.Scanner;public class Users{public static void main(String[] args){String filename = "user-database.txt";Scanner infile = null;try {infile = new Scanner(new File(filename));} catch (FileNotFoundException e) {System.out.println(e.getMessage());}ArrayList usernames = new ArrayList();ArrayList passwords = new ArrayList();int start, end;Scanner input = new Scanner(System.in);System.out.println("Enter a starting point and ending point");start =…we are going to create a new subclass of the SimpleGeometricObject class, namedTriangle. Create a Triangle class that extends the SimpleGeometricObject class in Eclipse, followingthe below UML diagram. (seperate code) Use the following formula to calculate the area of a triangle:A = 1/2 × base × height the SimpleGeometricObject code is below in link and picture https://liveexample.pearsoncmg.com/html/SimpleGeometricObject.html the ending part of the code that didnt appear in the picture } /** Return a string representation of this object */ public String toString() { return "created on " + dateCreated + "\ncolor: " + color + " and filled: " + filled; } }
- First, launch NetBeans and close any previous projects that may be open (at the top menu go to File ==> Close All Projects).Then create a new Java application called "Parser" (without the quotation marks) that uses methods to:Get a comma-delimited String of integers (e.g. "4, 8, 16, 32") from the user at the command line and then convert the String to an ArrayList of integers (using the wrapper class) with each element containing one of the input integers in sequencePrint the integers to the command line, using a for loop, so that each integer is on a separate lineUsing this link: https://docs.oracle.com/javase/tutorial/java/concepts/interface.html and https://docs.oracle.com/javase/tutorial/java/concepts/class.html Create in Java: An interface named bicycle as described in the section: What is an interface? Add a new method for the interface bicycle: ring the bell with a parameter indicating how many time. Pick a bicycle brand and create a new class of bicycles for that brand, as described in the sections What is an interface? and What is a Class? For the new method implementation, write in the console "Clang! Clang!..." for how many times the parameter indicates. Create another class, with a main method, in which you will take a trip aroound your house, changing your bicycle attributes, starting and ending from a complete stop, and ringing the bell once at start and twice at the end. Use as inspiration the method in What is a Class? Your trip must have at least 5 different parts in which you change your bicycle…First, launch NetBeans and close any previous projects that may be open (at the top menu go to File ==> Close All Projects).Then create a new Java application called "MinMax" (without the quotation marks) that declares an array of doubles of length 5, and uses methods to populate the array with user input from the command line and to print out the max (highest) and min (lowest) values in the array.
- Need it asap please !!! Will rate your answer!!! Run the following Java code and explain what it does. Give the resulting image from the code using inputs 3,960 1,234 222,222 13,780 interface ArrayStackADT{public void pop();public void push(Object a);public void display();public boolean isEmptyStack();public boolean isFullStack(); } class ArrayStackDataStrucClass<T> implements ArrayStackADT{// An object of type T is declaredfinal static int n=100;T stack[];int top=-1; // Default constructorArrayStackDataStrucClass() {this.stack = (T[]) new Integer[100];}//Overloaded ConstructorArrayStackDataStrucClass(T obj[]) {this.stack = obj;} @Overridepublic void push(Object obj){T t1= (T) obj;try{if(!isFullStack()){stack[++top]=t1;}}catch(Exception e){System.out.println("e");}} @Overridepublic void pop(){T popper = null;if(top<0){System.out.println("Stack underflow");return;}else{popper=stack[top];top--;//System.out.println("Popped element:" +popper);} } @Overridepublic void…FOR JAVA, PLEASE URGENT Part I Use Company class and create OptionDialog for 5 any methods about company. Part II Modify the methods to get input from user by dialog systems (InputDialog, OptionDialog etc.). You can add more if you don’t have proper methods to utilize dialogues. Part III Modify the exception handling codes to show the caught error by MessageDialog. Part IV Create an UI by JFrame in order to initialize the Company objects.Using your Eclipse / Java integrated development environment (IDE), code a solution to PP 5.6 from page 250 of your text book. Note that you should use the Coin java file included here without making any changes to it. the Coin java file is here You should submit the Coin java file (with no changes) and a UML file created using the Violet UML Editor in html format. //********************************************************************// Coin.java Authors: Lewis & Loftus//// Represents a coin with two sides that can be flipped.//******************************************************************** public class Coin{private final int HEADS = 0;private final int TAILS = 1; private int face; //-----------------------------------------------------------------// Sets up the coin by flipping it initially.//-----------------------------------------------------------------public Coin (){flip();} //-----------------------------------------------------------------// Flips the coin…
- I have been given a project called "Assassin" friom my computer science class, and I cannot seem to be able to create the correct methods in order to run this code properly. I am going to paste my current code for this project. If you would like the instructions, please allow me to either email or create another query, as the instructions are on a word document. Please offer assitance if you can, thank you.My current code: import java.io.*; import java.util.*; /** * Class AssassinMain is the main client program for assassin game management. * It reads names from a file names.txt, shuffles them, and uses them to start * the game. The user is asked for the name of the next victim until the game is * over. */ public class AssassinMain { /** * input file name from which to read data */ public static final String INPUT_FILENAME = "names.txt"; /** * true for different results every run; false for predictable results */ public static final boolean…Please fix errors for the java code below. The program is a t square fractal (image below) import javax.swing.*;import java.awt.*;import java.awt.geom.*; //main classpublic class SquareFractal { public static void main(String[] args) { FractalFrame tframe = new FractalFrame(); tframe.setTitle("T Square Fractal"); tframe.setVisible(true); }} //JFrame extended in fractal class class T_Fractal extends JFrame{ private JPanel panel; private int twidth, theight; private int x = 200; private int limit = 15; public T_Fractal() { setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); //default height and width final int Width = 1000; final int Height = 1000; setSize(Width, Height); setLocation(200,50); panel = new JPanel(); Container t_content = getContentPane(); t_content.add(panel, "Center"); } public void paint(Graphics graphics) { super.paint(graphics); Graphics2D g2 = (Graphics2D) graphics; twidth = getWidth(); theight = getHeight();…Hi just need the following code of each method which is at page 3. The specifications on what to do on each method is on page 4. This is for JAVA btw am using intellij. Thank you! The input file is a csv file named data.csv here is the link if you needed to download:https://drive.google.com/file/d/1vi3nuPYk8tVe1ckbDOoslYU3N5-XWOrP/view