Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,162,156 members, 7,849,585 topics. Date: Tuesday, 04 June 2024 at 04:09 AM |
Nairaland Forum / Logic101's Profile / Logic101's Posts
(1) (2) (3) (4) (5) (6) (of 6 pages)
Programming / Re: Algorithm Workout! by logic101: 5:21pm On Aug 01, 2011 |
very good thread @fayimora why dont we form a google group for programmers on nairaland and thanks for your help on the polynomial question |
Business / Re: Buhari Urges Return To Gold-Backed Currencies To End Inflation by logic101: 9:37am On Jul 28, 2011 |
Tobi_dad: |
Business / Re: Buhari Urges Return To Gold-Backed Currencies To End Inflation by logic101: 2:22pm On Jul 27, 2011 |
food for thought do you know that any non western nation that tried to introduce gold as a standard for money has been invaded. 1.libya 2.iraq if gold is used it would not benefit the west.Buhari is one of a few nigerian leaders with a functioning thinking faculty |
Business / Re: Buhari Urges Return To Gold-Backed Currencies To End Inflation by logic101: 2:19pm On Jul 27, 2011 |
stagger: Since when did western agreements become nigerians agreement. |
Politics / Re: Lagos: Echoes Of Praises On Cameron’s Visit by logic101: 10:54am On Jul 27, 2011 |
The greatest problem the black man has is his huge ego. David cameron comes to lagos and praises fashola and certain people take his words for it.Same old trick that has been used for 600 years,Massage their egos and they lose thier sense of reasoning |
Programming / Re: Program To Add To Polynomials by logic101: 11:13pm On Jul 25, 2011 |
its used in the while loop as a condition to input the coefficientss so if the lenght of the polynomial is 6, it needs 6 coefficients starting frm index 0-5 |
Programming / Re: Program To Add To Polynomials by logic101: 11:04pm On Jul 25, 2011 |
oh alryt e.g lets say u want to add 5x^3 + 2X^2 + 2x +9 and 4x^3 + 2X^2+7x +5 for first polynomial u wld entr the max exponent of each polynomial into its object reference, so it can be input in to ways frm exponent o which wld be coefficient, exponent 9 0 2 1 2 2 5 3 |
Programming / Re: Program To Add To Polynomials by logic101: 10:54pm On Jul 25, 2011 |
lol fayimora yup my variable names are u knwww, i would take that into consideration lol, u can key in the values in the main program which is in the polynomial class, |
Programming / Program To Add To Polynomials by logic101: 10:39pm On Jul 25, 2011 |
Hi am a computer science student working on a particular question to perform certain functions with polynomials.I have two classes, my monomial class and my polynomial class. I am trying to add two polynomials but i keep gtting a null pointer exception in my add method.Can the house help , Fayimora u seem well infromed can you chip in . public class Polynimial { Monomial [] polynomial;; int degree; Scanner in= new Scanner(System.in); // int a is coefficient while int b is the exponent public Polynimial(int c){ polynomial= new Monomial[c+1]; } public static void main(String[] args) { Polynimial c= new Polynimial(1); c.setPolynomial(); Polynimial d = new Polynimial(1); d.setPolynomial(); System.out.println(c.plus(d)); } public void setPolynomial(){ int x=polynomial.length; int count=0; System.out.println("please enter in this particular order all the coefficient and exponent " while(count<x){ int coefficient=in.nextInt(); int exponent=in.nextInt(); polynomial[exponent]=new Monomial(coefficient,exponent); count++; } } public int getHighestDegree(){ int c= polynomial.length ; return c; } public Polynimial plus(Polynimial c){ Polynimial result = new Polynimial(Math.max(this.getHighestDegree(), c.getHighestDegree())); int x=0; for(int i=0;i<result.getHighestDegree();i++){ x=polynomial[i].addMonomials( c.polynomial[i]); result.polynomial[i].setCoefficient(x); } return result; } } public class Monomial { private int coefficient; private int exponent; public Monomial(int c,int e){ coefficient=c; exponent=e; } public int getCoefficient(){ return coefficient; } public int getExponent(){ return exponent; } public int addMonomials(Monomial c){ int sum =0; if(this.exponent==c.exponent) sum= (this.coefficient + c.coefficient); return sum; } public int subPolynomials(Monomial c){ int diff=0; if(this.exponent==c.exponent) diff= this.coefficient - c.coefficient; return diff; } public void setCoefficient(int y){ coefficient=y; } } |
Politics / Re: Boko Haram Sect Splits by logic101: 3:27pm On Jul 21, 2011 |
joe4christ: Hear whose cry,which people, Why do most Nigerians/Africans always bring God into matters of men.The fact of the matter is that there has been a failure in our security institutions to protect the life and properties of its citizens that is why people can attack police stations with impunity, bomb police head quartes unchallenged.The day nigerians realise that their problems are man made and must be solved by man,Half of our problems would be solved. |
Politics / Re: Boko Haram Sect Splits by logic101: 3:23pm On Jul 21, 2011 |
houvest: You do not kill off extremism by force,you can only subdue it temporarily.If this country wants peace the following questions should be asked 1.What manner of security operations do we operate in this country 2.Is our police force not a joke ? in existent, no focal point, lack of personal responsibility, un trained,corrupt 3.A huge percentage of nigerians are suffering from hunger,,, What is the government going to do about it. 4.The nigerian army has a reputation for going into places and killing innocent people. 5.Why is the nigerian army involved in this. 6.Whats the future of a nigerian born today or a nigerian in his 20s,30s,40s |
Foreign Affairs / Re: South Sudan Locks Out Somalis by logic101: 3:11pm On Jul 21, 2011 |
Some of the responses on this page is quite disheartning ans shocking. !. Why dont you look up on the history of somalia 2.Why dont you question the operations of the African union 3 Dosent this tell you that we as a continent has failed to protect its citizens 4.What has the nigerian government done about it. 5.Have you ever asked yourselves , why somalia is in its current state. Dont be quick to jump onto badnwagons rather research and find out why certain things are the way they are, |
Foreign Affairs / Re: South Sudan Locks Out Somalis by logic101: 3:07pm On Jul 21, 2011 |
lagerwhenindoubt: What has Ezeuche and his Ndigbo crew got to do with this.Last time i checked a Succesful business contributes to the growth of the economy , creating jobs, paying taxes which is used to provide facilities for the residents of the country.You call refugees people from somalia free loaders?life has a funny way of resolving issues like this |
Crime / Re: Robbers Kill Police Chief In Ondo by logic101: 3:04pm On Jul 21, 2011 |
Ileke-IdI: Your statement reveals the tribalistic mindset in you(sad).What is the corollation between the ethnicity of the poster and the sad news that a man has just lost his life serving his country. |
Programming / Re: Iphone Development by logic101: 2:45pm On May 24, 2011 |
@fayi fair enough keep it up. @gsmexpert am in dublin think i know your face can we link up |
Programming / Re: Iphone Development by logic101: 3:16am On May 24, 2011 |
Fayimora: talk is cheap .Why don't you just post links to some of your works and stop masturbating with your excuses.If you cant ,we would consider you as fayimora !=iphone developing |
Politics / Re: Foreign Investors Taking Position In Nigeria After Successful Elections by logic101: 4:03pm On May 22, 2011 |
kodewrita: why use an ad hominem attack on cap28 rather than debating on the content of their arguments. |
Politics / African Pentecostalism Is : by logic101: 3:02pm On May 10, 2011 |
Politics / All Nigerians Should Listen To This by logic101: 2:46am On Mar 14, 2011 |
Religion / Re: I Need A Strong Deliverance Minister, My Life Is Crumbling Fast!1 by logic101: 10:59pm On Jan 09, 2011 |
@poster Who diagnosed you with your prolbems? lets not apportion blame to things we do not know just because of our preconvieved notions or bias. The solution of your problem lies in yourself |
Politics / Re: Not God Not Jerry Rawlins Can Save Nigeria From Them by logic101: 7:27pm On Aug 17, 2010 |
Sharon_f:if you read the text again sharon you would realise that the text says MAYBE he can . In my personal opinion he does not have the characteristics to govern nigeria. |
Foreign Affairs / Re: Rehabilitating The Self Image Of The Black-man by logic101: 1:02pm On Aug 17, 2010 |
birdman:thanks |
Politics / Not God Not Jerry Rawlins Can Save Nigeria From Them by logic101: 12:43pm On Aug 17, 2010 |
You must be wondering who “they” are! Well, ‘they’ would be the political gladiators and the men and women who hold sway in Nigeria as the custodians of our destiny. I know you would also want to ask me where they want to have us. Well, they want us to feel dejected, believe there is nothing we can do. If you go through most of the write ups by op ed writers and blogs, you find a common theme of calling on God (predominantly amongst those who believe in a supreme being) to come and liberate us from the celestial human lords who hold sway in Abuja and all the nook and crannies of Nigeria. But do you blame Nigerians? Even the most liberal of critics, in private, discuss the state of hopelessness. One public thinker recently opined that only a bloody Jerry Rawlings model revolution can save us from the blood sucking vampires we call political leaders in Nigeria Those who have tried every democratic option from civil disobediences, open letters, lobbying, campaign, blogging are now so tired that some simply say they will not mind a Thomas Sankara model military coup to save us from a leadership long on facebook promises and short on delivering even the most basic of needs and electoral promises. What is most appalling are those who surround the current president of Nigeria Goodluck Jonathan. The same men and women who fret at the mention of the name of certain cabals of few months past, have now turned themselves into a new cabal. They who kept quiet when the constitution of our Country was being trampled upon, are now the ones who feign surprise when we question the profligacy of the new man in the saddle. Like Musa Yar’Adua, the current President appears to be a prisoner of some sort - imprisoned by a greedy cabal. Let us be clear, we seem to have replaced a mild gluttonous cabal with thirsty vampires. They flock together and do whatever they like. The voice of the people is of no consequence. The legacy of the current government would probably be a post mortem of Waste! Waste! Waste! And more Waste! Let us take a look at the borrowing from the World Bank. A proposal to get a loan of One Hundred and Thirty Eight Billion Naira from the World Bank was justified by the minister of finance Segun Aganga with some Goldman Sach coated explanation before you could say Goodluck Nigeria. Anyone calling for a review was seen to be lacking in the understanding of how modern economics work. In Britain, from where the minister was borrowed, the government is cutting down on waste and saving for the future. Well the opposite is the case in Nigeria, a government going cap in hand to international financial institutions decided to budget a huge sum of money on a 50th anniversary celebration. By the time President Goodluck Jonathan “consulted” with his over 150,000 fans on face book and coordinated some gyrations with the PDP controlled law makers, the ‘owambe’ bill had risen to 17 billion Naira. They were not finished yet, the President’s Power committee set up to look into the power palaver in Nigeria had budgeted almost 900 million naira on food, cars and hotel bills for 73 members of staff for an assignment that will last 12 calendar months. Not completely satisfied, Mr President and the men and women who swore to protect us, fancied some modern executive jets. If the men and women of God in churches can play with executive jets, why not spend 23.2 billion naira ($154.3 million) on a a Gulf stream G550 and two new Falcon 7X Aircraft. What is wrong with the jets bought by Olusegun Obasanjo? They say it’s Tokunbo, how about the jets bought by Babangida? Not good enough? Well did Abacha not buy some too? They can’t find them. We are in trouble, but we should not be overwhelmed, the battle to save Goodluck Jonathan from his own blood sucking cabal is now. After all, Goodluck did not fight to protect our constitution; neither did his array of special advisers. It was ordinary Nigerians who marched on the streets of Lagos, Abuja, New York, London and many more who rightly called on Turai to release power to a man who was only used to being in the shadow of his ogas. His inexperience of taking the reigns of power have been brought to the fore in his allowance of some sycophants that have introduced the ethnic card, saying Goodluck Jonathan is spending “our oil money.” Niger Delta money? Is he spending it on the people of the Niger Delta? No. This man and those who surround him are milking your common wealth. If Jonathan loves the Niger Delta so much, we should have witnessed oil clean up exercises going on in all nook and crannies of that blessed region. Like President Barack Obama did in America, our President would be taking a dive in at least one of the local rivers in the Niger Delta. But No! Mr President wants Jets, He wants to Party and He wants more money from the IMF. Our president is either in bondage, confused or at best unconcerned as it is “our time” to have a bite of the National Cake - oh sorry, the Niger Delta cake. But it is not too late. The president can change. He will be excused if he spends a greater percentage of the money to clean up the mess in the Niger Delta, a place neglected by his government and governments before him. Surely, the President knows that loads of Ghana must go bags filled with millions of Naira given to some self styled militants won’t solve the problem in the Niger Delta. He must stop all the waste, the unnecessary spending. He should pick on one issue - be it holding credible elections, or even nationwide security, we will be forever grateful to him. He should not fail Nigeria the way those before him have failed our nation. GEJ can put his foot down and write his name in gold. No one is denying him his God given right to contest in 2011, but he should not sacrifice Nigeria’s development for his own ambition by abandoning governance to the politics of “catch me if you can, will GEJ run or not run?” For those of us who get frustrated by the minute, it is not the time to moan, it is the time to let go of our differences, support this government when it is doing what is right but stand in its way when it is going down the wrong path. Unfortunately at the moment, it appears to specialise in doing more wrong than right. We must not be overwhelmed; we can not give up on Nigeria. We don’t have a Rawlings waiting in a Nigerian barrack ready to liberate us from our fellow Nigerians. We are our own Rawlings when we start holding them to account. For every one “liking” Jonathan’s Facebook page and telling him he is the best thing after the discovery of mobile telecommunications, you should not complain when he starts taking you for granted. We can not afford to fail our children; the campaign for change must not stop. We can go a step further, identify programmes for change. In Nigeria, the Puritan is scarce but we can get something close to a revolution as a prelude to the full blown revolution. Maybe GEJ can still change to change Nigeria. That is a long shot maybe but the least change we need is enough change to stop this slow death. Siddon look is what they want us to do; being onlookers as they milk us dry will be a disservice to generations yet unborn. |
Foreign Affairs / Re: Africa Without Slavery And Colonization by logic101: 4:33am On Aug 06, 2010 |
olas2u:thats what the western history thought you to justify their actions and make african americans hate africans thereby causing division. olas2u:yes african chiefs participated in the slave trade but those slaves built the ancient towns of africa and remained in thier own continent.This idea that the whites came with stuff for the exchange of slaves is ambigous because they were going to kill the people anyway if the chiefs didnt co-oporate so the chiefs in order to save face obeyed. kind you some africans kingdoms fought against the invaders and slave trade |
Education / Re: Rough Guide Of The Best & Most Reputable Universities In The UK by logic101: 2:48am On Aug 04, 2010 |
Sagamite:yes i was referring to tcd dublin.Thank you very much, |
Foreign Affairs / Re: Rehabilitating The Self Image Of The Black-man by logic101: 12:14am On Aug 04, 2010 |
oyinda.:wrong the author is nigerian and last time i checked we all black |
Foreign Affairs / Re: Rehabilitating The Self Image Of The Black-man by logic101: 11:54pm On Aug 03, 2010 |
oyinda.: When africans realise their history, they would regain their history and self consciousness.All black men who have succeded in life from martin luther king, mandela, malcom and many more knew their history.This made them excell to put the doubters to shame and they never sold out lyk many of our african brothers.They possesed black consciousness a trait which many blacks dont have today because of 500 years of slavery and colonolization. |
Foreign Affairs / Re: Rehabilitating The Self Image Of The Black-man by logic101: 11:25pm On Aug 03, 2010 |
sage:how is the post above you talking nonsense. can you please elaborate on the nosense. |
Education / Re: Rough Guide Of The Best & Most Reputable Universities In The UK by logic101: 2:06pm On Aug 03, 2010 |
hi sagamite please can u tell me how are trinity college graduates are rated in the uk. am about to start my first year in computer science . |
Foreign Affairs / Re: Africa Without Slavery And Colonization by logic101: 8:40pm On Aug 02, 2010 |
Sun of god:Africas ancient history does not end in egypt.its just about 5% of africas history before colonilisation. we had many empires scattered across africa including nigeria. 1 Like |
Foreign Affairs / Re: Rehabilitating The Self Image Of The Black-man by logic101: 12:35pm On Jul 30, 2010 |
AT MY JOE ANCIENT EGYPTIANS WERE COLOURED PEOPLE AKA BLACK IN THE ANCIENT TIMES IT WAS JUST NOT RECORDED THE RECORDS ( FAKE MADE UP RECORDS) THE WHITE MAN HAVE OF BLACKS IN EGYPTS IS THAT WE WERE SLAVES WHICH IS A LIE BLACK AFRICANS BECAME SLAVES AFTER THE INVASION OF ARABS FROM THE MIDDLE EAST. CURRENT EGYPTIANS DONT SEE THEMSELVES AS AFRICANS( EUROPEANS ARE HAPPY BECAUSE WE ARE DIVIDED PEOPLE) BECAUSE OF THE UNDERDEVELOPMENT OF SUBSAHARAN AFRICA WHICH WAS RAPED FOR 1000 YEARS . |
(1) (2) (3) (4) (5) (6) (of 6 pages)
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 73 |