Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Feb 2014
    Thanked 0 Times in 0 Posts

    Noob Programming question, need a little bit of guidance.

    I'm a little lost, an need a little guidance in which variables to use etc etc, i'll post up what the assignment requires, any help or tips are appreciated. I just can't grasp Java as quickly as everyone else in the course.

    Create a Modulus or Multiplication Question Class

    Create a program which prompts a user to for how many times they want to be tested and what type of questions they will be tested on.

    At the end of each test it totals their score and the time taken to complete the test

    They are then prompted to take the test again

    After each subsequent attempt they are prompted with the time and score and the average time and Total overall score.

    1. Create a main Method
    2. Create a Method (RandomNumbers) to create a random number and return it to each of your variables for each of the questions. It needs to accept 1 input which is multiplied by the random number.
    3. Create a Method (EnsureHiger) that checks to make sure that the first number is higher than the second number

  2. #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    London, England
    Thanked 2,703 Times in 2,679 Posts
    Quote Originally Posted by Nooblet101 View Post
    I just can't grasp Java as quickly as everyone else in the course.
    This is the JavaScript forum. Java and Javascript are entirely different programming languages, in spite of the confusingly similar names. Rather like Austria and Australia! Ask a mod to move this thread to the right forum.

    But be aware that this forum is not a free coding service. As a general rule, the people helping out in this forum don't write code for others (especially code that appears to be for homework), but try to help with fixing code that doesn't work. You'll be far more likely to get help if you have made a substantial effort and written some code yourself. Then someone here will almost certainly help you correct/improve your work.

    Quizmaster: Which British Prime Minister had the second name Hilda?
    Contestant: John Prescott.
    Last edited by Philip M; 02-23-2014 at 05:49 PM.

    All the code given in this post has been tested and is intended to address the question asked.
    Unless stated otherwise it is not just a demonstration.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts