Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,149,801 members, 7,806,222 topics. Date: Tuesday, 23 April 2024 at 01:13 PM

Bluemoon1's Posts

Nairaland Forum / Bluemoon1's Profile / Bluemoon1's Posts

(1) (2) (3) (4) (5) (6) (7) (8) (9) (10) (of 16 pages)

Jobs/Vacancies / Re: Andela: IT Training And Job by Bluemoon1(f): 3:55am On Oct 31, 2016
I keep getting "quiz was not initialized" or invalid submission" when submitting quiz 6. [b]Can someone please help me? [/b]I successfully submitted quiz 7 but quiz 6 keeps giving error.
Jobs/Vacancies / Re: Andela: IT Training And Job by Bluemoon1(f): 6:21pm On Oct 26, 2016
Please i need help on object oriented lab. been on this for days. it passes all the tests but i guess it doesn't pass the hidden test. Here's my code


class BankAccount:
def __init__(self):
pass
def withdraw():
pass
def deposit():
pass

class SavingsAccount(BankAccount):

def __init__(self):
BankAccount.__init__(self)
self.balance = 500
def deposit(self, amount):
if amount>0:
self.balance += amount
return self.balance
else:
return "Invalid deposit amount"

def withdraw(self, amount):
if self.balance-amount < 500:
return 'Cannot withdraw beyond the current account balance'
elif amount<0:
return "Invalid deposit amount"
else:
self.balance -=amount
return self.balance

class CurrentAccount(BankAccount):

def __init__(self):
BankAccount.__init__(self)
self.balance = 0
def deposit(self, amount):
if amount>0:
self.balance += amount
return self.balance
else:
return "Invalid deposit amount"

def withdraw(self, amount):
if self.balance-amount<0:
return 'Cannot withdraw beyond the current account balance'
elif amount<0:
return "Invalid deposit amount"
else:
self.balance -=amount
return self.balance
Jobs/Vacancies / Re: Andela: IT Training And Job by Bluemoon1(f): 9:05am On Oct 24, 2016
AroogzBaba:
#Please I need help with this. The code passes all the visible test but fails hidden test
#Thanks

class BankAccount:

def withdraw():
pass

def deposit():
pass

class SavingsAccount(BankAccount):

def __init__(self):
#if self.balance != 500:
#raise ValueError()
self.balance = 500

@property
def balance(self):
return self.__balance

@balance.setter
def balance(self, amount):
if type(amount) == int or type(amount) == float:
if amount >= 500:
self.__balance = amount
else:
return
else:
raise ValueError()


def deposit(self, amount):
if type(amount) == int or type(amount) == float:
if amount < 0:
return "Invalid deposit amount"
self.balance += amount
return self.balance
else:
raise ValueError()

def withdraw(self, amount):
if type(amount) == int or type(amount) == float:

if amount < 0:
return "Invalid withdraw amount"
elif amount > self.balance:
return "Cannot withdraw beyond the current account balance"
elif (self.balance - amount) < 500:
return "Cannot withdraw beyond the minimum account balance"
self.balance -= amount
return self.balance
else:
raise ValueError()

class CurrentAccount(BankAccount):
def __init__(self):
self.balance = 0

@property
def balance(self):
return self._balance

@balance.setter
def balance(self, amount):
if type(amount) == int or type(amount) == float:
if amount >= 0:
self._balance = amount
else:
return
else:
raise ValueError()

def deposit(self, amount):
if type(amount) == int or type(amount) == float:

if amount < 0:
return "Invalid deposit amount."
self.balance += amount
return self.balance
else:
raise ValueError()
def withdraw(self, amount):
if type(amount) == int or type(amount) == float:

if amount < 0:
return "Invalid withdraw amount"
elif self.balance < amount:
return "Cannot withdraw beyond the current account balance"
else:
self.balance -= amount
return self.balance
else:
raise ValueError()


