The ProgrammersTalk Community
Forum Register Search Today's Posts Mark Forums Read
Register

Go Back   The ProgrammersTalk Community > General Programming > Python


Welcome to the The ProgrammersTalk Community forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.
Reply
 
LinkBack Thread Tools    Display Modes   
  #1 (permalink)  
Old 10-21-2007, 07:31 PM
Kanada Kanada is offline
Novice
Join Date: Oct 2007
Posts: 1
iTrader: (0)
Kanada is on a distinguished road
Help with Python assignment

Hello,

I was wondering if anyone can help me with my assignment:

General requirements

For this assignment, you are going to write a small application which provides information about felines. The dataset to be used is the following:
Common Names Order Family Genus Species Average Weight African Golden Cat, Leopard's Brother Carnivora Felidae Profelis aurata 11 - 14 kg (24 - 30 lbs) Black Footed Cat, Ant Hill Tiger Carnivora Felidae Felis nigripes 1.0 - 2.4 kg (2.2 - 5 lbs) Caracal, Desert Lynx Carnivora Felidae Caracal caracal 10 - 18 kg (22 - 39 lbs) Sand Cat, Sahara Cat, Sand Dune Cat Carnivora Felidae Felis margarita 2 - 3.4 kg (4 - 8 lbs) Serval Carnivora Felidae Leptailurus serval 9 - 19 kg (20 - 40 lbs) Wildcat, Scottish Wildcat, Indian Desert Cat Carnivora Felidae Felis silvestris 3 - 8 kg (7 - 18 lbs) Asian Golden, Temminck's Cat Carnivora Felidae Catopuma temminckii 12-15 kg (26-33 lbs) Bornean Bay Cat, Bay Cat Carnivora Felidae Catopuma badia About 2 - 4 kg (4 - 9 lbs) Chinese Mountain Cat, Chinese Desert Cat Carnivora Felidae Felis bieti 4 -5.5 kg (9 - 12 lbs) Clouded Leopard, Mint Leopard Carnivora Felidae Neofelis nebulosa 11-25 kg (24 - 55 lbs) Fishing Cat Carnivora Felidae Prionailurus viverrina 6 - 12 kg (13 - 26 lbs) Flat Headed Cat Carnivora Felidae Prionailurus planiceps 1.5-2.5 kg (3-5 lbs) Iriomote Cat Carnivora Felidae Mayailurus iriomotensis 3 - 4.5 kg (6.5 - 10 lbs) Jungle Cat, Swamp Cat, Reed Cat Carnivora Felidae Felis chaus 4 - 16 kg (9 - 35 lbs) Leopard cat, Bengal Cat, Amur Cat Carnivora Felidae Prionailurus bengalensis 2.5 - 7 kg (5.5 - 15 lbs) Marbled Cat Carnivora Felidae Pardofelis marmorata 4 - 8 kg (9 - 18 lbs) Pallas Cat, Manul, Steppe Cat Carnivora Felidae Otocolobus manul 3 - 4.5 kg (5.5 - 10 lbs) Rusty Spotted Cat Carnivora Felidae Prionailurus rubiginosa 1.1 - 1.6 kg (3 - 4 lbs) Lynx- Eurasian Carnivora Felidae Lynx lynx 9 - 38 kg (20 - 83 lbs) Lynx- Iberian Carnivora Felidae Lynx pardinus 8.7 - 14.5 kg (19 - 32 lbs) Lynx - Canadian Carnivora Felidae Lynx canadensis 8 - 14 kg (18 - 30 lbs) Bobcat, Red Lynx Carnivora Felidae Lynx rufus 5.8 - 13.3 kg (13 - 30 lbs) Andean Mountain Cat Carnivora Felidae Oreailurus jacobita 3 - 6 kg (7 - 15 lbs) Geoffroy's Cat Carnivora Felidae Oncifelis geoffroyi 3 - 8 kg (7 - 17 lbs) Jaguarundi, Otter Cat, Eyra Carnivora Felidae Herpailurus yaguarondi 3 - 9 kg (6 - 20 lbs) Kodkod, Guigna Carnivora Felidae Oncifelis guigna 2 - 3 kg (4 - 6 lbs) Margay, Tree Ocelot, Long Tailed Cat Carnivora Felidae Leopardus wiedi 3 - 9 kg (9 - 20 lbs) Ocelot, Painted Leopard Carnivora Felidae Leopardus pardalis 8 - 12 kg (17-26 lbs) Oncilla, Tiger cat, Little Spotted Cat Carnivora Felidae Leopardus tigrinus 2-3 kg (4-8 lbs) Pampas Cat Carnivora Felidae Oncifelis colocolo 3 - 7 kg (6 - 15 lbs) Domestic Cat, House Cat Carnivora Felidae Felis catus 3-4.5 kg (7-10 lbs) Cougar, Mountain Lion, Puma Carnivora Felidae Puma concolor 35 - 100 kg (77 - 220 lbs) Jaguar, El Tigre Carnivora Felidae Panthera onca Males average 55 kg (122 lbs), females average 36 kg (80 lbs) Snow Leopard Carnivora Felidae Uncia uncia 30 - 75 kg (66 - 165 lbs) Tiger Carnivora Felidae Panthera tigris 65 - 300 kg (150 - 640 lbs) Amur Leopard Carnivora Felidae Panthera pardus orientalis Male 32-91 kg, Female 25-59 kg Cheetah, Hunting Leopard Carnivora Felidae Acinonyx jubatus 40 - 60 kg (88 - 132 lbs) Leopard Carnivora Felidae Panthera pardus 30 - 91 kg (65 - 200 lbs) Lion, African Lion, Asian Lion Carnivora Felidae Panthera leo 120 - 250 kg (265 - 550) lbs Note: Feline data collected from: ISEC Canada (Wild Cats | Wildlife Conservation | Endangered Wildlife|Home)
General Specification

