User Profile

Collapse

Profile Sidebar

Collapse
hjc
hjc
Last Activity: Dec 10 '06, 03:18 PM
Joined: Oct 22 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • hjc
    replied to Help With A Grading Program!!
    in Java
    thanks i will and i will
    See more | Go to post

    Leave a comment:


  • hjc
    replied to Need Help With My Program
    sorry to bother you-i didn't want anything done other than to know if the code is set up right. I have a flow chart and have the problem figured out, that is why i didn't include the entire question. like i said just looking to have someone look at my code
    See more | Go to post

    Leave a comment:


  • hjc
    replied to Help With A Grading Program!!
    in Java
    thanks for the help-i am not understanding your question could you re word it
    See more | Go to post

    Leave a comment:


  • hjc
    started a topic Need Help With My Program

    Need Help With My Program

    I AM TRYING FIGURE OUT A PROGRAM THAT COUNT THE NUMBER OF PEOPLE WHO GET OFF A TRAIN EACH TIME IT STOPS AT A SPECIFIC LOCATION
    THIS IS MY CODE:
    <html><head><ti tle>Javascript</title></head>
    <body>
    <h1>Javascrip t example 1</h1>
    <script language="JavaS cript">


    var count = 0;
    var max = 0;
    var min = 0;
    var total...
    See more | Go to post

  • hjc
    started a topic Help With A Grading Program!!
    in Java

    Help With A Grading Program!!

    i am trying to created a program that will write a grading program for a class with the following policies

    there are 2 quizzes each graded on the basis of 10 points
    there is 1 midterm and 1 final each graded on 100 points
    the final exam counts for 50% of the grade, the midterm counts for 25% and the 2 quizzes togehter count for a total of 25%(i have to normailze the scores)

    letter grades based on
    ...
    See more | Go to post

  • hjc
    replied to Two Syntax errors that I can't figure out
    in Java
    Thank you both very much for your help!!!! I got it working...
    See more | Go to post

    Leave a comment:


  • hjc
    started a topic Two Syntax errors that I can't figure out
    in Java

    Two Syntax errors that I can't figure out

    I am trying to to write a program that will print the first 15 Fibonacci numbers each on one line with to lessons (print and produce)

    the code that I have is below:
    class numbers{
    static int numbers[] = new int[15];
    public static void produce(int Fib){

    if(Fib < 2)
    numbers[n] = n;
    else
    numbers[n] = numbers[n-1] + numbers[n-2];
    }

    public static...
    See more | Go to post

  • hjc
    started a topic Need help with a loop statement
    in Java

    Need help with a loop statement

    I am trying to write a program that will give me the number of coins it takes to make up a particular amout. if I write 50 in the command prompt it will say 2 quarters. I have this much and need help with the while loop

    class coin{
    static int amount;

    public static void main(String[] args){
    amount = Integer.parseIn t(args[0]);

    System.out.prin tln("Quarters "+ computeCoin(25) );...
    See more | Go to post

  • hjc
    started a topic table not staying centered with the css background

    table not staying centered with the css background

    I have a repeating 1 pixel repeating image centered with css, then I have a column table with a top banner and a bottom banner giving the page a box effect. It is all centered and when I minimize the browser window the table shifts 1 or 2 pixels to the right giving the box effect not lined up.
    See more | Go to post

  • I am the dumbest human on the plant!

    If I am understand every one correctly my program should look something like the following:

    class Change{
    public static void main(String[] args){
    int n = Integer.parseIn t(args[0]);
    System.out.prin tln("Your change is: ");

    n = amount;

    if(n / 25){
    (amount / 25);
    }
    else if (n / 10){
    ...
    See more | Go to post

    Leave a comment:


  • Sorry to sound like a idiot but don't I still have to defind the method? how does the program know what int n is? I am really struggling with this---so thank you for the help---even if you don't reply

    QUOTE=r035198x]One of those programs where the language being used does not really affect the design of the solution. Get the algorithm right first. Here is the greedy approach

    change (int n) {
    int[] coins...
    See more | Go to post

    Leave a comment:


  • Still learning and am trying to teach myself java-Please help!

    I am trying to write a program that tells the minium number of coins to give out for any amount of change from 1 cent to 99 cents. For example if the amount is 57 cents in the commmand prompt, the output would be:
    57 cents can be given as
    2 quarters, 1 nickel and 2 pennies.

    while using coins 25, 10, 5, and 1

    I am thinking

    int computeCoin(coi nValue,):
    //Precondition: 0<coinValue<100 ;...
    See more | Go to post

  • hjc
    replied to new to java
    in Java
    Thank you for your help, I find this very difficult to learn. Again thanks very much...
    See more | Go to post

    Leave a comment:


  • hjc
    started a topic new to java
    in Java

    new to java

    I am wondering how to write a java program that does the following:
    There is one method required: get Max, which takes two integer variables as input in the command prompt, returns the bigger one of the two.
    See more | Go to post
No activity results to display
Show More
Working...