Michael13's Posts
Nairaland Forum › Michael13's Profile › Michael13's Posts
thks man! Infact i woke up around 3am dis morning and re wrote d program with d if-else statement and it ran dis time i also used it 2 tell d weather condition of a place, if its 2 cold or 2 hot, Men dis is fun! Thks |
k, actually not that it did not run, its just that wen i was testing it i was not getting a good result. Like lets say a student had all A's in all his papers, his GP ought 2 be 5 which is d maximum GP Point but instead am getting '4 point something'. I have cross checked my code and numbers, still d same thing, as at wen i uploaded d codes i changed all double variable to an int, and it won't even run, |
Nice one sweet-pawn, for a moment i forgot i was once in thise thread, this is because i have started my Java Tutorial Classes and boy o boy no be small thing but after a period of 2 weeks i wrote my first program that just output a dialog box, such joy, but now i just finished a code that calculates your GP but am having a problem with my output, so maybe i will put it out hear for all of ya to see, and Happy New year guys import javax.swing.JOptionPane; public class GradePoint { public static void main (String []args) { JOptionPane.showMessageDialog (null, "GET TO KNOW YOUR GP NOW!!" ;String m1; String m2; String g1; String g2; String c1; String p1; String p2; String s; m1 = JOptionPane.showInputDialog (null, "Enter grade for MTH 111" ;m2 = JOptionPane.showInputDialog (null, "Enter grade for MTH 121" ;g1 = JOptionPane.showInputDialog (null, "Enter grade for GSP 111" ;g2 = JOptionPane.showInputDialog (null, "Enter grade for GSP 101" ;c1 = JOptionPane.showInputDialog (null, "Enter grade for COS 101" ;p1 = JOptionPane.showInputDialog (null, "Enter grade for PHY 191" ;p2 = JOptionPane.showInputDialog (null, "Enter grade for PHY 195" ;s = JOptionPane.showInputDialog (null, "Enter grade for STA 131" ;int M1; int M2; int G1; int G2; int C1; int P1; int P2; int S; M1 = int.parseInt (m1); M2 = int.parseInt (m2); G1 = int.parseInt (g1); G2 = int.parseInt (g2); C1 = int.parseInt (c1); P1 = int.parseInt (p1); P2 = int.parseInt (p2); S = int.parseInt (s); int A; int B; int C; int D; int E; int F; A = 5; B = 4; C = 3; D = 2; E = 1; F = 0; int MTH1; int MTH2; int GSP1; int GSP2; int COS; int PHY1; int PHY2; int STA; int PAV; MTH1 = M1*3; MTH2 = M2*3; GSP1 = G1*2; GSP2 = G2*2; PHY1 = P1*2; PHY2 = P2*2; STA = S*2; COS = C*2; PAV = MTH1+MTH2+GSP1+GSP2+PHY1+PHY2+STA+COS; int GP; GP = PAV/18; JOptionPane.showMessageDialog (null, PAV); } } Need a reply, |
, na d song i dey meditate on ![]() |
hmmm, akpako, *DAY DREAMS** |
, the bìtch-äss-nigga is not fit 2 make that statement! |
, Rumour has it that, u can still eat ur cake and hv it! |
joor o!, and fùck, 77 hot virgins, |
, award, yafuyafu!! Just bring thy cash! ![]() |
sleek29:,, o boi |
am still saying it, lets quit football and find sumfin fullfilling ![]() |
Ibime:, mtchew like say na siasia or eguavoen dey play d ball |
una still they watch dem 'super sheekens', until una suffer 4rm hbp, |
thks 4 ur clerification, |
nice one, although am not a graduate infact am in my fist year at d university of nigeria, UNN, I knw i hv flair 4 computers, infact 2 be a programmer, i want 2 knw d possible carrer one wld chase after graduation, thks |
y hv u guyz abandoned dis thread @ this crucial tyme?anwayz hv checked ma result and i got 229.333366 for computer science, and am 4rm enugu, any chance?, need urgent reply like wat d possible cutoff wld be like, |
the fall of WIZKID, Coming SOon to a CINEMA NEAR YOU!!!!! |
ha, this forum has made things easier, but we just seem to forget the issue hear when is the date and hw or were can we get the forms? ![]() |
226, UNN, Wat do u guys think ![]() ![]() / ![]() |
;

