Database System Concepts
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
Bartleby Related Questions Icon

Related questions

bartleby

Concept explainers

Question

Assignment:

Use OOP to implement certain details and requirements for the assignment. The lab is about donkey kong characters and their statistics and information which is provided on a Monkey.txt file that must be read in. Some information of monkeys is below which will be used:

  • Most species are arboreal, using all four limbs to leap from tree to tree. They can sit upright and stand erect. Most species run along branches rather than swinging arm over arm like apes. Monkeys are highly social omnivores, organized in clans as large as several hundred individuals headed by an old male.

The underlines are at least behavior (member functions) that you are asked to add to your OOP program such as Leap(string, string), Sit(), Walk(), Swing()... Here are some descriptions of a monkey that must apply to your program. The information from the Monkey.txt file will be used along with the format below.

Name Sit Walk Swing Leap Jump Banana Year Family

Donkey Kong Y Y Y N 3 3 1981 Donkey

Chunky Kong N Y Y Y 2 5 2007 Dixie



  • You need to use an array of objects in this program
  • Develop the program that can answer the following question related to Donkey Kong.
  • Each answer can be a different function
  1. BEFORE STEP 1, POST ALL OF THE MONKEYS IN THE FORMAT ABOVE WITH THEIR INFORMATION AND STATS
  1. Develop a constructor that makes Donkey Family leap from "Papaya tree" to "Banana tree, but Dixie family from "Coconut tree" to "Rubber tree"
  • Develop a destructor that deletes all the kongs
  1. Find and list the Donkey family members who cannot leap; take a screenshot and post
  2. Update the Banana field of all the Monkeys such Banana += Jump *5.
  • List the Monkeys who have more than 15 bananas; take a screenshot and post
  1. Find and list the ones that were introduced before 1995; take a screenshot and post
  • AFTER DONE POST THE MONKEYS AGAIN IN THE FORMAT ABOVE BUT WITH THE UPDATED BANANA COUNT AND INFO AND THEIR STATS




-HAVE THE PROGRAM READ FROM THE TXT FILE AND USE OOP

instructions above, Monkey.txt file with the info below.

Monkey.txt

Donkey Kong Y Y Y N 3 3 1981 Donkey

Cranky Kong Y Y N Y 1 0 1985 Donkey

Dixie Kong Y Y N Y 2 2 2001 Dixie

Kiddy Kong Y N Y N 1 1 2003 Dixie

Wrinkly Kong N N Y Y 1 2 1985 Donkey

Tiny Kong N N Y Y 2 1 2001 Dixie

Diddy Kong Y Y Y N 3 2 1985 Donkey

Uncle Kong Y N Y N 1 2 1990 Donkey

Chunky Kong N Y Y Y 2 5 2007 Dixie

[画像:This is a part of OOP class work, which we have been doing in class. Here are more characteristics of a monkey that Britannica says. Most species are arboreal, using all four limbs to leap from tree to tree. They can sit upright and stand erect. Most species run along branches rather than swinging arm over arm like the apes. Monkeys are highly social omnivores, organized in clans as large as several hundred individuals headed by an old male. The underlines are at least behavior (member functions) that you are asked to add to your OOP program such as Leap(string, string), Sit (), Walk (), Swing ().... Here are some descriptions of a monkey that applies in your program. A part of KongCrew.txt is shown in the following. Jump Banana 0 3 Name Sit Donkey Kong Y Chunky Kong N Walk Y Swing Y O Leap N Y 2 1 Year Family 1981 Donkey N Y Create subdirectory WK13; Create DK-OOP.cpp You need to use an array of objects in this program. Develop the program that can answer the following questions related to Donkey Kong. Each answer can be a separate function; o 2007 Dixie Develop a constructor that makes Donkey family leap from "Papaya tree" to "Banana tree" but Dixie family from "Coconut tree" to "Rubber tree" Develop a destructor that delete all the Kongs. . o Find and list the Donkey family members who cannot leap; take a snap shot: snap1.jpg: o Update the Banana field of all the KongCrew such Banana += Jump * 5. List the KongCrew who has more than 15 bananas; take a snap shot: snap2.jpg. Find and list the ones who introduced before 2000; take a snap shot: snap3.jpg.]
expand button
Transcribed Image Text:This is a part of OOP class work, which we have been doing in class. Here are more characteristics of a monkey that Britannica says. Most species are arboreal, using all four limbs to leap from tree to tree. They can sit upright and stand erect. Most species run along branches rather than swinging arm over arm like the apes. Monkeys are highly social omnivores, organized in clans as large as several hundred individuals headed by an old male. The underlines are at least behavior (member functions) that you are asked to add to your OOP program such as Leap(string, string), Sit (), Walk (), Swing ().... Here are some descriptions of a monkey that applies in your program. A part of KongCrew.txt is shown in the following. Jump Banana 0 3 Name Sit Donkey Kong Y Chunky Kong N Walk Y Swing Y O Leap N Y 2 1 Year Family 1981 Donkey N Y Create subdirectory WK13; Create DK-OOP.cpp You need to use an array of objects in this program. Develop the program that can answer the following questions related to Donkey Kong. Each answer can be a separate function; o 2007 Dixie Develop a constructor that makes Donkey family leap from "Papaya tree" to "Banana tree" but Dixie family from "Coconut tree" to "Rubber tree" Develop a destructor that delete all the Kongs. . o Find and list the Donkey family members who cannot leap; take a snap shot: snap1.jpg: o Update the Banana field of all the KongCrew such Banana += Jump * 5. List the KongCrew who has more than 15 bananas; take a snap shot: snap2.jpg. Find and list the ones who introduced before 2000; take a snap shot: snap3.jpg.
Expert Solution
Check Mark
Knowledge Booster
Background pattern image
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
    SEE MORE QUESTIONS
    Recommended textbooks for you
    Text book image
    Database System Concepts
    Computer Science
    ISBN:9780078022159
    Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
    Publisher:McGraw-Hill Education
    Text book image
    Starting Out with Python (4th Edition)
    Computer Science
    ISBN:9780134444321
    Author:Tony Gaddis
    Publisher:PEARSON
    Text book image
    Digital Fundamentals (11th Edition)
    Computer Science
    ISBN:9780132737968
    Author:Thomas L. Floyd
    Publisher:PEARSON
    Text book image
    C How to Program (8th Edition)
    Computer Science
    ISBN:9780133976892
    Author:Paul J. Deitel, Harvey Deitel
    Publisher:PEARSON
    Text book image
    Database Systems: Design, Implementation, & Manag...
    Computer Science
    ISBN:9781337627900
    Author:Carlos Coronel, Steven Morris
    Publisher:Cengage Learning
    Text book image
    Programmable Logic Controllers
    Computer Science
    ISBN:9780073373843
    Author:Frank D. Petruzella
    Publisher:McGraw-Hill Education