₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,325,255 members, 8,421,019 topics. Date: Friday, 05 June 2026 at 04:44 PM

Toggle theme

Larrydee's Posts

Nairaland ForumLarrydee's ProfileLarrydee's Posts

1 2 3 4 (of 4 pages)

RomanceRe: Good Things Your Exes Taught You? by Larrydee(m): 12:38pm On Jan 21, 2013
Don't litter. Use the waste bin. If there's none around, carry it in your pocket till you find one. grin grin grin
PoliticsRe: Proud Ibadan (pictures) by Larrydee(m): 12:28pm On Jan 21, 2013
I know Bello Hall, Queens Hall, Trenchard Hall and NFLT anytime!!!
ProgrammingRe: Project Topics Tips For Computer Science Undergraduates by Larrydee(m): 4:31pm On Jan 16, 2013
Michael 13: 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!!"wink;
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"wink;
m2 = JOptionPane.showInputDialog (null, "Enter grade for MTH 121"wink;
g1 = JOptionPane.showInputDialog (null, "Enter grade for GSP 111"wink;
g2 = JOptionPane.showInputDialog (null, "Enter grade for GSP 101"wink;
c1 = JOptionPane.showInputDialog (null, "Enter grade for COS 101"wink;
p1 = JOptionPane.showInputDialog (null, "Enter grade for PHY 191"wink;
p2 = JOptionPane.showInputDialog (null, "Enter grade for PHY 195"wink;
s = JOptionPane.showInputDialog (null, "Enter grade for STA 131"wink;
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,
Let's Optimize this...

import javax.swing.JOptionPane;
public class GradePoint
{
public static void main (String []args)
{
JOptionPane.showMessageDialog (null, "GET TO KNOW YOUR GP NOW!!"wink;
String m1, m2, g1, g2, c1, p1, p2, s;


int M1 = Integer.parseInt(JOptionPane.showInputDialog("Enter grade for MTH 111"wink);
int M2 = Integer.parseInt(JOptionPane.showInputDialog("Enter grade for MTH 121"wink);
int G1 = Integer.parseInt(JOptionPane.showInputDialog("Enter grade for GSP 111"wink);
int G2 = Integer.parseInt(JOptionPane.showInputDialog("Enter grade for GSP 101"wink);
int C1 = Integer.parseInt(JOptionPane.showInputDialog("Enter grade for COS 101"wink);
int P1 = Integer.parseInt(JOptionPane.showInputDialog("Enter grade for PHY 191"wink);
int P2 = Integer.parseInt(JOptionPane.showInputDialog("Enter grade for PHY 195"wink);
int S = Integer.parseInt(JOptionPane.showInputDialog("Enter grade for STA 131"wink);

int A = 5, B = 4, C = 3, D = 2, E = 1, F = 0;

int MTH1, MTH2, GSP1, GSP2, COS, PHY1, PHY2, STA, 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);
}
}
TV/MoviesRe: Please Who Can Remember the name of This old Yoruba Series? by Larrydee(m): 2:03pm On Sep 21, 2012
Yeah. Thompson died. Can't remember his fiance cos its been ages since i watched that thing. I think i watched it as a movie and not a series.
TV/MoviesRe: Please Who Can Remember the name of This old Yoruba Series? by Larrydee(m): 11:27am On Sep 20, 2012
Mr. Deinde committed suicide at the end by stabbing himself with a kitchen knife. And YES, Thomson did die out of poisoning by his evilness, Mr. Deinde.
PoliticsRe: FCT Minister Weeps (After Removal By Yar'adua) by Larrydee(m): 7:07pm On Oct 31, 2008
dnt mind d guy jare. wat abt pple who retire 4rm lesser payin jobs? wat wil they do? certainly, if d guy no work again, he go stil dey ok wit proper mgmt of embezzled cash.
SportsRe: Peter (the Nigeria Nightmare) Vs Vitali Kiltchko- Who Will Take The Crown? by Larrydee(m): 1:49pm On Oct 15, 2008
As at today, 15th October 2008, 4dayz after the fight, i'm sure y'all know already know about samuel peter's terrible defeat for the wbc title. The guy really bragged about how he was gonna defeat vitali. said he "i'm going to teach him a lesson the hard way". longtin for him. he was defeated
RomanceRe: A Single Girl With Married Male Friends Only? by Larrydee(m): 1:30pm On Oct 15, 2008
Dont let their wives catch u o! they 'll think u're a husband snatcher so i'll waatch it if i were u.
PoliticsRe: Happy 48th Birthday To My Country, Nigeria by Larrydee(m): 2:53pm On Oct 02, 2008
wetin we dey celebrate?!
Christianity EtcRe: Falling Under Anointing - Hoax, Real Or Hypnosis? by Larrydee(m): 8:02am On Sep 30, 2008
the stuff is real o! or do u think those dat fall do so inspite of d embarasment involved?
PhonesMy Fellow Brainy Nairalanderz, Is There Any Of U Who Stil Browses Free On Pc Wit Zain? If Yes, Hw? A by Larrydee(op): 2:01am On Sep 26, 2008
Is free mms browsin over?
BusinessRe: Use 'Goat Mentality' To Get What You Want In Life by Larrydee(m): 5:01pm On Sep 04, 2008
yes o! watch your persistence so your head won't get clubbed to death.
Nairaland GeneralRe: Nigerian Monarch Driving Buses In New York by Larrydee(m): 4:48pm On Sep 04, 2008
@ babalaw0, are u beefin d poster cos his thread got displayed on the homepage instead of urs? or is it something else entirely? true, its no big deal. the king is just being noble like d others rightly stated. my threads have never been displayed on the homepage but i still take it lying down so wats d fuss? it really doesn't warrant all those abusive stuffs u spat out.
no hard feelings bro.
PhonesRe: Interswitch Ng Mobilepay (umobile, Z-mobile) by Larrydee(m): 5:50am On Sep 04, 2008
does this app ever work with gprs? its always reportin a failed connection. suppose i want 2 recharge my phone (which i usually do for 100bucks), using mobilepay to access my acct via sms will incure an overhead of 15bucks, which means i'll be spendin 115bucks to load my phone! no good. good ol "free" gprs had better work on it. no way i'm spendin my hard earned credit accessin my acct.
Christianity EtcRe: Jesus Never Died by Larrydee(m): 3:00am On Aug 25, 2008
You people should better not say what you don't know. Becareful of blaspheming before you end up in eternal damnation. Sin against the HolySpirit is UNFORGIVABLE!!! BEWARE
LiteratureRe: Short Story Contest: Tuneh Won by Larrydee(m): 1:39am On Aug 25, 2008
@ sisikill, see vocab! shocked
ore wa, abeg take am easy. u just tongue lash our bros all because of small miss yarn. i better be careful of wat i say henceforth on nairaland b4 i end up on the receiving end of ur "thorough washing"
RomanceRe: Can Your Man Kiss Your Feet? by Larrydee(m): 1:15am On Aug 25, 2008
HELL NO. Foot kissing is something else i would gladly refer to as idol worship.
Christianity EtcRe: Why Condoms Should Be Distributed In The Church by Larrydee(m): 1:04am On Aug 25, 2008
On no occassion should condoms ever be distributed in church. If anybody no fit hold body, make d person go chemist. goldcircle don already make life easy. grin
PoliticsRe: Animals Do Not Turn Into Human Beings: Ok? by Larrydee(m): 8:19pm On Jul 31, 2008
at the poster,
i couldn't agree better with those who pointed out ur disregard for d rules. u owe d house an apology.
also, i believe u've underestimated d powers dat be. not dat i believe all d stuffs u posted but this things actually do happen for real. one magician was seen somewhere around my area last sunday doin "stuffs unspeakable". this things happen! really
BusinessRe: G8 Worried Over Nigeria's Nuclear Programme by Larrydee(m): 8:04pm On Jul 31, 2008
people, people, we realise no doubt dat nigeria is a corrupt, country full of careless individuals but lets not bad mouth d proposed nuclear project b4 it even starts. remember, there's power in wat u say and if y'all maintain dat nuclear power in naija is crap, how then do u expect to see it work out. also think of wat u y'all can contribute to d development of d country rather than frown at government efforts.
no hard feelings
RomanceRe: Have You Ever Cheated On Your Partner? by Larrydee(m): 9:14pm On Jul 23, 2007
i've been flirtin wit other girls but i've slept wit another gal just once & i did confess to the real "one". believe u me, it made d relationship stronger. i had 2 do it cos d "one" is kinda spiritual & wont let me touch her so i found someone else cos i needed 2 let my steam off.

1 2 3 4 (of 4 pages)