# Search:

Type: Posts; User: gotdatdough

## Search: Search took 0.26 seconds.

by gotdatdough
Replies
4
Views
110

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

These lines are.

--- Update ---

Thank you. i knew it was...

by gotdatdough
Replies
4
Views
110

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...

by gotdatdough
Replies
1
Views
174

### 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. ## Thread: 'for' loop problem

by gotdatdough
Replies
2
Views
141

nope
5. ## Thread: 'for' loop problem

by gotdatdough
Replies
2
Views
141

you got it
6. ## Thread: 'for' loop problem

by gotdatdough
Replies
2
Views
141

### '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. ## Thread: How to read multiple integers without assigning them to seperate variables?

by gotdatdough
Replies
1
Views
157

### 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. ## Thread: Don't know what statement to put

by gotdatdough
Replies
1
Views
118

### 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. ## Thread: Average Won't Work

by gotdatdough
Replies
5
Views
135

### 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. ## Thread: Average Won't Work

by gotdatdough
Replies
5
Views
135

### 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