Your program must prompt the user to enter search criteria. Any feline which matches the search criteria must be printed to the screen in the following format:
Order Family Genus Species Common names and average weight
matching feline information For example:
bash-3.00$ python cats.py
Please enter cat search criteria: geoff
Order Family Genus Species Common names and average weight
Carnivora Felidae Oncifelis Geoffroyi Geoffroy'S Cat, 3 - 8 kg (7 - 17 lbs)
bash-3.00$ python cats.py
Please enter cat search criteria: lynx
Order Family Genus Species Common name and average weight
Carnivora Felidae Caracal Caracal Caracal, Desert Lynx, 10 - 18 kg (22 - 39 lbs)
Carnivora Felidae Lynx Lynx Lynx- Eurasian, 9 - 38 kg (20 - 83 lbs)
Carnivora Felidae Lynx Pardinus Lynx- Iberian, 8.7 - 14.5 kg (19 - 32 lbs)
Carnivora Felidae Lynx Canadensis Lynx - Canadian, 8 - 14 kg (18 - 30 lbs)
Carnivora Felidae Lynx Rufus Bobcat, Red Lynx, 5.8 - 13.3 kg (13 - 30 lbs)
bash-3.00$ python cats.py
Please enter cat search criteria: sdfhsdfkh
No cats match your search criteria

In the first example above, only one feline species matched the search criteria geoff. The record for the Geoffroy's Cat was printed. This record includes the order, family, genus, species, common names and average weight. In the second example, several feline species matched the search criteria lynx. The first match (the Caracal) matched the criteria because a common name of the Caracal is the Desert Lynx. The remainin feline species matched because each species is within the Genus Lynx. In the final example, no feline species matched the criteria so an appropriate message was printed.
------------



wow. thats really big. anyways, im not asking for someone to do it for me.. but if anyone can give me a push in the right direction.. that would be great.
thanks a lot
kanada

__________________

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!
Reply With Quote
  #2 (permalink)  
