String remove, String revers
Q: Perform the following number conversion ( 214)10 into ()6 and fill in the blank with the final an...
A: In this question, we are asked to convert from base 10 to base 6 Given: ( 214)10
Q: What are the advantages of using a modem? Differentiate between a modem and a router.
A: A modem is a networking device that modulates and demodulates signals in order to process data. A mo...
Q: Explain how caching is used in Web access in two different ways.
A: Introduction: Web caching is the process of saving data for later use, such as a copy of a web page ...
Q: Common mistakes that often observe in models and their formula include the following, except Utiliz...
A: here we have an option that suits to the criteria which doesn't belong to Common mistakes that often...
Q: 5.7 Clone of LAB: Arrays: Output numbers in reverse
A: Note: Programming language is not mentioned so I am doing in Java In this question, we are asked to ...
Q: 2. 2. Write HTML code to create a web page that contain an image at the center of the page. 3. 3. Wr...
A: 2. Code: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /...
Q: Given the following propositions: p: Shanon reads Readers Digest q: Shanon reads Cleo r: Shanon read...
A: v represent or ʌ represents and/but ~ represents not These symbols are used to form the symbolic fo...
Q: Provide a concrete example of inter-process communication using pipes (write a small piece of unix c...
A: The answer for the above given question is given below:
Q: To bond ports between a switch and a busy server, what protocol is most commonly used?
A: Link Aggregation Control Protocol (LACP )is used to bond ports between a switch and a busy server.
Q: Consider the function below written in Python3: def foo(a, b=[1]): if a <= 1: return b b_new = [b[i]...
A: SUMMARY: -Hence, we discussed all the points.
Q: 't missing anything before implementing this. Which of the following statements is true about what M...
A: given - Megann Foxx wants to implement internet telephony via VoIP for her business. Megann is askin...
Q: ual testing?
A: given - What part does documentation play in manual testing?
Q: When does Oracle 12c construct an index automatically for a table?
A: Index Index on a table helps to access the data faster. Means, when search the data base table us...
Q: When someone pages you, what do you want them to say?
A: Explanation: Paging is copying a virtual page from the disk to a page frame in the main memory.
Q: Using an Insertion sort, identify what the first line is where there was an incorrect state change. ...
A: here we have given a detailed answer on saying the incorrect state change
Q: ency models for modern databases?
A: The manner and timing with which a successful write or update is reflected in a subsequent read oper...
Q: What is the maximum latency in a client-server game, and how does it relate to the maximum latency i...
A: Introduction: Latency is a more technical name for lag, which occurs when there are reaction delays ...
Q: Write a Java program to print the content of linked list using the Iterator object.
A: Iterator - Iterator is basically used to retrieve an element one by one. You can use an iterator to ...
Q: What does the acronym FDDI signify in computer science?
A: Introduction: Fiber Distributed Data Interface (FDDI) is a local area network data transfer standard...
Q: re the functions of the "edit" menu comma
A: Below the functions of the "edit" menu commands
Q: When should you opt for manual testing over automation testing?
A: Solution:
Q: What is the difference between Apache Spark and Hadoop?
A: Apache web servers:- Apache web servers are acted as the main driving force behind the web expansio...
Q: Apply quickselect to find the median of the list of numbers 17,9, 5, 12, 20, 30, 8. Show the procedu...
A: Find median from the given list of numbers by quickselect given list = [17, 9, 5, 12, 20, 30, 8] Med...
Q: Create a flowchart, algorithm and C++ program. 18. identify if the inputted letter is a Vowel or Co...
A: Given : Create a flowchart, algorithm and C++ program. Identify if the inputted letter is a Vowel or...
Q: Which of the following is printed to standard output when the following expression is executed fprin...
A: The Syntax of fprintf() is wrong in the given question so it won't print any options which are given...
Q: Why is ARP so vulnerable to being used in a denial-of-service attack because it has a certain charac...
A: Introduction: A Denial-of-Service (DoS) attack is meant to shut down a machine or network, making it...
Q: 3. Display the sum of 28 + 2, using two variables: x and y. int y = 2; System.out.println (x + y); %...
A: Answer - int x = 28;
Q: What role does SEH play in covert flow control?
A: Introduction: The Structure Exception handling is abbreviated as SEH. Structured exception handling ...
Q: Expand A + BC' + ABD' + ABCD to minterms
A: we know minterms into SOP: =========================================================================...
Q: Develop the Verilog Code to construct a Parallel-Access Shift Register, provide simulation code and ...
A: The design of the shift register comprises of five input and single n-bit output. The design is prog...
Q: ort DNS records into categories. Explain why each of them is utilised and elaborate briefly on each ...
A: Introduction Give types of DNS records and elaborate each with an example Is it possible for an org...
Q: Given: Consider the function below written in Python3: def foo(a, b=[1]): if a <= 1: return b b_new ...
A: Given: Given the function of the code in python 3 We have to answer Worst case time complexity of...
Q: Question2: Redo the last Question by separating specification from implementation (slide 31). in you...
A:
Q: Type two statements. The first reads user input into person_name. The second reads user input into a...
A: HI THEREI AM ADDING ANSWER IN PYTHON BELOWPLEASE GO THROUGH ITTHANK YOU
Q: Assume that n = 8 and the observations are X1 = 1.01 X2 = 1.02 X3 = 1.19 X4 = 1.19 X; = 1.28 X6 = 2....
A: It is defined as the expectation-maximization algorithm that is an approach for performing maximum l...
Q: Write a program in Java to take an infix mathematical expression. The expression will contain singl...
A: The infix and postfix expressions can have the following operators: '+', '-', '%','*', '/' and alpha...
Q: mpiler, the one that we use for our course. The program will need to calculate the final mark and co...
A: Write a ‘C++’ program (capable of being compiled on any standard ‘C++’ compiler andin particular Blo...
Q: What are the Consequences of Virtual Reality Use?
A: Answer:
Q: If you select cell A1 and type =A1 in it, this would create an Excel ___________. Group of answer c...
A: Answer :
Q: Find the power set of {apples, oranges}.
A: Here we have to find the power set of {apples, oranges}
Q: Q1- Write a matlab program to print the name of the day depending on the entered number (1.. 7), use...
A: day = input("Enter day number: "); % Get the input switch(day) % switch based on day case 1 % for da...
Q: Student (snum: integer, sname: string, major: string, level: string, age: integer) Class (cname: st...
A: CREATE TABLE student( snum INT, sname VARCHAR(10), m...
Q: How many variables are recognized as categorical variables by R? A.) 9 B.) 8 C.) 7 D.) 6
A: 9 variable are recognized as categorical variables by R.
Q: Write a program in java to input 5 numbers from keyboard and find their sum and average.
A: The Answer is
Q: Is an incubator the best solution for start-ups to find funding? Why or why not?
A: Please upvote me please. I need it badly. I am providing you the correct answer below.
Q: A known distribution company intends to reward it deserving employees with a bonus only for sales ag...
A: Consider the data in excel file. NAME as column A AREA as column B POSITION as column C SALES as co...
Q: Describe the key characteristics of data. What is their function in computer security research?
A: Introduction: The purpose of computer security (cybersecurity), cybersecurity (cybersecurity), or in...
When testing this java program I get a java.lang.NullPointerException for 3 sections of the function, specifically String remove, String reverse and String filterLetters
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images
- In Java Add the following to the package below: 1.for or for...each or while loops. 2.Arrays 3.default, no-args and parameterized constructors. int numberOfPhotos; // photos on rolldouble fStop; // light let it 1.4,2.0,2.8 ... 16.0int iso; // sensativity to light 100,200, 600int filterNumber; // 1-6String subjectMatter;String color; // black and white or colorString location;boolean isblurry;public String looksBlurry(boolean key) {if (key == true) {return "Photo is Blurry";} else {return "Photo is Clear";}}public void printPhotoDetails(String s1) {Scanner br = new Scanner(System.in);String subjectMatter = s1;System.out.println("Data of Nature photos:");System.out.println("Enter number of photos:");numberOfPhotos = br.nextInt();int i = 1;while (true) {System.out.println("Enter Filter number of photos" + i + ":");filterNumber = br.nextInt();System.out.println("Enter colour of photo" + i + ":");String color = br.next();System.out.println("Enter focal length of photo"…Create an implementation of your Range abstract data type called WordRange. When you are finished, your range should work in a Java for each loop like so: // prints "Hello," and "World!" for(String word : new StringRange("Hello, World!")) { System.out.println(word); }Implement your own indexOf(String s) and lastIndexOf(String s) methods without using the built-in ones available in Java String class. Complete the following program://course: CSC190//project: Lab 12//date: (today’s date)//author: (your name)//purpose:import java.util.Scanner;class MyString {String s; //default constructor which sets s to a null string //your code here //additional constructor which sets s to the string passed from the caller //your code here //get and set methods for s //your code here //return the index within s of the first occurrence of str. //return -1 when str is not found on s. //if s = "aabababb", s = "aba", return 1 //if s = "aabababb", s = "abaa", return -1 int indexOf(String str) { //your code here} //return the index within s of the last occurrence of str. //return -1 when s is not found on str. //if s = "aabababb", s = "aba", return 3 //if s = "aabababb", s = "abaa", return -1 int lastIndexOf(String s) { //your…
- I need to write a java program using these requirements. This is the code I have so far, but Im not sure if it's correct. import java.io.File;import java.io.FileNotFoundException;import java.util.LinkedHashSet;import java.util.LinkedList;import java.util.Scanner; private class Movie { public static void main(String[] args) {// Create LinkedListLinkedList<String> movies = new LinkedList<>();// Create HashSetLinkedHashSet<String> moviesTitle = new LinkedHashSet<>();// read file name from userScanner input = new Scanner(System.in);String fileName = input.next();try {// create an object of ScannerScanner file = new Scanner(new File(fileName));// iterate each line in the filewhile (file.hasNextLine()) {String data = file.nextLine();movies.add(data);String[] dataArray = data.split(",");moviesTitle.add(dataArray[1]);}} catch (FileNotFoundException e) {e.printStackTrace();} // format each linefor (String title : moviesTitle) {// print titleSystem.out.printf("%-44s",…Can I get GUI code for this These is the buttons that you need to use // Button addd = new Button("A + B");Button sub = new Button("A - B");Button mul = new Button("A * B");Button dec = new Button("Dec");Button fac = new Button("x!");Button gcf = new Button("GCF"); // This is the code package prog2;import java.math.BigInteger;public abstract class Biginteger extends Frame {static BigInteger a;static BigInteger b;public Biginteger(BigInteger a, BigInteger b) {this.a = a;this.b = b;}@Overridepublic String toString() {return "Biginteger{" +"a=" + a +", b=" + b +'}';}//addition methodstatic BigInteger addbig(BigInteger a, BigInteger b){return a.add(b);}//subtraction methodstatic BigInteger subtract(BigInteger a, BigInteger b){return a.subtract(b);}//multiplication methodstatic BigInteger multiply(BigInteger a, BigInteger b){return a.multiply(b);}//division methodstatic BigInteger divide(BigInteger a, BigInteger b){return a.divide(b);}//modulous methodstatic BigInteger…Add a void testOverriding() method to the SimpleGeometricObject class. Make it print“This is the testOverriding() method of the SimpleGeometricObject class”. has code in link but also picture of code below https://liveexample.pearsoncmg.com/html/SimpleGeometricObject.html
- (in java) add a part where you print user information and update the continue watching list in program 2 Program 1: class Netflix {public String movies[] = new String[10];public String trendingTop5[] = new String[5];public String continueWatching[] = new String[5];public String username;public String password;private boolean isAuthenticated;public double balance;public int subscriberSinceYear;public void logininfo() {Scanner input = new Scanner(System.in);System.out.println("Enter the username");String username = input.nextLine();System.out.println("Enter the password");String password = input.nextLine();boolean isAuthenticated = true;System.out.println(isAuthenticated + " , You have successfully logged in ");System.out.println();}public void trendingList() {Scanner input = new Scanner(System.in);String[] items = new String[5];System.out.println("Enter the top 5 trending item of the week");int i;for (i = 0; i < 5; ++i) {items[i] =…In Java, Write an application that reads a line of text, tokenizes the line using space characters as delimiters and outputs only those words beginning with the letter "b". JavaI'm having trouble to compile and run this Java code in visual studio code as there's only an error in the main function. import java.util.HashMap; import java.io.*; public class CardPointsList { static HashMap<String,Integer> Code = new HashMap<>(); static HashMap<Character,Integer> Order = new HashMap<>(); static String[][] hand= {{ "c5","s6","sK","dK","dA"},{"s7","s4","dJ","sA","h5"},{"sQ","d3","c9","hK","d5"}}; static int[] scores={0,0,0}; public static void sortHand() { String temp; for (int h=0;h<3;h++) {for (int i=0;i<5;i++) { for (int j=i+1;j<5;j++) { if (hand[h][j].charAt(0) < hand[h][i].charAt(0)) {temp = hand[h][j]; hand[h][j] = hand[h][i]; hand[h][i] = temp; } else if (hand[h][j].charAt(0) == hand[h][i].charAt(0)) { if (Order.get(hand[h][j].charAt(1)) < Order.get(hand[h][i].charAt(1))) {temp =…
- Continuing from the example, modify the program so that it outputs the average grade in each course, and also shows which course has the highest average grade. import java.util.Scanner; public class Main { publicstaticvoid main(String[] args) { Scanner s = new Scanner(System.in); int numCourses, numTests; double[][] testScores; System.out.print("How many courses are you taking? "); numCourses = s.nextInt(); testScores = new double[numCourses][]; // allocate an array of references to 1-D arrays (rows) for(int i = 0; i < numCourses; i++) { System.out.print("How many tests are in course number " + (i+1) + "? "); numTests = s.nextInt(); // allocate this row: a 1-D array of doubles: testScores[i] = new double[numTests]; } for(int courseId=0; courseId < testScores.length; courseId++) { for(int testId=0; testId < testScores[courseId].length; testId++) { System.out.print("What was your grade on test " + (testId+1) + " for course " + (courseId+1) + "? ");…Signature will be public static void changeLetter(StringBuilder sb, String Letters) Make it so any letters from the second parameter found in the String Builder are converted to uppercase. Write in Java and use testcase examples as a reference.Write an application that reads a five-letter word from the user and produces every possible three-letter string that can be derived from the letters of that word. For example, the three-letter words produced from the word “bathe” include “ate,” “bat,” “bet,” “tab,” “hat,” “the” and “tea.”