Having same problem? have you solved it? and how did you?
Art, Graphics & Video / Where To Buy New Professional Cameras In Port Harcourt? by Bluemoon1(f): 11:42pm On Sep 06, 2016
I was considering ordering from jumia or konga but i would prefer to buy from a physical shop in Port Harcourt. New Nikon d3200, d3300 preferably. I need trustworthy sellers, please. Thank you
Celebrities / Re: Pamela Peter-Vigboro Has Emerged As Miss Nigeria 2015 by Bluemoon1(f): 2:35pm On Nov 08, 2015
cigaricon:
You mean 32yr old pamela undecided
She's actually 22, I even thought she was younger. She was my junior in secondary school

1 Like

Jobs/Vacancies / Re: Follow This Thread For Portharcourt Jobs by Bluemoon1(f): 8:46am On Jun 27, 2015
Good morning everyone, I studied software engineering and I'm looking for an Software Engineering|ICT firm or anywhere in Port Harcourt where I can work as a Graduate trainee|Intern in my field. I just want the experience. Thanks
Jobs/Vacancies / Re: Post Entry Level/Industrial Trainee Jobs Here For Those Without Experience by Bluemoon1(f): 8:40am On Jun 27, 2015
Good morning everyone, I studied software engineering and I'm looking for an Software Engineering|ICT firm or anywhere in Port Harcourt where I can work as a Graduate trainee|Intern in my field. I just want the experience. Thanks
Webmasters / Re: Webmasters Enter Here If You Can Solve These PHP Questions... by Bluemoon1(f): 3:11am On May 01, 2015
teemy:


"SELECT * FROM table WHERE id = $_POST[ 'id' ]" ?
*******************************************************************
Q: What is the preferred way to write this if statement, and why?

if( 5 == $someVar ) or if( $someVar == 5 )
***********************************************************************
Q: Given this code:

function doSomething( &$arg )
{
$return = $arg;
$arg += 1;

return $return;
}
$a = 3;
$b = doSomething( $a );
...what is the value of $a and $b after the function call and why?

$b = 3 because it has the value of the of the inputed variable initial value. The $a was autoincremented after the return variable was assigned
$a = 4 as it has been autoincremented by 1. However only valid within the function ellse undefined if called outsie it.
NB. considering that &$arg is a typo

***********************************************************************
Question 4

Q: Consider these lines of codes:
//first code
$myVar = "I am Something";

$myVar .= "So Special";

echo "Do you Know $myVar";

And
//second code
$myVar = "I am Something";

$myVar .= "So Special";

echo 'Do you Know $myVar';

Now if you run these two codes in a Browser what will be the output?

The same Do you Know $myVar and not Do you Know I am SomethingSo Special
NB. There was no concatenation between string and assumed variable


Correct! I thought I was crazy for a brief moment when some people answered that both a and b wld equal to 4. I was also right about the browser outputting "Do you Know $myVar". I really need to work on my self confidence.

1 Like

Culture / Re: Imo State Mandatory Bride Prize List by Bluemoon1(f): 2:35am On May 01, 2015
Segunj8:
Bro. Chibuzor always beat his wife Ugochi from Imo state to stupor. She ll pack nd leave but b4 u know it, she's back again. So I always wonder if she has no family and then I asked Obiora to explain, he told me if she go d family will refund d money he paid 4 her and since they can't she must endure.
Marry from dia nd u hv total control over her.

Actually, it's only bride price that is refunded. And most times bride price is not more than 20k.
Health / Re: HELP PLS...Very Hot And Badbreath Coming Out From My Nose.. by Bluemoon1(f): 5:47pm On Mar 15, 2015
I have a friend that had this issue. His wasn't this severe but it was still bad. He was cured by prayer, yes prayer. The pastor of our fellowship asked anyone suffering from any disease to come out and he did and the next day the smell was gone. It's okay to seek medical help but I believe Prayer would be the solution

1 Like

NYSC / Re: Nysc 2015 Batch A by Bluemoon1(f): 11:12pm On Mar 07, 2015
a3abdu:

