How to create a simple counter program?

I'm Having A lot of trouble with this Java Program.. HELP!...?

  • Hi guys, I'm currently working on a programming assignment, and it's based off of 2-d arrays, I've been trying to teach myself more and more but it gets more and more unsuccessful. The program i have to write is as follows: Write a program to simulate the rolling of two dice. The program should use Math.Random and util.Random to roll the first and second die. Using a two dimensional array to tally the number of times each sum appears using the random number generator methods. Your program should: 1. Display a welcoming message 2. Ask the user how many sides each die has 3. Create the 2-d array to hold the frequency counter of each possible sums 4. Ask the user how many times they want the dice to be rolled using both methods 5. Print the expected frequencies and actual frequencies and percentages each sum appeared in both methods in a tabular format. 6. Repeat steps 3 to 5 as long as the user wants. 7. End with a closing messag I don't expect anyone to be writing this entirely for me, but if you could help either explain how to begin or help me out that would be great, i really don't know where i should even begin.... i really need the help im freaking out. Email me if easier, [email protected], Thanks a lot!

  • Answer:

    I will e-mail you ASAP derek. I hope this isn't against yahoo rules but I'm posting my comment so if you like my email, you'll vote me best answerer on yahoo answers.

Derek at Yahoo! Answers Visit the source

Was this solution helpful to you?

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.