Question
CalculatePay.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.
/*
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 \");
{
}
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started