o 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. ■ o Find and list the ones who introduced before 2000; take a snap shot: snap3.jpg.
instructions in the picture, KongCrew.txt file with the info below.
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
Step by step
Solved in 4 steps with 9 images
can you make it so it reads from the kongcrew.txt file instead of typing out the info?
can you also make it where it lists all of the specifications with the information below like the bolded texted in the picture? example below
Name Sit Walk Swing ....... and so on with the info below (make one print out before adding the second ss and after so it shows the updated info of how many bananas the monkeys have before and after)
the txt file information is below.
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