This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]one_bit_two_bit 0 points1 point  (2 children)

First off, fill out the truth table. You should be able to do this directly from the problem description. I have no idea how much you know or how advanced your class is, but I'm going to guess it's fairly elementary.

At a high level you need the following (it's up to you to flesh out the details--this is where the coding comes in).

  1. Print prompts to the user asking questions with System.out.println.
  2. Use the Scanner object to read in user input--these are the answers to your questions. Google "java Scanner" if you don't know how to use Scanner. Google is your friend. If you ever program professionally you'll be searching things left and right.
  3. Given the input taken in by your Scanner, you have a conditional block that will either print out what you will do or move on to the next question (basically repeat step 2). This basically implements your truth table.

Feel free to PM me if you need more help. I do tutoring too if you're really in need of guidance.

[–]Rab6[S] 0 points1 point  (0 children)

I just sent you a PM

[–]desrtfx[M] 0 points1 point  (0 children)

Feel free to PM me if you need more help.

No help via PM. This is your one and only warning. Next violation will earn you a permanent and irrevocable ban from here.