So it just comes down to the programmer and as long as you follow the syntax? Interesting. Thanks Ada, much more understanding now :)
Type: Posts; User: Caffeine
So it just comes down to the programmer and as long as you follow the syntax? Interesting. Thanks Ada, much more understanding now :)
I am new when it comes to the GUI interface and I am trying to understand it. Regarding my question, is it because the programmer should be clear and specific, such as using verbs that indicate the...
Gotcha. Thanks for the tip.
Okay I have it working correctly, but I feel it could use a touch up. I'm trying to add the width and height of the buttons but after putting it in different areas of the code, it doesn't seem to...
I'll try that, thanks.
No I haven't done that yet to be honest, thanks for the reminder of that.
Of course I've written it, I've been working on it for the past week or two. Not to mention I have the book, but understanding this button stuff is difficult to grasp for me.
I've been working on my program for a while and I can't seem to figure it out, since I still consider myself new to the language. Anyways, my professor is looking for the GUI Application to calculate...
Okay, I'll try that, thanks for the tips.
Oh, and it's not meeting his requirements. See if I run my code now, everything displays in one box/pane with the total charges for the semester. He is not looking for that, he is looking for this:
When I tried using the
JOptionPane.showMessageDialog(total,
"Total Charges For the Semester: ");,
that box pops up but without the total charges and then I get errors in the console...
I'm a bit confused about my program. I have it all working great, but my professor is expecting a different output. He wants a box where you select your dormitory and meal plan, with "Calculate...
Hello again, I have a slight problem that's probably easy to fix but I can't figure it out. For the program, my professor is looking for an output like:
ERROR: Enter 0 or greater for hours:
...
Okay, I got rid of
totalRooms += rooms in the first while loop. And I changed the
occupancyRate = (totalOccupiedRooms % totalRooms); to
occupancyRate = ((double)totalOccupiedRooms /...
I'm having trouble with the mathematical parts of my code and I can't seem to spot the problem(s). I've messed around but it becomes worse. Here's my code:
package chapter5;
// Imports...
Looks good, yeah I apologize for the confusion, I myself was because of the calculations. But I'll def consider the revised code you provided, right now going to take a break from all this coding....
40 * 99 = $3,960
$3,960 - $1,188.00 (discount) = $2,772.00
So yes that is correct. And that seemed to of fixed it all. Thank you greatly for your help Koder, much appreciated.
Making that change, now my output displays:
Enter the units sold: 100
Units sold: 100.0
Discount: $4,950.00
Cost: $4,950.00
Update:
I'm just suspecting my output is funny and/or wrong. This is what I get after making that slight change:
Enter the units sold: 100
Units sold: 100.0
Discount: $4,950.00
Cost: $4,851.00
...
Hello, I'm having trouble with my SoftwareSales.java program that involves another demo part. I have it running but my output seems off, something tells me its a simple fix but I'm having trouble...
Thank you.
I'll soon find out :)
Thank you all for your help, I appreciate it.
Yeah both EmployeeDemo.java and Employee.java are separate, but both are in the chapter3 folder. And after running the EmployeeDemo.java file, it did compile and execute with the output I posted....
Yeah he mentioned how running the Employee.Demo will use the Employee.java as a sub file. So when putting both files in the same destination folder and running the Demo.java file, I get this output:...
When speaking to my professor over email, he tells me they are 2 separate .java files, and that
I'm failing to understand how to get the 2 separate files to work.