Literature Notes
Test Prep
Study Guides
Log In
Sign Up
Home
Questions and Answers Archive
Java Programming
February 2023
Java Programming questions and answers in February 2023
Need guidance please with explanation. Thank you in advance attached are the pictures. Code: . You can see the function toggleclick on line 26 which is our click handler for the three buttons,...
. TCSS142 Introduction to Programming Project 4 Write a java class called TestGrades (TestGrades.java) and a driver program called GradeDriver (GradeDriver.java) that uses/tests the TestGrades class...
SystemBalanceInterface.java ^^^ can you please send me the code for this problem and not the one that Is from c.h.e.g.g. since that one doesn't implement the interface. Ive been getting answers that a...
Could u show the procedures of part a and b? Thanks!. 1.) (25 points each) Write down a summation version of the run-time of each of the following two algorithms and then figure out and prove the asym...
This program computes basic statistics on egg weights. The user first enters egg weights using sentinel 0 to stop. For each egg, the user enters the egg weight in ounces at the keyboard. Code can assu...
These questions are about logic programming. Could u write down the detailed procedures for me? Please with specific explanations thanks!!!. 1.) (25 points each) Write down a summation version of the ...
Can someone please assist with this code I keep getting an error and I am unsure of why. Here are the instructions Prompts a user to enter customer id, the unit price in this format (e.g. 3.75), qu...
https://github.com/sanjanachin/polygraph Please take a look at this app and Provide high-level comments/feedback and helpful critique with an emphasis on the app's technical setup, descriptive writ...
4. Write an inner public class named Triangle (not static). In this class, 1) Write three private instance variables, a, b, and c. Each instance variable represents the length of a line (type double)....
Dinosaur.java This file defines a Dinosaur object. Variables: The Dinosaur class must have these variables: • name - the name of the dinosaur. This should be a String. It should be visible t...
.. Question 2 Consider the following code snippet Set <Double> a = new HashSet<> ( ) ; a = new HashSet<> ( ) ; Set <Double> b = a; Set <Double> c = a; How many set refere...
Please do not change the following code. RBTree.java package trees; import java.util.ArrayList; import java.util.Iterator; import java.util.Stack; public class RBTree { /* * For coloring the nodes....
I'm stuck, I know that is simple, but I can't get it right now. Can you please help me?. CHALLENGE ACTIVITY 1.2.2: Output basics 469906.2839042.qx3zqy7 Jump to level 1 V Write code that outputs variab...
Problem 4 Write a static method named problem3 that accepts a string. Replace every occurrence of the first character with "
quot; except for the first character itself. Capitalize the first letter of thi...
Look at the following program, StudentAssignment.java, which uses a DoubleArraySeq. The program creates a DoubleArraySeq and calls some of its methods. Fill in the blanks in the comments to show the v...
The solution must be RECURSIVE. THANK YOU. /** * Creates a new list consisting of the partial sums of this list. In other * words, slot i of the answer list will be the sum of all numbers in sl...
CAN you please make it look easy, thank you. Write a Java program that reads a string from the user containing a two letter state abbreviation and outputs the full state name back to the user. To acco...
. Write a Java program that reads a sentence consisting of five words and determines the shortest word and longest word. For example, if sentence "earth rotates around the sun" is entered ...
a(n) = | a(1) = 2, n = 1 | a(n) = 4a(n-1)-3n, n >= 2 Given the Maths Function definition above for a mathematical function a(n) you are required to write two Java methods - both methods will be in ...
Hello, the following assignment will simulate activities in a kindergarten classroom. It will simulate the students standing in a line, the students in their seats, and the students playing musical ch...
Demonstrate Encapsulation: Create a class called Car with private instance variables make, model, and year. Add getter and setter methods for each variable in order to access the private variables. (g...
Question below: . Use case: Transfer Money Precondition: This use case assumes that the customer has logged into the ATM. Actor: ATM Customer System: ATM 0 ATM displa s the Transaction Selectio...
Write a static method named problem2 that receives a positive integer n as the argument and calculates the sum below by using a loop. Return the result. total = 1 x 2 + 2 x 3 + ... + n x (n + 1) (15 p...
class HashingExercise { // Your code here: public static void main(String[] args) { HashMap<Integer, Integer> hash_map2 = new HashMap<>(); ?...
class HashingExercise { // Your code here: public static void main(String[] args) { HashMap<Integer, String> hash_map = new HashMap<>(); hash_map.put(1, "Diana");...
import java.util.ArrayList; public class Tree { public Tree() { root = null; } public Tree(int val) { root = new Node(val); } static class Node { int data; Array...
/* The class Employee stores private variables and uses getters and setters to allow access to these variables. Add a new private variable called employeeSalary. Add getSalary and setSalary methods to...
Practice problem I am really struggling with. I wrote a simple program that almost makes it to the end but I think I am missing something simple. Please provide a program so I can compare it to my ori...
Hello, in the following problem of Union-Find, I need help with explanations as to how to arrive at the answers. Answers are provided, I just need to know how. Problem 2 - Union-Find A client progr...
My EllipsoidList.java cannot compiled. I get the following message: EllipsoidList.java:247: error: cannot find symbol and EllipsoidList.java:250: error: incompatible types: boolean cannot be converted...
java zybooks. Write a program that takes in three integers and outputs the largest value. If the input integers are the same, output the integers' value. Ex: If the input is: 1 2 3 the output is: 3 46...
Write if-else statement to describe an object. Print "Balloon" if isBalloon is true and isRed is false. Print "Red balloon" if isBalloon and isRed are both true. Print "Not a balloon" otherwise. End w...
1. What is JDBC architecture? 2. What is Exception handling and its types? 3. How do use nested try catch in Java? 4. Define byte streams and character stream? 5. What is console input and console out...
use return values to fill in the blanks . Complete the SaferRobot.java code according to the comments: import becker . robots. *; public class SaferRobot extends Robot { public SaferRobot(City aCi...
https://github.com/sanjanachin/polygraph Please take a look at this app and Provide high-level comments/feedback and helpful critique with an emphasis on the app's technical setup, descriptive writ...
java zybooks. 2.30 LAB: Palindrome A palindrome is a word or a phrase that is the same when read both forward and backward. Examples are: "bob, sees," or "never odd or even" (ignor...
java. 2.31 LAB: Hailstone sequence Given a positive integer n, the following rules will always create a sequence that ends with 1, called the hailstone sequence: . If n is even, divide it by 2 . If n ...
import java.io.File; import java.io.FileNotFoundException; import java.util.Scanner; import java.util.ArrayList; import java.util.Stack; public class SymbolBalance implements SymbolBalanceInterface{ ?...
. Q1: Write a java program that reads a 4 letter word string, it then displays the integer Unicode code for each character in the string. Example if the string is said, the output is: 115 97 105 100...
Symbol Balance interface^^^ BalanceError.java^^^ if there is anything else that you need to solve this please let me know and hopefully I can send . Problem 1 - Symbol Balance - 40 points Defin...
Hello, the following assignment will simulate activities in a kindergarten classroom. It will simulate the students standing in a line, the students in their seats, and the students playing musical ch...
Please help. I received this feedback. Project: Ellipoid List Menu App Page 1 of 10. Code below. import java.text.DecimalFormat; import java.util.ArrayList; /** * A program that allows users to b...
. Problem 2 - Two Stack Queue - 20 points Build a queue out of two completely separate stacks, $1 and $2 . Enqueue operations happen by pushing the data on to stack 1. Dequeue operations are complet...
import com.google.gson.Gson; import com.google.gson.JsonObject; import org.apache.pdfbox.pdmodel.PDDocument; import org.apache.pdfbox.text.PDFTextStripper; import java.io.File; import java.io.FileWrit...
Example dataset below. Needing help creating a Java program that shows the frequency of each individual column below: Source IP and frequency count in descending order. Destination IP and frequency co...
(Arrays) Create a Class to store 100 integers in an Array. Call your class "SimpleArray", and store it in a file called "SimpleArray.java". All code should go in the main() method. First declare...
1.State whether each of the following is True or False . If a statement is false , explain why. (a) A Car class has an is-a relationship with the steeringwheel and Brakes classes. (b) A has-a relation...
For this assignment, we will be modeling a Pizza. We'll create a pizza, add ingredients, and then report the nutritional information bases on the ingredients added. This assignment is an example...
IN JAVA . Deliverables & Reminders The bolded are unique requirements for this extra credit assignment: Solutions not submitted before the due date will not be accepted for any reason. There is n...
Inside method main, create two variables called nNum1 and nNum2, initialize to 18 and 21 respectively Write method called question Invoke this method from method main question will accepts two int...
a method called question02 Invoke the method from method main Inside question02 method write code to Print all numbers divisible by 3 from 1 to 30 with a space. An empty space between each number mu...
Inside method main, add a Scanner to receive inputs from keyboard a print statement that asks user to enter Hello World! Use a variable to store this input from keyboard a method called questio...
Exercise 8.4 JHTP (Rectangle Class): Make a class Rectangle with attributes length and width, each of which defaults to 1. Provide methods that calculate the rectangle's perimeter and area. Use se...
Given input {4371, 1323, 6173, 4199, 4344, 9679, 1989} and a hash function h(x) = x mod 10, show the resulting: a. Separate chaining hash table. b. Hash table using linear probing. c. Hash table using...
Hello, when I click the button " Start execution of data transfer process", the error happen in the program like the image below. It said " Failed to create the path' control" If the error do ...
Hello, the following assignment will simulate activities in a kindergarten classroom. It will simulate the students standing in a line, the students in their seats, and the students playing musical ch...
Analyze the importance of this project to your future career. reflect on how this project meets the Program and Institutional outcomes as stated on the first page. Hypothesize on how this company will...
Compute a program to implement Splay Tree data structure that uses bottom-up splaying as described in the class. With input N (an integer), inserting nodes 1, 2, 3, ..., N into an initially empty tree...
Question 1) A. Show that in a binary tree of N nodes, there are N + 1 null links representing children. B. A full node is a node with two children. Prove that the number of full nodes plus one is ...
Stuck on this question for over a month. Please help. There is one code on this website but it doesn't work as shown in the last screenshot. Readme file: Copy this method into your BusRoutes cla...
Instructions This lab is designed to teach you more about Binary Trees. I need to write a BinarySearchTree class. For the base lab, you must write the following methods. public boolean contains(...
Implement the Fibonacci function in both a recursive and iterative fashion. What's the runtime efficiency of each? Turn in a chart of the results, (***CHART TO BE MADE USING EXCEL - NO NEED FOR THE ...
Can anyone help me get through this? Attached are the screenshots. Thank you . example.html X 1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>Hash params</title> 5 <l...
3. This programming assignment will implement a menu system which allows the user to: • Count the number of punctuation symbols in a String of text • Convert a String of characters to their bina...
. . Second row is fixed, which includes the 3-character days-of-week separated by space. October 2019 Sun Mon Tue Wed Thu Fri Sat 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26...
can you help me please thank you package week_4; import java.util.ArrayList; import java.util.List; /** * ArrayList practice. * Remove "Oatmeal" from the ArrayList. * Add the name of ...
. ASSIGNMENT 4 Assignment 4 tests your knowledge of Decisions Structures in Java (Chapter 4). For the assignment you are going to write a program that simulates the rolling of dice and create a simp...
im receiving a parsing error----- java (zybooks). 2.31 LAB: Hailstone sequence Given a positive integer n, the following rules will always create a sequence that ends with i, called the hailstone sequ...
java. 2.30 LAB: Palindrome A palindrome is a word or a phrase that is the same when read both forward and backward. Examples are: "bob," "sees," or "never odd or even" (i...
Please write in JAVA. there is a starter code provided in screen shots and in code written. the input file is named p2.txt and is below: 6767 iron man 670000000.98 565 black panter 787008.98 768565...
IN JAVA PLEASE. The input folder is called p1.txt and is below 71 27 90 12 28 50 7 51 48 38 the starter code is below: This is the starter code written out: import java.io.File; import java.io.Fi...
Objective In this activity, you will be experimenting with interfaces, functional interfaces, higher order functions, and lambda expressions. You'll also practice construction of basic classes that im...
java. . 2.29 LAB: Countdown until matching digits Write a program that takes in an integer in the range 11-100 as input. The output is a countdown starting from the integer, and stopping when both o...
How do I fix the errors in my code? . zyBooks My library > ITSD 326: Data Structures and Algorithms home > 2.1: Unit 1 Lab Assignment zyBooks catalog @ Help/FAQ @ Boone Taylor 1 1.21 Static fi...
java. 2.28 LAB: Varied amount of input data Statistics are often calculated with varying amounts of input data. Write a program that takes any number of non-negative integers as input, and outputs the...
1. (20 points) Write a Java program to compare the execution time of linear search and the execution time of binary search. Within your program you define the linear iterative search method, the ...
. You are writing a method in the MidtermD class. Giyen the following fields: SIZE: a constant int containing the length of the arrSt array count: an int containing the number of elements currently ...
. You are writing a method in the MidtermD class. Given field: alCou: an ArrayList object containing Course objects Write a method, countCourses. This method returns an int and has one parameter, a ...
In the following attachments, there are Data Structures problems. The solutions are implemented, can you provide me with further explanation on how does someone get to those answers? . Problem 1(...
java. . CHALLENGE ACTIVITY 2.13.1: String with digit. Set hasDigit to true if the 3-character passCode contains a digit. Code writing challenge activity demo 468672.3001530.qx3zqy7 1 import ...
java. CHALLENGE ACTIVITY 2.4.5: Multi-branch if-else statement: Print century. Write an if-else statement with multiple branches. If givenYear is 2101 or greater, print "Distant future" (wit...
. Assignment Details: Design and implement the PriorityQueue using ArrayHeap for generic types as discussed in class. Your task is to develop a simple, elegant implementation that does not sacrifice...
class HashingExercise { // Your code here: public static void main(String[] args) { HashMap<Integer, Integer> hash_map2 = new HashMap<>(); ha...
class HashingExercise { // Your code here: public static void main(String[] args) { HashMap<Integer, String> hash_map = new HashMap<>(); hash_map.put(1, "Di...
import java.util.ArrayList; public class Tree { public Tree() { root = null; } public Tree(int val) { root = new Node(val); } static class Node { int data; Array...
import java.util.ArrayList; public class Tree { public Tree() { root = null; } public Tree(int val) { root = new Node(val); } static class Node { int data; Array...
package week_5; import java.lang.reflect.Type; import java.util.ArrayList; import java.util.LinkedList; import java.util.List; import java.util.Map; import static input.InputUtils.*; /** * This p...
Exercise 2.3. Design and implement a RandomQueue. This is an implementation of the Queue interface in which the remove() operation removes an element that is chosen uniformly at random among all the e...
why would this not work, and if so what does it look like fixed import java.util.Stack; public class EvaluateString { public static int evaluate(String expression) { char...
I need help implementing these 8 simple functions as follows in academics.js: The 8 functions I need help with are: academicCreate, courseCreate, academicDetails, courseDetails, academicsList, cours...
ASAP URGENT PLEASE!!!!!! Help me to finish my exam Fast please! . Canvas X D Question 14 5 pts Give the output of the following program, it has two outputs. All the outputs are comparisons, so th...
ASAP URGENT PLEASE!! JUST HAVE 9 MIN LEFT TO FINISH EXAM. Please send me the code fast... . X U @ B Q B D Question 20 15 p If we want to define a customized exception which contains a java.util.Da...
4. Create a Course class. At the top of the source code, add lines of comment to show your name and date of writing the code. Then, make it part of the your_lastname.your_firstname package using a pro...
package week_4; import static input.InputUtils.*; /** * A first prototype of a program that plays a simplified version of the children's card game Go Fish against you. This version is based fr...
Urgent please!! Just 10 min left to finish the exam I am sorry if the question is little blur . X U @ B Q B D Question 20 15 p If we want to define a customized exception which contains a java.ut...
URGENT HELP PLEASE!!!!! I JUST HAVE 26 MIN LEFT TO FINISH EXAM. . ServerCloneException a checked or unchecked exception? O checked O unchecked D Question 4 5 pts Recall that Cloneable is an interfac...
import com.google.gson.Gson; import org.apache.pdfbox.pdmodel.PDDocument; import org.apache.pdfbox.text.PDFTextStripper; import java.io.File; import java.io.FileWriter; import java.io.IOException; imp...
Example of program (JAVA) to read your initials and then print them in reverse. to which they were read. That is, if you read A B. C. The program will print C. B. A. How you can read variables of...
Example of program (JAVA) to read your initials and then print them in reverse. to which they were read. That is, if you read A B. C. The program will print C. B. A. How you can read variables of...
%Your first and last name: %Your 810/811 number: %Lab 06 %Your task for this lab assignment is to correctly implement %the functions called by typeofmatrix: % issquare, isdiagonal, isidentity, % is...
Implement the class and methods according to the UML and specifications below. Part 1 -Implement Product.java and ProductTest.java The Product class models an individual item type in a vending machine...
Design a flowgorithm that Asks the user to enter the number of books that they have purchased this month. Displays the number of points awarded. If the user enters a value less than 0, it will display...
Example of program (JAVA) to read your initials and then print them in reverse. to which they were read. That is, if you read A B. C. The program will print C. B. A. How you can read variables of...
Please Help me!!!. Project #6 Geocoded data and Graduated Symbols Map As discussed in GIS, Geocoding is the process of transforming a description of a location - such as a pair of coordina...
Problem Description Using Node, Express, and Handlebars, create a server-side application that enables a user to rent items from a store. The webpage consists of three pages: 1. Home Page: Displays ...
Java 1.a Provide a server-side function the processes message commands like roll and broadcasts the result to all clients roll will return a random number between 0 and X. You define / provide the X v...
What will this pseudocode display ? Declare integer N, X, i, num Display "How many numbers ?" Input N Display "Enter number" Input num X = num For (i=2; i<=N, i++) { Display "Enter number" Input nu...
try-with-resources statement, we should use: ... // additional code omitted 1 public static void main(String[] args) { 2 FileOutputStream fileStream = null; // need to be closed 3 ...
The intended purpose of the following module is to determine whether the value parameter is within a specified range. The module will not work Module checkRange(Integer value, Integer lower, Intege...
with java please Conversion Program a program that asks the user to enter a distance in meters. The program will then pre-sent the following menu of selections: 1. Convert to kilometers 2. Convert t...
Java coding please. I tried and didn't get it right. Present Value Suppose you want to deposit a certain amount of money into a savings account, and then leave it alone to draw interest for the next 1...
i am trying on my own but error came up. need help with java, please. Test Average and Grade help me with java for program that asks the user to enter five test scores. The program should display a ...
NEED HELP WITH THE SOLUTION TO THIS GROCERY JAVA PROBLEM: /** * A class for a grocery store. Complete the following tasks: * * - Implement a constructor that takes in initial values for each item t...
/** * A class for testing static variable usage and method overloading. You should complete * the following: * * - Implement two constructors, one that takes in a string and a default constructor. * B...
In Javascript; Implement a class Student. A student has a name and a total quiz score. Supply an appropriate constructor and methods getName(), addQuiz(int score), getTotalScore(), and getAvera...
// return true if the even indexed elements are strictly increasing public boolean evenIndicesIncreasing () { Node x=first; if (x== null || x.next== null ) { return true ; } if (x.next.next!= null ) {...
on the left is the task I need help with. The stub code on the right is empty and has to be completed. How do I implement the function holidaysInRange and the main() function below according to the sp...
Solve the following problem: Using Eclipse Java develop a program that asks the user to enter the length of sides for one or more squares. The user indicates the end of the input by entering a negativ...
Security models of control are used to formalize security policy by enforcing integrity, confidentiality, or other controls. Below are some of the common security models (CISSP Exam Cram: Security Arc...
You only have to do the ArrayStringList . How to Download the Project On Odin, execute the following terminal command in order to download the project files into sub-directory within your present wor...
https://drive.google.com/drive/folders/15ZoTB2P-c6DAtsMW6Pmc_4X55UeZ7WCL?usp=share_link https://ds.cs.rutgers.edu/assignment-ru-kindergarten/ The first link should bring you to all the files you need?...
The following program takes a positive integer n and displays a triangle of stars with n lines. Use the sample runs to get the specification of the triangle. . + The following program takes a posi...
Can I have some assistance with this program? . Program 2: CSCI 111 — Spring 2023 Let's play the lottery! For program 2, you will write a program to play the lottery by prompting the user for a ...
I need help with creating an algorithm that detects whether a given array is sorted into ascending order. Create a Java method that implements your algorithm. You can use your method to test whether a...
Go to the C# compiler at this link: W3Schools Tryit EditorLinks Write code to run a simulation in which the lockers are represented by a boolean array of length 100, where false equates to clos...
How can this be done?>. Make a simple function called greet that returns the most-famous "hello world!".. public class HelloWorld { 2 // Write a public static function 'greet' that return...
Here is the MyLinkedBag class: public abstract class MyLinkedBag<T> implements MyArrayBagInterface<T> { private Node<T> firstNode; private int numNodes; public MyLi...
public interface MyArrayBagInterface<T> { public int getCurrentSize(); public boolean isEmpty(); public boolean add(T newEntry ); public T remove(); public boolean ...
Data mining is used by everyone who wants to learn more about their customers or members. It helps people make decisions about what to sell or what to promote. This assignment is to program using mach...
Hi need help editing my code so it can do what the instructions are asking. Below I have provided my code that needs to be edited. MY CODE: import java.util.ArrayList; class MyList <T extends Nu...
Java Programming help. I would really appreciate an explanation of each line of code so that I can solve similar types of problems. A program that will test the random generator in several ways. How w...
In your course application project, identify where you can use a Java interface to define some common behaviors (methods) that multiple classes must implement differently. Define these abstract meth...
. The second project involves completing and extending the C++ program that evaluates statements of an expression language contained in the module 3 case study in the week 5 module reading. The skel...
In your course application project, identify where you can use a Java interface to define some common behaviors (methods) that multiple classes must implement differently. Define these abstract method...
. Show the graph that corresponds to the matrix in the first problem assuming the rows and columns correspond to the vertices a, b, c, d and e. Show its condensation graph, renaming its vertices. De...
How to create a class that simulates an alarm clock? This clock tracks the time in military time. Hours range from 0 to 23. Minutes range from 0 to 59. Hours and minutes are represented a...
I am getting this error when running this code below and can't work out how to fix it. Can i have help with this please? Error message is - A StringIndexOutOfBoundsException was thrown: String inde...
Question 1 Which of the following can have non-static attributes? Group of answer choices An abstract class neither of them both of them An interface Question 2 Which of the follo...
DETAILS To better prepare you for assignments in more advanced courses, specific step-by-step, method headings, class names, and the like have been omitted. What remains is a general description (you ...
Add a user-defined exception that can be thrown by one of the methods as part of the validation or error checking. The main method should then make an instance of the class and call the method in such...
write java code, just test in160.txt in160.txt: 1768 3834 8729 7465 3878 2013 8701 2648 9885 7010 8385 531 3769 3127 8079 6971 2055 6762 4005 2145 8701 3875 3365 9226 7906 4768 3850 9250 8121 85...
question 1 In Python, which of the following is the correct way to check if x has the value 2? Question 1 options: a) x = 2 b) x == 2 c) x is equal to 2 d) None of the above ...
solve everything in comments in java. thanks public class DNSClient{ public static void main(String[]args) throws UnknownHostException, IOException{ //Change the host S...
solve everything in comments in java. thanks public class DNSClient{ public static void main(String[]args) throws UnknownHostException, IOException{ //Change the host S...
Use the binary search algorithm in your solution. Write code to read a dictionary from a file, then prompt the user for two words and tell the user how many words in the dictionary fall between those ...
Please help with the java question below. Do not draw UML. Show Output . *13.7 (The Colorable interface) Design an interface named Colorable with a void method named howToColor (). Every class of a ...
Write a program that compares two college applicants. The program should prompt for each student's GPA, SAT, and ACT exam scores that they receive and report which candidate is more qualified on the b...
Write a program to read in the first name, last name, hours worked, hours over time and hourly pay rate and computes and displays their regular pay, overtime pay, gross pay, federal tax deducti...
Write code to run a simulation in which the lockers are represented by a boolean array of length 100, where false equates to closed and true equates to opened. -All 100 boolean values in the array sta...
The question is compelete. Stock Portfolio Application Assignment Requirements Please read through the entire project requirements and use case to understand the project requirement. You will be...
Write a program that takes in an integer in the range 11-100 as input. The output is a countdown starting from the integer, and stopping when both output digits are identical. End with a newline. Ex: ...
How do I add encapsulation to a java class to include making all attributes private, adding constructor, and adding get and set methods? The main method should have an instance of the class and demons...
You are provided an HTML file (index.htm) that contains a <script> element containing JavaScript. Notice that the HTML portion of the file contains a textbox and two buttons; one button labeled ...
Using the matrix in the previous problem show the final result of executing Floyd's algorithm on that matrix to produce a matrix containing path lengths. Matrix from previous problem is below ...
Algorithm should return edit distance between two input strings. s1 and s2. public int edit (String s1, String s2){ int len1 = s1.length; int len2 = s2.length int m[][] = new int = [len1+1] [length2 +...
. Points: 0 /20 Lecture Video (Link, please click). Introduction to Insertion Sort Sure, I can help you with that. Insertion sort is a simple and adaptive sorting technique that works by inserting e...
I need help understanding and writing a code for this assignment. This assignment is for somebody to manage their record collection, because vinyl is king. After the user enters how many records are...
8. The toString method returns a string representation of a JSON object that contains details of the Cylinder object. Use these names in the JSON object: Radius, Height, Base, Volume, Lateral, and ...
Use JDBC to retrieve information from the database Use Java POJO to map to the correct object. Use best practices for naming conventions, packaging structure, and code style. https://drive.google.c...
Java Objective: Make a program in which the user can manage a collection of tasks. Each task has an associated action a priority. The tasks must be organized into a collection of different lists based...
The following Point class has several errors; some are syntax errors and some are incorrect behavior. Find and fix them all. Java only public class Point { int private x; // Each Point...
Java Objective: Make a program in which the user can manage a collection of tasks. Each task has an associated action a priority. The tasks must be organized into a collection of different lists based...
on the left is the task I need help with. The stub code on the right is empty and has to be completed. How do I implement the function holidaysInRange and the main() function below according to the sp...
package homework; import java.util.Arrays; import algs41.Graph; import algs41.GraphGenerator; import stdlib.*; /** Expand this comment block * * Your name goes here: * * Delete one of the...
CS A: 01.14 Discussion-Based Assessment 1. How does the primitive data type such as int or double impact arithmetic? 2. Describe what happens when the division and modulus operators are used with inte...
Design a Ship, CargoShip and CruiseShip class being mindful of the behavior of each. Demonstrate the classes in a program that has a Ship array. Assign various Ships, CruiseShip, and CargoShip to the ...
Would you be able to provide some guidance? I am stuck and unsure how to execute this. My HTML and JS code is attached below. =================== Here is the directions of the assignment ===========...
package LL; public class newLL { private Node head; public class Node { private String name; private int DrewID; private Node next; // constructor for a Node public Node(String name, int ...
Hello, I am currently doing a timing test for my merge sort method but the time that is returned is very inaccurate. I believe it is something wrong with my timing test that I am doing. This is my tim...
so when i test my code shows that please help me fixed please org.junit.ComparisonFailure: Searching for a country code that is not in the map should return the exact string "Code not found"...
can you help me fixed these when I run the test for the program shows me that please thanks java.lang.AssertionError: getKitchenColor should return the value for the key "Kitchen" Expected :Light ...
she stand naked on the main bridge of the derelict spaceship. Flickering lights from the consoles illuminate what look like remains of a birthday party organized eons ago. Under one of the wrinkled he...
This is my script.js Could someone please help me add the if function to my code so that it displays the output that are below 32 degrees fahrenheit with the message "It is -x degree celsius which is ...
Tanya a human? Yeah, right," the vile creature laughed. "You think a human could survive drinking that much milk and eating that many cookies in one night? No, she is a Hyperborean. Her kind evolved i...
How do I do up a function called checkPassword in java script where it checks the strength of the password using the following conditions listed below: . Interface: Functions Name 8!. Description Pa...
please use jgrasp java.. Part 1 : Linked List Classes . U Introduction ' You are going to write a linked-list class. You will use this again in the future. So, do a good job on it, or you will hurt yo...
Hello, I am unsure why my quicksort method is not working right. This is the test that I am currently trying to run. @Test public void quicksortMiddlePivotTest() { ArrayList<Integer> originalArr...
make a Java program that, for a given undirected graph, outputs: the vertices of each connected component. The programs should take inputs from a file via the command line with the following structure...
Exercise 7.13 JHTP (Date Class): Make a class called Date that includes 3 instance variables—a month (type int), a day (type int), and a year (type int). Provide a constructor that initializes t...
Hello, I need help with this Java assignment. All required information is given. Inputs and Outputs are here in the link: https://drive.google.com/drive/folders/1jUdef_MdHtM4up1cElwE5FdgMPD5V6I7?usp=s...
HOMEWORK 4 JAVA Q1 . Create Java class to find the difference between the sum of the cubes of the first one hundred natural numbers (1 to 100) and the cube of the sum of the first 100 natural nu...
A \consonant\ in a word is a letter other than A, E, I, O or U, and other than Y preceded by a consonant. (The fact that the term `consonant' is defined to some extent in terms of itself does not make...
Costco has received the following demands for a product this year: Month 1 2 3 4 5 6 7 8 9 10 11 12 Demand 300 700 800 900 3300 200 600 900 200 300 1000 800 Suppose ordering cost (OC) is $504 and hold...
Help me with the methods marked ToCompute . Important info: You may add additional instance methods to the SocialNetwork class to facilitate completing the ToComputes * You may NOT add any additional ...
Help me with the methods marked ToCompute . Important info: You may add additional instance methods to the SocialNetwork class to facilitate completing the ToComputes * You may NOT add any additional ...
Help me with the methods marked ToCompute. Important info: You may add additional instance methods to the SocialNetwork class to facilitate completing the ToComputes * You may NOT add any additional i...
Help me with the methods marked ToCompute. Important info: You may add additional instance methods to the SocialNetwork class to facilitate completing the ToComputes * You may NOT add any additional i...
The provided Person class implements the Comparable interface meaning that the Person class has a compareTo() method which returns an integer indicating whether the Person object is less than, equal t...
Re-write the lab such that the program still accepts 10 int inputs, but uses 3 ArrayLists for evens, odds and negatives. Output the 3 lists after the 10th int is entered. Notes: The lists do NOT have ...
in Java. Make 2 classes WrapperShallow and WrapperDeep. Each class shallow and deep are simply wrapper classes to hold a private array variable. int [] a; The default constructor for each class...
please use jgrasp java Help needed. Part 1 : Linked List Classes . U Introduction ' You are going to write a linked-list class. You will use this again in the future. So, do a good job on it, or yo...
Go to the sp_layout.css file and then to the Window and Body Styles section. Create a style rule for the html element that sets the height of the browser window at 100%. Create a style rule for the pa...
1. Determine the value for the following recursive method when x = 19: 9 4 -5 -4 2 2. Determine the value for the following recursive method when x = 15: 6 3 8 -2 15 3. Determine th...
Design a class to define a student object. Instance variables are needed for the student name and five quiz scores. A constructor is needed to provide a way to define a student object and initialize t...
Please help me understand this problem Instructions: Design a mock election project to demonstrate traversal algorithms, using the results of a mock election with an arrays and ArrayList. Design a ...
If you were to decide you wanted to work as a software engineer, would you want to build applications that are sold publicly or are a part of a company's product, where your users are the general p...
Modify your FutureDay3 program to use a switch statement instead of multi-way if-else statement. The input and output remains the same. Add input validation to make sure the number they enter is in th...
I need a detailed explanation for this code, Especially, how to avoid visited count, thank you. . Write a method countArray that takes an array of integers as a parameter. The method checks the ...
UnknownManfactureDate: if manufacture date unknown use: "1000-01-01T00:00:00Z" per specification 3 below. Error: the following ADA has an invalid manufacture date of <abcd>:<ADA> ...
Previous
1
2
3
4
5
Next