#Having trouble with very beginner level Java homework
1 messages · Page 1 of 1 (latest)
<@&987246527741304832> please have a look, thanks.
While you are waiting for getting help, here are some tips to improve your experience:
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?
not looking for an easy way out or anything, truly want to understand just stuck
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);
}
}