- Go to the Login portal and click "Make Payment"
- Fill in login info. and click "Continue to Payment"
- Scroll down and click "Continue Without Payment" option
Shikenan!
Thanks
NYSC / Re: Nysc 2015 Batch A by Bluemoon1(f): 10:58pm On Mar 07, 2015
mayorsweet:
Log out and log in again...i believe u should be able to print ur green card afterwards
Already done that, still not working
NYSC / Re: Nysc 2015 Batch A by Bluemoon1(f): 10:57pm On Mar 07, 2015
richybanky:

Ar u doing it in an accredited center?
Yes I am
NYSC / Re: Nysc 2015 Batch A by Bluemoon1(f): 10:55pm On Mar 07, 2015
tolustx:

Are u doing it in an accredited cafe? And are u d only one dat sees dat in d cafe?
Thanks for replying, Yes I did it at an accredited place and no one else was registering at that moment so I wouldn't know if I was the only one
NYSC / Re: Nysc 2015 Batch A by Bluemoon1(f): 11:44am On Mar 07, 2015
Help!!!! Anytime i try to print my slip. i get a 404 Error. I am using a PC not Mobile. What do i do?
cc : sodiqyinka, tolustx, mayorsweet, erisegun,
richybanky,ABDamola
NYSC / Re: Nysc 2015 Batch A by Bluemoon1(f): 1:53am On Mar 06, 2015
sodiqyinka:
Why don't you try to start the whole registration afresh with a new email? You wont miss the biometrics capturing this time. Cheers
Thanks a lot
NYSC / Re: Nysc 2015 Batch A by Bluemoon1(f): 12:18am On Mar 06, 2015
sodiqyinka:
It will take you back to the biometrics page the moment you log in again tomorrow. Cheers

Thanks for replying, I've already logged off and logged back in but it didn't take me back to the biometrics page. It Just took me my dashboard which shows my filled form and provide buttons for edit and submit...
NYSC / Re: Nysc 2015 Batch A by Bluemoon1(f): 11:53pm On Mar 05, 2015
sodiqyinka:
Heyy. Remember this moniker from the numbers i checked. You've registered now?
@sodiqyinka please help!
I skipped the biometrics part in order to fill the rest
of the form, and I'm wondering how I can go back to
it as I didn't see any link to the page. I intend to the
fingerprint scan at a center tomorrow. So please
how do I go back to the biometrics part? Thanks
NYSC / Re: Nysc 2015 Batch A by Bluemoon1(f): 11:28pm On Mar 05, 2015
femolala001:


Well, I don't think there is any link u can use to go back. But just try to login again wit ur email and password and see if it will take u back to d biometrics page
I've done that, It didn't take me back. It just showed my completed form and asked to submit. I'm hoping submitting the form without it won't be a major problem.
NYSC / Re: Nysc 2015 Batch A by Bluemoon1(f): 11:18pm On Mar 05, 2015
tolustx:

Ok. If that is d case, I guess u also didn't pay d 4k then. U may ve to start a fresh registration with anoda email and make sure u ve all d requirements b4 u start so as to have a hitch-free refistration.
All d best.
I skipped the biometrics part in order to fill the rest
of the form, and I'm wondering how I can go back to
it as I didn't see any link to the page. I intend to the
fingerprint scan at a center tomorrow. So please
how do I go back to the biometrics part? Thanks
NYSC / Re: Nysc 2015 Batch A by Bluemoon1(f): 11:15pm On Mar 05, 2015
I skipped the biometrics part in order to fill the rest of the form, and I'm wondering how I can go back to it as I didn't see any link to the page. I intend to the fingerprint scan at a center tomorrow. So please how do I go back to the biometrics part? Thanks

cc : sodiqyinka, tolustx, mayorsweet, erisegun,
richybanky,ABDamola
NYSC / Re: Nysc 2015 Batch A by Bluemoon1(f): 7:24pm On Mar 05, 2015
tolustx:

