Well, we can't do your homework for you. Put your code in code tags so it is easier to read.
Since your assignment is to find the errors, there is only so much help one can give.
I will tell you that I see 7 issues:
1) Import
2) Commenting
3) Semi-Colon
4) Wrong Variable Assignment
5) Unclosed String
6) Wrong Concatenation Technique
7) Illegally Breaking Up Statement (I think this is one)
Do some research on those, and see if you can find these. There are possibly more, but that is a start.
As for the second assignment, let's step you through it.
It would seem your issue is your lack of experience with Scanner (
Scanner (Java Platform SE 6)).
The first thing to know about Scanner, is how to set up the inputting. For you, I think you are just using the console. So, to set the console as your input, you say:
Scanner scan = new Scanner(System.in);
Now, for the console, there are a few methods that may be helpful (all in their generic form). The most important method would be:
Scanner.nextLine() //Returns a String of the User Input
Here are the other possible useful methods:
Scanner.next() //Returns a String of the next "token". A token is effectively a word
Scanner.nextDouble() //Returns the next token as a Double, provided it can be converted
Scanner.nextInt() //Returns the next token as a Int, provided it can be converted
Have a look at the Scanner Class and do some research on the methods I stated above. Those are probably going to be the most helpful for you at this point.