Urgently Need Assistant On JAVA GUI - Programming - Nairaland
Nairaland Forum › Science/Technology › Programming › Urgently Need Assistant On JAVA GUI (1240 Views)
| Urgently Need Assistant On JAVA GUI by Akprof(op): 10:04pm On Apr 18, 2015 |
Please Programmers, how do I use GUI so solve problems where some variable are integer and others are float? E.g Code a program that output your Grade Point (GP) where GP=(Grade Point X Course Unit)/Total Unit. Taking CSC 400 as a the only course you did with unit 3. Pls code this by using the GUI and not scanner. I am expecting your instant responses thanks. |
| Re: Urgently Need Assistant On JAVA GUI by Nobody: 10:14pm On Apr 18, 2015 |
Akprof:Try dis www.dreamincode.net/forums/topic/165458-gpa-calculator-for-javascript/ |
| Re: Urgently Need Assistant On JAVA GUI by Nobody: 10:40pm On Apr 18, 2015 |
Since the variable is a score, it might be better to have it in float form to reduce margin of error. You could cast the integer scores to float like so: score1 = 79 becomes score1 = (float) score1 So the new value of score1 would be 79.0 instead of 79. Hopefully this is somehow of help to you. For more info: http://stackoverflow.com/questions/4377842/how-can-i-convert-integer-into-float-in-java |
| Re: Urgently Need Assistant On JAVA GUI by Akprof(op): 11:24pm On Apr 18, 2015 |
can u av a try of the coding? |
| Re: Urgently Need Assistant On JAVA GUI by Nobody: 11:42pm On Apr 18, 2015 |
Akprof:It's GUI, so it's slightly more work than an ordinary java program. Would love to help but I definitely can't. Good luck though! ![]() |
| Re: Urgently Need Assistant On JAVA GUI by Akprof(op): 11:48pm On Apr 18, 2015 |
thanks |
| Re: Urgently Need Assistant On JAVA GUI by Nobody: 1:42pm On Apr 19, 2015 |
I am a newbie in Java, I will advice you to use an app or software that will tell where the errors are and make correction before you compiler and run the code. https://play.google.com/store/apps/details?id=com.java.manager |
| Re: Urgently Need Assistant On JAVA GUI by danvery2k6(m): 2:03am On Apr 20, 2015 |
funny question, funny replies. please tell us where exactly you have problems so we can help you learn. copying and pasting code will by no means help you. |
| Re: Urgently Need Assistant On JAVA GUI by luksybee(m): 9:18am On Apr 20, 2015 |
You need to parse your values to a string type... Label, textbox etc can only have a string value... Hope you get the idea? |
| Re: Urgently Need Assistant On JAVA GUI by kudaisi(m): 11:14am On Apr 20, 2015 |
What have you done so far ? |
| Re: Urgently Need Assistant On JAVA GUI by kudaisi(m): 2:21pm On Apr 20, 2015*. Modified: 1:05am On Apr 21, 2015 |
Try this should work... package package.name; |
| Re: Urgently Need Assistant On JAVA GUI by Standing5(m): 9:01pm On Apr 20, 2015 |
OP, did the above work for you? |
I Need Help On Java • How Do I Make My Java GUI Stuff Executable (like desktop shortcut) • Urgently Need Assistant On JAVA GUI • 2 • 3 • 4
Pys60: Too Late For Me • Free Training Alert • Programmers Lets Have Some Fun..., For Intelligent Peeps Please
