![]() |
|
|
|
| ||||||
|
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. |
![]() |
![]() | | LinkBack | Thread Tools | Display Modes | ![]() |
| |||
| 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 |
| |
| |||
| 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 ![]() __________________ Day Cares | Golf Courses | Disc Golf Courses | Campgrounds | Ice Rinks | Paintball Fields | Dentists | Plastic Surgeons | Aging Jokes Catholic Churches | Lutheran Churches | Methodist Churches | Episcopal Churches | Clean Jokes |
| |||
| 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? |
| The Following User Says Thank You to writtinfool For This Useful Post: | ||
HelloWorld (11-03-2007) | ||
| ||||
| 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:
![]() 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 |
![]() |
| Thread Tools | |
| Display Modes | |
| |