this needs to be corrected The file provided in the code editor to the right contains syntax and/or logic errors. In each case, determine and fix the problem, remove all syntax and coding errors. java import java.util.Scanner; public class DebugTh
Q: change this java code into a pseudo code
A: This code is to find whether password is valid or invalid that is entered by user.If it is valid it…
Q: This is a debugging problem I am stuck on - The files provided in the code editor to the right…
A: // Looks up author of selected booksimport java.util.*;class DebugNine1{ public static void…
Q: This is a debugging question - The files provided in the code editor to the right contain syntax…
A: Actually, debugging is identify and rectify the errors.
Q: public abstract class DebugBoat { String boatType = new String(); int passengers String…
A: public abstract class DebugBoat{ String boatType = new String(); int passengers; String power…
Q: Analyze the Python codes given below and write the output result of the program after executed the…
A: Below I have provided Python Programming. Also, I have attached the screenshot of the code and…
Q: Using methods, write a syntactically and semantically a correct Java program in the text field below…
A: Step 1 : Start Step 2 : Define the global variables num1 , num2 and num3. Set num1 = 0 , num2 = 1…
Q: 3. Write a Java program to print the pattern consistent with the progression: x xx xxx xxxx xxxxx…
A: According to the information given:- we have to create the number of star increasing patterns. x ,…
Q: Suppose we add a fixed amount of money into our bank account at the beginning of every year. Modify…
A: Code: import java.util.Scanner;/**This program computes the time required to double an…
Q: This is a debugging problem I am stuck on - The files provided in the code editor to the right…
A: // Application contains a starting list of three products for sale// The user is prompted for…
Q: What will be the output of the following Java code? And Explain.? class char_increment {…
A: Given Program:- What will be the output of the following Java code? And Explain.? class…
Q: The files provided in the code editor to the right contain syntax and/or logic errors. In each case,…
A: А Jаvа рrоgrаm саn be debugged simрly by right сliсking оn the Jаvа editоr сlаss file…
Q: can someone make a flowchart of this java coding import java.util.*; import java.lang.*; import…
A: Here, we have to draw a flowchart for the above java program.
Q: The files provided in the code editor to the right contain syntax and/or logic errors. In each case,…
A: 1. The first while-loop was not closed. 2. It will be java.lang.Math.random() instead of…
Q: This is a debugging question - The files provided in the code editor to the right contain syntax…
A: The correct code is: // DebugEleven1.java abstract class DebugBoat{ String boatType = new…
Q: public abstract class DebugBoat { String boatType = new String(); int passengers String…
A: public abstract class DebugBoat{ String boatType = new String(); int passengers; String power…
Q: Translate the following Java code into VM code. int positiveDivide(int a, int b) { int…
A: SOURCE CODE: VM Code:- int positiveDivide(int, int);Code:0: iconst_01: istore_32: iload_23: istore…
Q: This is a debugging question I am struggling with - The files provided in the code editor to the…
A: import java.util.*;import java.lang.*;import java.io.*; class DebugBook{ protected int pages;…
Q: Write the flowchart of this code import java.io.*; import java.util.Scanner; public class…
A: The flowchart is a pictorial representation of the problem-solving steps. The steps in the flowchart…
Q: Show the output of the following programs. (Hint: Draw a table and list the variables in the columns…
A: Given: Show the output of the following programs. (Hint: Draw a table and list the variables in the…
Q: Develop a Java program to use of Math Random function to roll the dice 100, 1000 times with sum of…
A: import java.util.*;public class Main{ // set the number of trials static final int no_Of_Trials = 3;…
Q: determine and fix the problem, remove all syntax and coding errors, and run the program to ensure it…
A: Error Correction Reason while(day > DAYS); while(day > DAYS) After while loop, don't…
Q: modify the java program below to use try-catch logic to detect input errors and display an error…
A: Given code: import javax.swing.*; public class Main { public static void main(String[] args) {…
Q: The files provided in the code editor to the right contain syntax and/or logic errors. In each case,…
A: Debugging: There are some syntax errors and methods with wrong syntax. The corrections are pointed…
Q: I need help with the part 3 of debugging and correction of program part so it can run properly. My…
A: Code: import java.util.Scanner; public class Lab4 { public static int max(int a,int b){…
Q: The files provided in the code editor to the right contain syntax and/or logic errors. In each case,…
A: Right code is: public class DebugSeven3{ public static void main(String[] args) { String quote =…
Q: lease provide the UML digaram for the following code below***
A: Note: As per the Bartley guideline you have not specified which question needs to be answered hence…
Q: 2. Write a program that asks the user to enter a year, and then displays whether that year is a leap…
A: As per our guidelins we are allow to provide only one solution, please upload rest of them sepratly…
Q: This is a debuggig problem I am struggling with - The files provided in the code editor to the…
A: import java.util.Scanner; public class DebugNine4{ enum Planet {MERCURY, VENUS, EARTH, MARS,…
Q: Convert this Java Program below into simplest form. It should still produce the same result as…
A: Your Java program is given below in easy form with a same output.
Q: Given a line of text as input, output the number of characters excluding spaces, periods, or commas.…
A: function main: START Read userText SET count =0. SET i=0. REPEAT STEP 5 to STEP 6 UNTIL…
Q: import java.lang.*; import java.util.*; public class MoneyInBank { public static void main(String[]…
A: For the above output, the answers should be:- Answer-1:- annualRate should be initialized with 0.05…
Q: Is this the correct Java programming code when repeat the images below using the text method of…
A: In the image Java code is given using swing for that you will get UI and in that, you have to put…
Q: Review Methods, Implement the following code, make sure it runs without errors. 3 import…
A: Solution: Java code to calculate sum of three numbers: Main.java import java.util.Scanner;…
Q: Please write the script and introduction for the program so that the number of words is between…
A: We need to write an introduction and functionality for the given program.
Q: Catch exceptions for array index out of bounds // or dividing by 0
A: Correct code: To get the correct output, we need to put all statements of try block within for loop…
Q: The files provided in the code editor to the right contain syntax and/or logic errors. In each case,…
A: we need to determine and fix the problem, remove all syntax and coding errors, and run the program…
Q: The files provided in the code editor to the right contain syntax and/or logic errors. In each case,…
A: The code has given
Q: Hi I am having some difficulties with this problem, I am not sure why my code is giving an incorrect…
A: After adding some code, I have provided JAVA CODE along with CODE SCREENSHOT and OUTPUT…
Q: Analyze the Python codes given below and write the output result of the program after executed the…
A: A class is a group of objects which have common properties. An object is an instance of a class. It…
Q: This is a debugging question - The files provided in the code editor to the right contain syntax…
A: The debug code is: // DebugEleven2.java abstract class DebugBoat{ String boatType = new String();…
Q: What type of input does the following program require, and in what order must the input be provided?…
A: what type of input does require
Q: This is a debugging question - The files provided in the code editor to the right contain syntax…
A: Actually, debugging is a identify and rectify the errors.
Q: Explain the purpose of everyline of this program. Source Code: import java.util.Scanner; public…
A: Here, I have to explain the above code with an explanation.
Q: The files provided in the code editor to the right contain syntax and/or logic errors. In each case,…
A: import java.util.Scanner; public class DebugFive3 { // DebugFive3.java // Determines…
Q: revise and show the output import java.util.Scanner; class Person { //declaring instance…
A: MODIFIED PROGRAM CODE: import java.util.Scanner;class Person { //declaring instance variables…
Q: This is the debugging problem. This is the question - The files provided in the code editor to the…
A: debugged program:- import java.util.*;public class DebugFive4{ public static void main (String…
Q: determine and fix the problem, remove all syntax and coding errors, and run the program to ensure it…
A: There are two mistakes in your code. Error Correct Code Reason while(userNum < MIN ||…
Q: Removing comments 2. Identifying built-in language constructs 3. Identifying loops and methods
A: solution in below step
Q: Write a java program to implement the following Shape Use Combobox to choose the shape n must be…
A: Answer : #include<graphics.h> #include<conio.h> void main() { intgd=DETECT, gm,…
Q: Whether it's true or not For example, we may select whether to enter or exit a specific…
A: Debugging is the process of detecting and removing of existing and potential errors in a software…
this needs to be corrected
The file provided in the code editor to the right contains syntax and/or logic errors. In each case, determine and fix the problem, remove all syntax and coding errors.
java
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 2 images
- This is a debugging problem I am stuck on - The files provided in the code editor to the right contain syntax and/or logic errors. In each case, determine and fix the problem, remove all syntax and coding errors, and run the program to ensure it works properly. This is the code - import java.util.*; public class DebugNine2 { public static void main(String[] args) { Scanner input = new Scanner(System.in); Movie[] movies = new Movie[8]; int i; String message, entry; movies[0] = new Movie("The Godfather", 1972); movies[0] = new Movie("The Good, the Bad, and the Ugly", 1966); movies[0] = new Movie("Pulp Fiction", 1994); movies[0] = new Movie("Shindler's List", 1993); movies[4] = new Movie("Casablanca", 1942); movies[5] = new Movie("Wizard of Oz", 1939); movies[6] = new Movie("Citizen Kane", 1941); movies[7] = new Movie("Some Like It Hot", 1959); System.out.println( "Sort Movies by\n(N)ame, or (Y)ear");…This is a debugging problem I am stuck on - The files provided in the code editor to the right contain syntax and/or logic errors. In each case, determine and fix the problem, remove all syntax and coding errors, and run the program to ensure it works properly. This is the code - // Looks up author of selected books import java.util.*; class DebugNine1 { public static void main(String[] args) { Scanner input = new Scanner(System.in); String[][] books = new String[6][2]; books[0][0] = "Ulysses"; books[0][1] = "James Joyce"; books[1][0] = "Lolita" books[1][1] = "Vladimir Nabokov"; books[2][1] = "Huckleberry Finn"; books[2][1] = "Mark Twain"; books[3][0] = "Great Gatsby"; books[3][2] = "F. Scott Fitzgerald"; books[4][0] = "1984"; books[4][1] = "George Orwell"; books[5][5] = "Sound and the Fury"; books[5][1] = "William Faulkner"; String entry, shortEntry, message ="Enter the…This is the debugging problem. This is the question - The files provided in the code editor to the right contain syntax and/or logic errors. In each case, determine and fix the problem, remove all syntax and coding errors, and run the program to ensure it works properly. This is the code given - // DebugFive4.java // Outputs highest of four numbers import java.util.*; public class DebugFive4 { public static void main (String args[]) { Scanner input = new Scanner(System.in); int one, two, three, four; String str, output; System.out.println("Enter an integer"); str = input.next(); one = Integer.parseInt(str); System.out.println("Enter an integer"); str = input.next(); two = Integer.parseInt(str); System.out.println("Enter an integer"); str = input.next(); three = Integer.parseInt(str); System.out.println("Enter an integer"); str = input.next(); four = Integer.parseInt(str); if(one…
- The files provided in the code editor to the right contain syntax and/or logic errors. In each case, determine and fix the problem, remove all syntax and coding errors, and run the program to ensure it works properly // Makes String comparisonspublic class DebugSeven1{public static void main(String[] args){String name1 = "Roger";String name2 = "Roger";String name3 = "Stacy";if(name1.equals(name2))System.out.println(name1 + " and " + name2 +" are the same");if(name1.equals(name3))System.out.println(name1 + " and " + name2 +" are the same");if(name1.equals("roger));System.out.println(name1 + " and 'roger' are the same");if(name1.equals("Roger"));System.out.println(name1 + " and 'Roger' are the same");}}This is a debugging problem that I am completely stuck on. This is the question - The files provided in the code editor to the right contain syntax and/or logic errors. In each case, determine and fix the problem, remove all syntax and coding errors, and run the program to ensure it works properly. This is the code - // DebugFive1 // Adds your lunch bill // Burger and hot dog are $2.59 // Grilled cheese and fish are $1.99 // Fries are 89 cents import java.util.*; public class DebugFive1 { public static void main(String args[]) { Scanner input = new Scanner(System.in); final double HIGH_PRICE = 2.59; final double MED_PRICE = 1.99; final double LOW_PRICE = 0.89; String usersChoiceString; int usersChoice; double bill; System.out.println("Order please\n1 - Burger\n2 - Hotdog" + "\n3 - Grilled cheese\n4 - Fish sandwich"); usersChoiceString = input.next(); usersChoice == Integer.parseInt(usersChoiceString);…Convert this Java Program below into simplest form. It should still produce the same result as indicated in the picture. CODES: import java.util.Scanner public class Main { public static void main(String[] arg){ //declaration String lname, fname, dtype, ltype; int dcode, lcode; double lfee, dfee, tfee; //assigning data dtype = "Special"; ltype="Citywide"; dfee=30.50; //input System.out.printf("\n"); Scanner in = new Scanner(System.in); System.out.printf("Lastname of Sender: "); lname = in.nextLine(); System.out.printf("Firstname of Sender: "); fname = in.nextLine(); System.out.printf("Deliver Code: "); dcode = in.nextInt(); System.out.printf("Letter Fee: "); lfee = in.nextFloat(); //compute tfee = lfee + dfee; //display System.out.printf("\n\n\n"); System.out.printf("Sender Name: %s %s \n", fname, lname); System.out.printf("Delivery Name: %d \n", dcode); System.out.printf("Delivery Type: %s \n", dtype);…
- The files provided in the code editor to the right contain syntax and/or logic errors. In each case, determine and fix the problem, remove all syntax and coding errors, and run the program to ensure it works properly. public class DebugBox { private int width; private int length; private int height; public DebugBox() { length = 1; width = 1; height = 1; } public DebugBox(int width, int length, height) { width = width; length = length; height = height; } public void showData() { System.out.println("Width: + width + " Length: " + length + " Height: "+ height"); } public double getVolume() { double vol = length + wdth + height; return vol; } }This is a debugging question I am stuggling with - The files provided in the code editor to the right contain syntax and/or logic errors. In each case, determine and fix the problem, remove all syntax and coding errors, and run the program to ensure it works properly. This is what I have so far - // Program prompts user to enter a series of integers // separated by spaces // Program converts them to numbers and sums them import java.util.*; public class DebugSeven2 { public static void main(String[] args) { String str; int x; int length; int start; int num; int lastSpace = -1; int sum = 0; String partStr; Scanner in = new Scanner(System.in); System.out.print("Enter a series of integers separated by spaces >> "); str = in.nextLine(); length = str.length(); for(x = 0; x <= length; ++x) { if(str.charAt(x) == ' ') { partStr = str.substring(lastSpace + 1, x);…Is this the correct Java programming code when repeat the images below using the text method of input and output? import java.util.Scanner; public class Main { public static void main(String[] args) { //scanner object Scanner scnr = new Scanner(System.in); String name,street,city,postalcode; //input System.out.print("What is your name? "); name = scnr.nextLine(); System.out.print("stret name "); street = scnr.nextLine(); System.out.print("City name "); city = scnr.nextLine(); System.out.print("Postal code "); postalcode = scnr.nextLine(); } }
- This is a debugging problem - The files provided in the code editor to the right contain syntax and/or logic errors. In each case, determine and fix the problem, remove all syntax and coding errors, and run the program to ensure it works properly. This is the code. I have fixed some of it but it still won't accept it - // Displays five random numbers between // (and including) user-specified values import java.util.Scanner; public class DebugSix4 { public static void main(String[] args) { int high, low, count = 0; final int NUM = 5; Scanner input = new Scanner(System.in); System.out.print("This application displays " + NUM + " random numbers" + "\nbetween the low and high values you enter" + "\nEnter low value now... "); low = input.nextInt(); System.out.print("Enter high value... "); high = input.nextInt(); while(low < high) { System.out.println("The number you entered for a high…**JAVA DEBUGGING** The files provided in the code editor to the right contain syntax and/or logic errors. In each case, determine and fix the problem, remove all syntax and coding errors, and run the program to ensure it works properly. public classDebugSeven3 { public static void main(String[] args) { String quote = "Honesty is the first chapter in the book of wisdom. - Thomas Jefferson"; System.out.println("index.of('f') is: " + quoteindexOf('f')); System.out.println("index.of('x') is: " + quoteindexOf('x')); System.out.println("char.At(5) is: " + quote.charAt(50)); System.out.println("endsWith(\"daughter\") is: " + quote.endsWith("daughter")); System.out.println("endsWith(\"son\") is: " + quote.endsWith("son")); System.out.println("replace('e', '*') is: ", quote.replace('e', '*')); } }This is a debugging question - The files provided in the code editor to the right contain syntax and/or logic errors. In each case, determine and fix the problem, remove all syntax and coding errors, and run the program to ensure it works properly. Code given - public abstract class DebugBoat { String boatType = new String(); int passengers String power = new String(); public FebugBoat(String bt) { boatType = bt; } public boolean equals(otherBoat) { boolean result; if((passengers == otherBoat.passengers) && (power.equals(otherBoat.power))) result = true; else result = true; return result } public String toString() { return("This " + boatType + "boat carries " + passengers + " and is powered by + power); } public abstract void setPower(); public abstract void setPassengers(); } // Creates and displays an array of boats - // some are rowboats; some are ocean liners import…