Old 10-21-2007, 09:15 PM
HelloWorld's Avatar
HelloWorld HelloWorld is offline
Programming Expert
Awards Showcase
Quality Tutorial 
Total Awards: 1
Join Date: Jun 2007
Location: In front of computer...
Posts: 1,111
iTrader: (0)
HelloWorld will become famous soon enoughHelloWorld will become famous soon enoughHelloWorld will become famous soon enough
lol, it's not going to help you if you're just trying to ask any of us doing your homework for free.. if you'd like, you may want to give us some offer in the Freelance or job section haha... I don't think I would like to do your homework for free...

I suggest you to try your best before asking any questions, if you have any problems, then you can post your code and ask for help..

__________________
PHP Code:
System.out.println("Hello World!"); 

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!
Reply With Quote
  #3 (permalink)  
Old 10-23-2007, 05:43 AM
ccoonen ccoonen is offline
PT Staff
Awards Showcase
Quality Tutorial Quality Tutorial Quality Tutorial Quality Tutorial 
Total Awards: 4
Join Date: Jun 2007
Location: Wisconsin
Posts: 308
iTrader: (0)
ccoonen is on a distinguished roadccoonen is on a distinguished roadccoonen is on a distinguished roadccoonen is on a distinguished road
I believe we've stated this many times before (but I'm too lazy to lookup the threads) but we will NOT do you homework for you. We are happy to help with certain questions but will not just straight up do it... unless you are going to send us the Degree and College Credits that is
Reply With Quote
  #4 (permalink)  
Old 10-23-2007, 08:29 AM
HelloWorld's Avatar
HelloWorld HelloWorld is offline
Programming Expert
Awards Showcase
Quality Tutorial 
Total Awards: 1
Join Date: Jun 2007
Location: In front of computer...
Posts: 1,111
iTrader: (0)
HelloWorld will become famous soon enoughHelloWorld will become famous soon enoughHelloWorld will become famous soon enough
or probably Mr. Admin should create some kind of global annoucement to everybody...?

__________________
PHP Code:
System.out.println("Hello World!"); 

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!
Reply With Quote
  #5 (permalink)  
Old 11-03-2007, 11:20 AM
writtinfool writtinfool is offline
Novice
Join Date: Jun 2007
Posts: 3
iTrader: (0)
writtinfool is on a distinguished road
tutorial assistance

I don't see them asking for someone to do the work for them, just a nudge in the right direction.
I just want to verify what is is they trying to do. It seems to me that their dataset is a list(separated by commas) of name-value pairs. now Python has data types for this. List, for immutable lists and dictionary, for name-value pairs. It looks like their assignment is asking them to go through each list item where they would go through each dictionary item doing a string comparison. Then they would output the dictionaries where the comparison is successful.
Is that their assignment?

__________________

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!
Reply With Quote
The Following User Says Thank You to writtinfool For This Useful Post:
HelloWorld (11-03-2007)
  #6 (permalink)  
Old 11-03-2007, 11:36 AM
HelloWorld's Avatar
HelloWorld HelloWorld is offline
Programming Expert
Awards Showcase
Quality Tutorial 
Total Awards: 1
Join Date: Jun 2007
Location: In front of computer...
Posts: 1,111
iTrader: (0)
HelloWorld will become famous soon enoughHelloWorld will become famous soon enoughHelloWorld will become famous soon enough
Yes, that's definitely type of programming assignments that they're working on.. well, I'd say that at least they should have shown that they do some work or at least do some tries of what they've done

Quote:
wow. thats really big. anyways, im not asking for someone to do it for me.. but if anyone can give me a push in the right direction.. that would be great.
sorry I didn't read this
But it seems like you need to do some kind of database..? is this a web application or what? sorry I'm not familiar with python

__________________
PHP Code:
System.out.println("Hello World!"); 

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

   Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 12:30 PM. Powered by vBulletin
Copyright © 2000 - 2007, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO © 2007 ProgrammersTalk Sedo - Buy and Sell Domain Names and Websites project info: programmerstalk.net Statistics for project programmerstalk.net etracker® web controlling instead of log file analysis


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50