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 am having issues fixing - // Start with a penny // double it every day // how much do you have in a 30-day month? public class DebugSix1 { public static void main(String args[]) { final int DAYS = 30; double money = 0.01; int day = 1; while(day > DAYS); { money = 2 * money; ++days; System.out.println("After day " + day + " you have " + moneyAmt); } } }
Q: I am trying to get this code to run and but the program calls an syntax error on the else if I…
A: note: I am the expert who provided this code to you. I again copied the code that you gave above and…
Q: So, apparently when I asked this before, I instead of actually getting an answer, I just got my own…
A: The above Java code was throwing an error due to the use of an assignment operator (=) instead of a…
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: Our system will automatically run your program several times, trying different input values to…
A: Given:
Q: I need this solved in java. The required testing inputs and their outputs are attached below. Here…
A:
Q: This is a debugging question I am stuggling with - The files provided in the code editor to the…
A: public class DebugSeven2{ public static void main(String[] args){ String str; int x;…
Q: This is a debugging question I am struggle with - The files provided in the code editor to the…
A: In "DebugTen1.java" file, The function name should be "main()", and not "mane()". The function…
Q: boolean isPassing = true; %3D false){ for (; isPassing; isPassing System.out.print("You are…
A: Given: Goal: We have to check the output of the given code.
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: 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: I’m Dr. Frankenstein, and I’ve just created an intelligent monster! It can even count numbers now…
A: NOTE - I have used the python programing language. Here I have taken input from the user and then…
Q: A twin is somewhat a pair of things that look exactly the same, whether in uppercase or lowercase…
A: #include <stdio.h> #include<string.h>int compare(char[],char[]); int main() {…
Q: // Converts a string to lowercase, and // displays the string's length // as well as a count of…
A: Introduction of Program: The Java Program converts a string to lowercase and displays the length of…
Q: debug my program? it's in Java. At line 108, I get the error “The field Person.age is not visible”.…
A: Error found while executing your program: - Explanation: - After executing the given program the…
Q: Below was the java code that i was hald done on it. in the java code, it supposed to count on min…
A: File name: “draft.java” import java.util.Scanner; public class draft { public static void…
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: Can you add class level comments, function level comments and inline comments In this line int…
A: In this line int I,n=0,s=0; they say the assigned value is not used can you fix that? I guess you…
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: can you please do some changes in the code and make this code unique and work better but give same…
A: P is Principal amount.R is rate per annum.T is time in years.
Q: The problem asks you to write a code to read the firstName, lastName, age, and weight of a person…
A: The problem asks you to write a code to read the firstName, lastName, age, and weight of a person…
Q: This is a debugging question I am struggle with - The files provided in the code editor to the…
A: Note : I have explained all the fixes made, in comments, right above the statements where the fix…
Q: This is the question: The Huntington High School basketball team has five players named Art, Bob,…
A: Note: Below is the required java program. Programming Approach: Importing necessary package.…
Q: In Python: What gets printed by excecuting the following code? def teststrings(): str1 = 'X…
A: def teststrings(): str1 = 'X University' str2 = 'Computer Science' print(str1[0].isupper())…
Q: Can someone just comment this program out? Please... explain what each line does or atleast for most…
A: Solution is given in next steps;
Q: The following Python Code is executed import datetime class Person(): def __init__(self, nm, yb):…
A: The Answer for the above question is as follows
Q: I have this problem and I keep getting a error. "ShoppingCartPrinter.java:29: error: reached end of…
A: Question: I have this problem and I keep getting a error. "ShoppingCartPrinter.java:29: error:…
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: Read the java program carefully, compile the program and understand the compilation errors. Don’t…
A: In the above code, width, height and depth are private member of class Box. Therefore, we can't…
Q: Please USE PYTHON Implement the design of the Pasta class so that the following output is…
A: 1) Below is python program to implement the design of the Pasta class so that the following output…
Q: This is a debugging question - The files provided in the code editor to the right contain syntax…
A: Given code: Errors: The semi colon is missing at the end of the statement at line number "5". The…
Q: Use the class provided, TestOverload Call printMax to print the highest of 33 and 89 Call printMax…
A: Program: public class TestOverload { 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: The code has given
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: Here is the question: The files provided in the code editor to the right contain syntax and/or…
A: public class DebugSeven4{ public static void main(String[] args) { String aString = "HELP!!…
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: There are two problems. One line of code needs changed and the way I'm running the code needs…
A: There are two lines in the code that needs to be changed: Change int result = addValues(args); to…
Q: I'm Dr. Frankenstein, and I've just created an intelligent monster! It can even count numbers now…
A: find your Code Below
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: this needs to be corrected The file provided in the code editor to the right contains syntax…
A: Required: this needs to be corrected The file provided in the code editor to the right contains…
Q: Hi, Im trying complete my lab for my programming class and im getting and error i cannot disifer.…
A: Although the code is working completely fine in my compiler, i have still updated the code. import…
Q: This is a debugging question I am stuck on - The files provided in the code editor to the right…
A: The code is debugged
Q: Can you add class level comments, function level comments and inline comments In this line int…
A: I have added all comments and solved all errors in step2.
Q: This question is related from my previous question, when I compile this code it gave me several…
A: In your program, there is one error and one exception. The error is “Cannot find the symbol Date”.…
Q: This is a debugging problem that I have changed some but still not getting it. This is the problem -…
A: Introduction of Program: In this Program, it is clear that if ( item <111) then the program will…
Q: So I have what I think the code would be but it doesn't like it. This is the question- Write a…
A: Hey, thank you very much for your question. As per your question, the information is gathered as…
Q: I am having issues on trying to get the profit this is the question- In the ChiliToGo program in…
A: The ChiliToGoProfit program will display the profit in Adult meals the profit in children meals…
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.
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images
- Instructions 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. An example of the program is shown below: Enter name Juan Hello, Juan! Task 1: The DebugThree3 class compiles without error. Task 2: The getName() method accepts user input for a name and returns the name value as a String. Task 3: The displayGreeting() method displays a personalized greeting. Task 4: The DebugThree3 program accepts user input and displays the correct output.Here 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. Here is the code given: // Program displays some facts about a string 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 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);…
- Problem: Bugs are simple creatures that only know how to walk towards other bugs. Bugs maintain information about their (x, y) position; by which it can tell if they are standing next to other bugs. Watch the following video: bug movement. Create a java project that simulate bugs movement. You need to write a class “Bug" that models a bug moving along a straight line and it can turn to change its direction counterclockwise (i.e. 90 degree to the left; north → west → south → east → north). In each move, its position changes by one unit in the current direction. Details of the "Bug" class is described below. Your simulator should read information of an unknown number of “Bug" objects from an input file called “Bugs.txt". Each line represents a bug and the initial position and facing direction of this particular bug. Keeping the first bug position as a reference the simulator should move the second bug next to the first bug forming a cluster and its final position and direction should be…A palindrome is a word or phrase that is identical when you read from forward or backward, such as the words “racecar” and “madam.” A standard palindrome is similar to a perfect palindrome, except that spaces and punctuation are ignored in a standard palindrome. For example, “Madam, I’m Adam” is a standard palindrome because the characters are identical forward or backward, provided you remove the spaces and punctuation marks. Write a PHP script that checks words or phrases stored in two separate string variables to determine if they are a perfect palindrome. In addition, see if you can modify the program to check for standard palindromes. create a web page with a text field and “Reset” and “Submit” buttons. When a user clicks on the submit button, show the standard and perfect palindromes of the string that was entered in the text field on the same page. Create a separate Index.html and php fileA palindrome is a word or phrase that is identical when you read from forward or backward, such as the words “racecar” and “madam.” A standard palindrome is similar to a perfect palindrome, except that spaces and punctuation are ignored in a standard palindrome. For example, “Madam, I’m Adam” is a standard palindrome because the characters are identical forward or backward, provided you remove the spaces and punctuation marks. Write a PHP script that checks words or phrases stored in two separate string variables to determine if they are a perfect palindrome. In addition, see if you can modify the program to check for standard palindromes. create a web page with a text field and “Reset” and “Submit” buttons. When a user clicks on the submit button, show the standard and perfect palindromes of the string that was entered in the text field on the same page.
- 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. // Program displays some facts about a string 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', '*')); } }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. // Application looks up home price // for different floor plans // allows upper or lowercase data entry import java.util.*; public class DebugEight3 { publicstaticvoidmain(String[] args) { Scanner input =newScanner(System.in); String entry; char[] floorPlans = {'A','B','C','a','b','c'} int[] pricesInThousands = {145,190,235}; char plan; int x, fp =99; String prompt ="Please select a floor plan\n"+ "Our floorPlanss are:\n"+"A - Augusta, a ranch\n"+ "B - Brittany, a split level\n"+ "C - Colonial, a two-story\n"+ "Enter floorPlans letter"; System.out.println(prompt); entry = input.next(); plan = entry.charAt(1); for(x =0; x < floorPlans.length; ++x) if(plan == floorPlans[x]) x = fp; if(fp =99) System.out.println("Invalid floor plan code entered")); else { if(fp…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. // Application looks up home price // for different floor plans // allows upper or lowercase data entry import java.util.*; public class DebugEight3 { publicstaticvoidmain(String[] args) { Scanner input =newScanner(System.in); String entry; char[] floorPlans = {'A','B','C','a','b','c'} int[] pricesInThousands = {145,190,235}; char plan; int x, fp =99; String prompt ="Please select a floor plan\n"+ "Our floorPlanss are:\n"+"A - Augusta, a ranch\n"+ "B - Brittany, a split level\n"+ "C - Colonial, a two-story\n"+ "Enter floorPlans letter"; System.out.println(prompt); entry = input.next(); plan = entry.charAt(1); for(x =0; x < floorPlans.length; ++x) if(plan == floorPlans[x]) x = fp; if(fp =99) System.out.println("Invalid floor plan code entered")); else { if(fp…
- This is a debugging problem that I have changed some but still not getting it. This is the 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 - // DebugFive3.java // Determines whether item number on order is valid // Over 999 invalid // Less than 111 Invalid // Valid and less than 500 - Automotive Department // Valid and 500 or higher Housewares Department import java.util.Scanner; public class DebugFive3 { public static void main (String args[]) { int item; String output; final int LOW = 111; final int HIGH = 999; final int CUTOFF = 500; Scanner input = new Scanner(System.in); System.out.println("Please enter item number"); item = input.nextInt(); if(item < LOW) output = "Item number too low"; else if(item…On Thursday, November 4, 2021, Big Man Games wrote: Computer programs are great at computing mathematical formulas. Once the formula is properly encoded you can use the code as much as you want without reprogramming it and you can share it with non-programmers without any trouble. This lab is an example of such a formula. Once you program it you won’t have to worry about the area of a circle again. Write and test a program that computes the area of a circle. This program should request a number representing a radius as input from the user. Use the formula 3.14 × radius2 to compute the area. Tip: There are a couple of ways to code an exponent. Look in the Operators unit for help (and you can’t use an x for multiplication). Tip: You will need to use the float data type to compute the remainder. The output should explain the results. Don’t just print a number. Tip: For your print statement you will need to use the comma, “,”, or plus, “+” symbols to stitch your output together. (“The…Here 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. Here is the code given: // Converts a string to lowercase, and // displays the string's length // as well as a count of letters public class DebugSeven4 { public static void main(String[] args) { String aString = "HELP!! I need to get 37 things DONE today!!"; int numLetters = 0; int stringLength = aString.Length(); System.out.println("In all lowercase, the sentence is: "); for(int i = 0; i < stringLength; i++) { char ch = Character.toTheLowerCase(aString.charAt(i)); System.out.print(ch); if(Character.isLetter(ch)) numLetters--; } System.out.println("The number of CHARACTERS in the string is " + stringLength); System.out.println(The…