Eazyd's Posts
Nairaland Forum › Eazyd's Profile › Eazyd's Posts
awe_mef: Funny enough this jamb site thing shutting down has nothing to do with the coding of the site, its the hosting that can't handle that much traffic which should be worked on, so u people wasting ur time to code a non-problem area is unnecessary. Since I got where the problem area is, I deserve to get the 150K rite? And seun open ur eyes to PHP, ASP, JSP etc a little, everytime u bring up a contest u limit it to phyton cause dats what u use, u make dat amateur language look as if its one big ish.Seun is just trying to promote the language in Nigeria, if you are familiar with other languages then python shouldn't be a problem for you, its his contest so he sets the rule. Come up with yours or if you r interested in Seun's contest simple follow his rules and widen your horizon by learning python. |
Seun, Can someone living in the usa participate? currently a student and i'm familiar with python 2.7. If i get a go-ahead i will create this script in python. |
A-ZeD:3NF is you find the functional dependencies in 2NF , create Candidate and Foreign keys. |
Python- PHP- Javascript. |
post the code and modifications u made...you'll get help instantly. |
smile4kenn: I am a programmer and I work here in the USA(I get headaches staring and hitting my fingers everyday on python, Visual studio and SQL) This is just my second year working as a programmer after uni graduation. I am paid $36 an hour and I work 40+ hours a week. Do the maths yourself"When in doubt, use brute force." ![]() |
well i quite understand what you mean now but as a starter i've got 2 books on programming which is based on python but this book n particular is more guided and self explanatory to a point. After python,java next! |
how can you call it a wild joke-- rome wasn't built in a day but im sure on the first day it was called rome. |
kodewrita: http://www.greenteapress.com/thinkpython/thinkCSpy/thinkCSpy.pdf click that to get the book.Thanks for the link...a copy was sent to my email by a friend so now i can easily share this link with ppl who r interested. |
I found this very useful programming book for starters like me.. its quite easy to read and understand compared to other books for beginners. It focuses on Python but i hear there is a Java edition out there. The book is called- "Thinking Like a Computer Scientist for Python". You can easily download it from the internet or i can send a copy to you via email. I'm into this race to finish, what about you? |
well i went back to my book and found a skipped page- in there lies my answer accumulator Done Deal!! ![]() |
I wrote a program in python that calculates the amount of money a person would earn over a period of time if his or her salary is one penny the first day, two pennies the second day and continues to double each day. The program ask the user for the number of days worked, displays a table showing what the salary was for each day, and then show the total at the end of the period. I'm having problem with the last part-- (total at the end of the period.) This should calculate the total salary earned This is the program in python 2.7.2 print "Enter number of days worked:" def salary_on_day(n): return 2**(n-1) days = int(raw_input()) earnings = 0 for i in range(1, days): s=salary_on_day(i) print "day ", i, ": ", s, " pennies" earnings = s print "total: ",earnings |
Hi I am considering further study, both networking and programming appeal to me .To help me decide which course to study I would be interested to hear from people - What is your job title - What sort of daily tasks do you do in your role - What study did you do to get there? -What is the sort of pay for your role Thanks in advance for your answers |
Does anyone know any good webmessenger software available? |
10 yrs from now,check Seun's worth ![]() |
Mastery is a game- which category are you, experienced or hard-core? bt anyway more grease to ur elbow! I'm learning both ways, text editors in school and wysiwyg editors at home, one day i hope to b like you ![]() |
will drop an example after i do some research, i did come across a website selling such templates awhile bk. call it wat u wanna(candy or kolanut)-as long as u achieve ur aim. |
thats just a title- lol ppl like grease to their elbows! ![]() |
@yawa-ti-de -some web template are specifically built for wysiwyg editors, can such template be edited with other editors? i want to purchase the dreamweaver cs5.5 but need some advice before investing $399. |
for experienced & hard core web designers- which editor will you use to edit a template and why? |
im askin for your opinion, do you think its useful? |
what about recordid? |
@okey Thanks for your advise but what bout the candidate keys and if the table is well formed or not. Based on functional dependencies i think the table is well formed but in Normalization, the table isn't well formed. What do you think? |
@smile4kenn-- na so we see am oo. @goon- i had a pseudocode before i wrote the program but following the book, u need to desk check(hand-trace) for errors. Its time consuming since my programs got like 40 lines. I just wana know hw to. Can you do a desk check? |
Please open the attachment to view the table. Is this correct? Answers to questions like these are based on different views and opinions, so i'm putting this out to see if my views tally with yours. 1a- Studentid--->StudentName CourseNumber --->CourseName 1b- Studentid --->StudentName Very unlikely because a student can have different studentid. CourseNumber --->CourseName Very likely because no two same course can have same course number. 1c- None 1d- The table is not well formed because the determinants (Studentid,CourseNumber) are not candidate keys. Also the table can be broken into 2 tables to be well-formed. |
one more thing--ive tried to desk check my program according to the book but with so many lines i get confused where to start and what line to check.Can you help me on that? |
yea my friend told me that bt i will learn how to simplify my code as i learn , i'm jst glad i accomplished a goal this week and i'm also practicing on 2 other programs,if i get hooked i'll sure ask for your help , goon.whrs ur location? |
This is my new program,i had to read the book again and i finally sort it out. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ # This program calculates the total revenue of ticket sold at a softball game # Initialize variables ClassA = 15 ClassB = 12 ClassC = 9 def main(): intro() # call intro ticketA = totalsoldA() # call totalsoldA function ticketB= totalsoldB() # call totalsoldB function ticketC= totalsoldC() # call totalsoldB function revenueA= totalrevenueA(ticketA) # call totalrevenueA function revenueB= totalrevenueB(ticketB) # call totalrevenueB function revenueC= totalrevenueC(ticketC) # call totalrevenueC function totalSales(revenueA,revenueB,revenueC) # call totalSales function def intro(): print ("There are 3 seating categories in this staduim" ![]() print ("ClassA cost $15" ![]() print ("ClassB cost $12" ![]() print ("ClassC Cost $9" ![]() print ("This program will calculate the total revenue of tickets sold" ![]() def totalsoldA(): print ("Enter the number of ticket sold in A." ![]() totalsoldA= input () return totalsoldA def totalsoldB(): print ("Enter the number of ticket sold in B." ![]() totalsoldB= input () return totalsoldB def totalsoldC(): print ("Enter the number of ticket sold in C." ![]() totalsoldC= input () return totalsoldC def totalrevenueA(totalsoldA): totalrevenueA = totalsoldA * ClassA return totalrevenueA def totalrevenueB(totalsoldB): totalrevenueB = totalsoldB * ClassB return totalrevenueB def totalrevenueC(totalsoldC): totalrevenueC = totalsoldC * ClassC return totalrevenueC def totalSales(totalrevenueA,totalrevenueB,totalrevenueC): totalSales = totalrevenueA + totalrevenueB + totalrevenueC print "This is the total amount sold in all class of seats.$%7.2f"% totalSales # call the main function main() -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
wow finally learnt how to return value to the functions- dats where my problem was, thanks to donsegmond for pointing this out and thanks to you too goon! i learnt something today-yaaaaaaaaaaaa i can post my restructured program here again! |



