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
- In Java MailBox- client:String- emails: Email[]- actualSize: int+ Mailbox()+ Mailbox(client:String)+ getClient(): String+ getEmail(int index): Email+ getActualSize(): int+ addEmail(email: Email): void+ sortEmailsByDate(): void+ findEmail(year:int: Email+ countUrgent():int+ toString(): String Write java code for all the methods shown on the class diagram. Below arethe details needed for the different methods:a. The default constructor will assign the client a default name (any value ofyour choice). Keep in mind that a single mailbox (e.g., gmail) can handle amaximum of 15 emails, but it can hold less, which is the actual size of theemails array. So, the constructor should instantiate the emails arrayinstance variable by creating an array of size 15. It should also set theactualSize variable to 0.b. The MailBox (String client) constructor should call the default constructorusing chaining. It should then initialize the client variable using the clientparameter.c. The toString method…create an array of 3 Circle object references with radius = 1, 2 and 3 respectively. it should look like: Circle: radius = 1.00 area = 3.14 circumference = 6.28 then create one Circle reference called circle here. Assign 3 radii to the object: 10, 12 and 14 respectively. Print out should look like Circle: radius = 10.00 area = 314.16 circumference = 62.83Create integer ArrayList. Ask user input for integer, which is used to append the elements for that number of times. Create a Java method named "repetition" which will pass two parameters – ArrayList and integer entered by user. In the method, elements are replicated for the number of times based on the value of the integer. For example, If you have an ArrayList with the values [21,25, 5] and the user inputs 3, the repetition method should print the value -- [21,25, 5,21,25,5,21,25,5]
- PLEASE REFER TO THE IMAGES FOR INSTRUCTIONS PLEASE USE STARTER CODE - CODE IN PYTHON3 ### starter code import random def spider_web(web_map, starting_place, destination): pass def spider_web_rec(web_map, starting_place, destination, visited): pass def make_spider_web(num_nodes, seed=0): if seed: random.seed(seed) web_map = {} for i in range(1, num_nodes + 1): web_map[f'Node {i}'] = [] for i in range(1, num_nodes + 1): sample = random.sample(list(range(i, num_nodes + 1)), random.randint(1, num_nodes - i + 1)) print('sample', i, sample) for x in sample: if i != x: web_map[f'Node {i}'].append(f'Node {x}') web_map[f'Node {x}'].append(f'Node {i}') return web_map if __name__ == '__main__': num_nodes, seed = [int(x) for x in input('Input num_nodes, seed: ').split(',')] the_web = make_spider_web(num_nodes, seed) print(spider_web(the_web, 'Node 1',…Java Exercise: Given the starter code consisting of ListOfNodes.java and Node.java, complete the implementation of all the methods in ListOfNodes.java without changing the code in Node.java or main(). You should start by commenting all the lines in main and gradually implement the methods then run the code after each method comparing the real output to the expected out listed here. The following are some rules and guidelines you must follow:a. Read all the methods and decide if some of them will call on othersb. Reuse methods whenever possiblec. You are encouraged to write private helper methodsd. You cannot use the LinkedList class provided by the Java FrameworkThe expected output is:[], 0[l], 1[el], 2[Hel], 3[Helo], 4[Hello], 5[ABCDE], 5ABCDE[ABCDE], 5 [ABCCDE], 6[ACXCDC], 6[AXCDC], 51C[AXCD], 4D[AXC], 3C[AX], 2X[A], 1A[], 0[abcde], 5[badce], 5[$badce], 6[b$daec], 6 the classes: ListOfNodes.java public class ListOfNodes {static Node head; public static void main(String[] args) {//…In java Write a class with a main() method. The main() method should declare and initialize four different ArrayLists, each containing at least four int values. The class should also contain a method named fiveEight. Given an ArrayList of ints, the fiveEight should return the int 30 if every element of the given ArrayList is either a 5 or a 8; otherwise, it should return -9. There should be four calls to the allfiveEight method in the main() method.
- Exercise 2. Create a Book class where: Each book contains the following information: book title book Author name, barcode (as fong integers), and book topic. o Implement an appropriate constructor(s) and all necessary get/set methods. Test Book class: o Create diffcrent book objects (at least 5 hooks) and store them in a LinkedList sorted by book barcode value Generate a unique random integer value for the barcode. Iterate through the LinkedList and print out the books' details O Create a second LinkedList object containing a copy of the above LinkedList, but in reverse order.Define a class named Element with the following private data fields: String name; // The name of the chemical element int atomicNumber; // The atomic number of the element double atomicWeight; // The atomic weight of the element Override the toString() and equals() methods for the class with methods you design. Define a Java HashMap named elements that uses the String value of a chemical symbol as the key and an instance of the Element class as the value. For example, the chemical symbol for Carbon is the letter “C”. The atomic number of Carbon is 6, and the atomic weight of Carbon is 12.011. To add Carbon to the HashMap named elements, first create an instance of the Element class using “Carbon”, 6, and 12.011. Then add an entry to the HashMap collection using “C” as the key and the Element object as the value. Write a menu-driven program that prompts your user with the following six choices: Select an option number from the following menu: Option Action ------…Java Programming: Advanced GUIs and Graphics (doing an Applet) Creat an applet to draw a digit using the method fillRect of the class Graphics. Fpr instance, if the input is 4, the applet will display 4. Thank you and for some reason I cannt paste my code for this program--sorry
- Create a file named StudentArrayList.java, within the file create a class named StudentArrayList. This class is meant to mimic the ArrayList data structure. It will hold an ordered list of items. This list should have a variable size, meaning an arbitrary number of items may be added to the list. Most importantly this class should implement the interface SimpleArrayList provided. Feel free to add as many other functions and methods as needed to your class to accomplish this task. In other words, the class StudentArrayList must implement the interface SimpleArrayList. You have to write the code for each of the functions specified in the SimpleArrayList interface. Make sure the class that implements SimpleArrayList is named "StudentArrayList" or else the test code will not compile. All of the documentation for the function guidelines may be found in the interface. This assignment can be a lot of programming if you do not follow the DRY (Don't Repeat Yourself) programming principle.…Java programming Write a method that counts the number of all elements that are multiples of the number 2 and not the number 4, or have at least one digit 2. The numbers are limited to 1 and 10000 (inclusive). The method receives an integer field as a parameter and returns the number of these numbers as an integer.Let's look at an example:array:14, 210, 360, 41, 57, 6, 121result:4this is an android app with android studio . package com.example.myapplication;import androidx.appcompat.app.AppCompatActivity;import android.os.Bundle;import android.widget.ListView;public class PlayerActivity2 extends AppCompatActivity {ListView simpleList;String SerialNo[] = {"1", "2", "3", "4", "5", "6","7","8","9","10"};int flags[] = {R.drawable.image1, R.drawable.image2, R.drawable.image3, R.drawable.image4, R.drawable.image5, R.drawable.image6, R.drawable.image7, R.drawable.image8, R.drawable.image9, R.drawable.image10};String Names[] = {"mmm", "nnn", "aaa.", "bbb", "ccc", "ddd","eee jk"," ijk","Virgil jk","gil jklk"};String Score[] = {"1", "2","3", "5", "4", "3","5","5","5","5"};@Overrideprotected void onCreate(Bundle savedInstanceState) {super.onCreate(savedInstanceState);setContentView(R.layout.activity2);simpleList = (ListView)findViewById(R.id.simpleListView);//ArrayAdapter<String> arrayAdapter = new ArrayAdapter<String>(this, R.layout.activity_listview,…