Ok. If that is d case, I guess u also didn't pay d 4k then. U may ve to start a fresh registration with anoda email and make sure u ve all d requirements b4 u start so as to have a hitch-free refistration.
All d best.
I thought as much, just needed to confirm.
Thanks so much
NYSC / Re: Nysc 2015 Batch A by Bluemoon1(f): 6:23pm On Mar 05, 2015
tolustx:

When u said u didn't complete ur C14 registration. Can we knw what part u got to and stopped? If u created an account then with ur email and a password, u shud be able to log in with dat and continue ur registration. Let's ve ur response to dat.
I got to the part where I had to upload scans of my original waec and neco. Yes, I registered with my email and password and I could log in . I tried continuing the registration but the system said registration had already closed (which I guess it's the C14 registration it's talking about)
NYSC / Re: Nysc 2015 Batch A by Bluemoon1(f): 5:45pm On Mar 05, 2015
Hello everyone, Can someone please help? I graduated last year from a foreign uni. I created an account and tried registering for Batch C last year but I didn't complete it because I couldn't get all the required documents. I'm trying to do a fresh registration by logging in to my account but it keeps saying "registration has already closed". Please what do I do? Thanks
Programming / Re: Test by Bluemoon1(f): 1:04pm On Feb 27, 2015
I'm also a female programmer(software engineer to be precise), I also program with all the languages u mentioned. Nice to meet you, love. We should work together sometime...

1 Like

Family / Re: Parents Of Girl Who Kidnapped Herself Disown Her.(pic) by Bluemoon1(f): 7:54pm On Jan 25, 2015
Fkforyou:
I like her hairstyle.... tongue
I was seriously searching for a comment about the hair loll

1 Like

Art, Graphics & Video / Re: Mobile Photographers: Show Off Your Stuffs by Bluemoon1(f): 9:03pm On Dec 29, 2014
Nice pics
NYSC / Re: Nysc 2015 Batch A by Bluemoon1(f): 8:25am On Nov 15, 2014
pinkiepetite:
peeps js lik spreading rumour unnecessarily. nawa o

What rumour are you talking about?
NYSC / Re: Nysc 2015 Batch A by Bluemoon1(f): 6:00am On Nov 15, 2014
9th december. So I heard...
Hello everyone,
It's nice to join you. Quick question.. Is it true that the physical examination at Abuja would be discontinued starting from batch A 2015?
Education / Re: Six Most Expensive Secondary Schools In Nigeria (alarming School Fees) by Bluemoon1(f): 5:57pm On Aug 24, 2014
i never said they aren't good. I'm trying to back up what i said about everyone ending up in the same university irrespective of the secondary school they attended. And what i'd rather do with that much money, than spend it on a secondary school education.
itstpia1:

The federal universities rank as ivy league, technically.

The fact that students from all walks of life, both rich and poor, attend them, doesn't mean they aren't good.
Education / Re: Six Most Expensive Secondary Schools In Nigeria (alarming School Fees) by Bluemoon1(f): 1:11pm On Aug 24, 2014
Like i always say to people, at the end of the day they'd probably end up in the same university. I know people that went to expensive secondary schools and still ended up in a federal school. I also know people who went to FGC and later attended MIT Massachusetts. Even if i had the money, i wouldn't spend that much on a secondary school. I'd rather enrol my child in a much cheaper private school and save the rest up for a prestigious university.

2 Likes

Food / Re: How Do I Make My Meatpie Dough Crusty by Bluemoon1(f): 9:03pm On Nov 17, 2013
I think you need to add more butter. i usually add butter that's half or almost half of the weight of my flour. i.e. 2kg flour-1kg butter

Also, don't allow the meat pie to dry out when baking, once it gets a light golden brown color(not dark golden brown) take it out of the oven

(1) (2) (3) (4) (5) (6) (7) (8) (9) (10) (of 16 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. 47
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.