Search:

Type: Posts; User: lah2015

Search: Search took 0.30 seconds.

  1. Replies
    2
    Views
    273

    Body Systems Class

    This is an assignment given for an AP Computer Science Course, please help! My idea for the class was Body Systems, objects will be body systems. Here are the requirements given:

    ou will be...
  2. Replies
    14
    Views
    406

    [SOLVED] Re: Simulation for Grid Game?

    Sorry hehe silly question! Thank you so much.
  3. Replies
    14
    Views
    406

    [SOLVED] Re: Simulation for Grid Game?

    How can I make it reassign the values each time it goes through the loop?
  4. Replies
    14
    Views
    406

    [SOLVED] Re: Simulation for Grid Game?

    That should not be the case, but I don't really know how to fix that. I should be getting a combination of wins and losses?

    Norm, at first the output only showed:
    Number of Wins: 0
    Number of...
  5. Replies
    14
    Views
    406

    [SOLVED] Re: Simulation for Grid Game?

    Ok, now it is compiling but it is not completing 500 trials like I want it to, instead it is only completing one.


    public class ColorGrid
    {
    public static void main(String args[])
    {
    //Pick a...
  6. Replies
    14
    Views
    406

    [SOLVED] Re: Simulation for Grid Game?

    So, is it okay to have an if-else statement nested within a for loop?
  7. Replies
    14
    Views
    406

    [SOLVED] Re: Simulation for Grid Game?

    I added it to my post, sorry about that.
  8. Replies
    14
    Views
    406

    [SOLVED] Simulation for Grid Game?

    I am trying to simulate a grid game using java (for loops, if/else). The game is played as follows: The player draws a card that has one of four colors (Red, green, blue, yellow). Then, the player...
Results 1 to 8 of 8