Learn Programming in Java

Seaman English Review

<<Previous | ToC | Next >>
 
Are you satisfied with your (English) code?

 

If you want to look at my version, you need to recall that the first 13 lines of my Seaman were 5 pages back (you might want to save your own code somewhere before going back to look) and this is only the back end that accepts guesses and scores the game. Also, although I left the "Run in Kitchen" button there, the English language (and therefore the Kitchen computer) has no such thing as arrays, so your program probably won't run there correctly. When we redo this program in Java it will run in BlueJ. You are probably ready for that.

Everything in this program you already know how to do in Java, so mostly this is nothing more than an exercise in translating Kitchen English into Java. I suggest you arrange your screen with your English program (this browser window) off to one side, and the BlueJ "Hello" program editing window off to the other side, so you can see both at once, side by side.

If you have been coasting, not writing any English at all, or if you have been writing English but are not satisfied with what you did, you are now at a crossroads. If you want to be a computer professional, you need to do this. Go back to the Seaman beginning and put your mind to it. You read all the discussion on why and how, so you know where it is going, but you still need the neurons in your head to transmit the words to your fingers. You can do it, but you gotta have the wanna. You alone can do that.

If your professional goal involves working with other people who do the real work (but not actually doing it yourself), you can do that too. Take my English program -- it's in two parts, the first part is five pages back (choose either version) then open up BlueJ and see what you can do to translate my design into your Java. It's not hard if you follow the directions and helps in the next few pages. But you will get more out of it if you make the effort to do it yourself first. It's all the same to me, I'm writing this for the people who want to get into it and succeed. You decide if you want to be one of them. Or not. Find something you like doing, and do that.

Anyway, see how much you can write yourself, before you turn the page.
  <<Previous | ToC | Next >>

Revised: 2021 June 3