Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(Here is DebugMe.java code) /* Name: FileName: DebugMe.java Assignment: Bonus Lab 1.1 Description: Correct the syntax errors in this program so that it will compile

image text in transcribed
(Here is DebugMe.java code)

/*

Name:

FileName: DebugMe.java

Assignment: Bonus Lab 1.1

Description: Correct the syntax errors in this program so that it will compile and run.

Place a line comment above or to the right of each line containing an error

describing what the error was and how it was fixed. For example, missing quotation added or misspelled word corrected.

*/

import java.util.*;

public class DebugMe

public static main(String args) {

Scanner input = new Scanner(System.in);

// Declare and initialize variables for age and name

System.out.println("Enter your name");

string name = input.nextInt( );

System.out.println(Enter your age: );

int age = keyboard.nextLine( );

System.out.Println(" Your name is + name + " and your are " + Age + " years old.");

system.out.pritnln("If you are reading this, then you have found all of the errors in this program");

System.out.println("and the last character on this line should be a backslash \");

{

}

Open the file DebugMe.java and correct the syntax errors so the program will compile and run. Place a line comment above or to the right of each line containing an error describing what the error was and how it was fixed. For example, missing quotation added or misspelled word corrected

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Relational Database Design With Microcomputer Applications

Authors: Glenn A. Jackson

1st Edition

0137718411, 978-0137718412

More Books

Students also viewed these Databases questions