-
Go to http://condor.depaul.edu/~alarrain/csc211/debug.html
Download debugging programs for lab4. For each program Compile and Run. Correct any errors (Syntax or Logic)
- Write a program that gets a score from the user and prints out "you passed " if the score is greater than or equal to 60. If not, print out
"You failed" Use the Scanner class to get the input.
- Write a program that prompts the user to input a 4 digit integer and then outputs the number with the digits reversed.
EXAMPLE
Input 12345
Output 54321
Use a method from the String class.
- Write a program that inputs a SSN (no hyphens) and verifies if the number is 9
digits long. EX/
INPUT 12345678
OUTPUT Sorry not a valid SSN
INPUT 123456789
OUTPUT Correct number of digits
Use the length()
method from the String class.
Note if the input was the correct number of digits then the program would continue processing the data