hoursworked40 = hoursworked - 40;
hoursworked40 = hoursworked40 * 1.5;
totalpay = (hoursworked + hoursworked40) * wage;
These lines are.
--- Update ---
Thank you. i knew it was...
Type: Posts; User: gotdatdough
hoursworked40 = hoursworked - 40;
hoursworked40 = hoursworked40 * 1.5;
totalpay = (hoursworked + hoursworked40) * wage;
These lines are.
--- Update ---
Thank you. i knew it was...
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...
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...
you got it
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...
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...
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?
...
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.
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 =...