Search:

Type: Posts; User: gotdatdough

Search: Search took 0.22 seconds.

  1. Replies
    4
    Views
    131

    Re: Adding additional $10?

    hoursworked40 = hoursworked - 40;
    hoursworked40 = hoursworked40 * 1.5;
    totalpay = (hoursworked + hoursworked40) * wage;

    These lines are.

    --- Update ---

    Thank you. i knew it was...
  2. Replies
    4
    Views
    131

    Adding additional $10?

    My program is supposed to calculate the income of the user by taking the number of hours worked and their hourly wage. if the person works over 40 hours, thy recieve 1.5 times the amount of their...
  3. Replies
    1
    Views
    198

    Answer won't print!

    Assignment was to compare two strings that have one letter from the alphabet. the output should be which of them has the greatest value(which letter is closer towards z). for example, if the user...
  4. Replies
    2
    Views
    165

    Re: 'for' loop problem

    nope
  5. Replies
    2
    Views
    165

    Re: 'for' loop problem

    you got it
  6. Replies
    2
    Views
    165

    'for' loop problem

    i need to create a progam that enters even integers until the input number is reached. for some reason i think my for statement(for (int i = 2; i < x; i+= 2)) is messed up because it returns 18...
  7. How to read multiple integers without assigning them to seperate variables?

    I have this program that i need to be able to take multiple integers(in this case years) from the user. So far the program works with just one integer. I need the program to be able to take in...
  8. Replies
    1
    Views
    149

    Don't know what statement to put

    i need this program to determine and print the number of odd, even, and zero digits in an integer value read from the keyboard. the "int num = " statement has me confused. what do i type next?

    ...
  9. Replies
    5
    Views
    160

    Re: Average Won't Work

    Why won' the average work? when i enter 10 for the first number, then 20 for the second number, it returns an average of 5.
  10. Replies
    5
    Views
    160

    Average Won't Work

    import java.text.DecimalFormat;
    import java.util.Scanner;
    public class Average {
    public static void main(String[] args) {
    Scanner scan = new Scanner(System.in);
    int value, count = 1, sum =...
Results 1 to 10 of 11