#Having trouble with very beginner level Java homework

1 messages · Page 1 of 1 (latest)

chilly monolith
#

Im just overall struggling understanding the concept im assigned, really could use help as this is due in 2 hours.

dusty pondBOT
#

<@&987246527741304832> please have a look, thanks.

dusty pondBOT
#

While you are waiting for getting help, here are some tips to improve your experience:

Code is much easier to read if posted with syntax highlighting and proper formatting.

If nobody is calling back, that usually means that your question was not well asked and hence nobody feels confident enough answering. Try to use your time to elaborate, provide details, context, more code, examples and maybe some screenshots. With enough info, someone knows the answer for sure.

Don't forget to close your thread using the command </help-thread close:1027500463647621170> when your question has been answered, thanks.

#

Here is an AI assisted attempt to answer your question 🤖. Maybe it helps! In any case, a human is on the way 👍. To continue talking to the AI, you can use </chatgpt:1108714622413963314>.

#

I'm sorry to hear that you're struggling with your Java homework. I'll do my best to help you understand the concept and guide you through it. Can you please provide more details about the specific problem or concept you're having trouble with?

chilly monolith
#

not looking for an easy way out or anything, truly want to understand just stuck

dusty pondBOT
#

salesTaxRate = 0.08;

System.out.print("Enter the number of haircuts: ");
int numHaircuts = input.nextInt();

double subtotal = haircutPrice * numHaircuts;
double salesTax = subtotal * salesTaxRate;
double total = subtotal + salesTax;

System.out.println("Subtotal: $" + subtotal);
System.out.println("Sales Tax: $" + salesTax);
System.out.println("Total: $" + total);

}
}

real kindle
#

u just posted ur assignment

#

im looking at it and have no idea which part i have to explain to u

#

or whats exactly unclear

#

or what ur current code is like