please follow the screenshot as a reference which is posted.  can you make it so it reads from the kongcrew.txt file instead of typing out the info? can you also make where it lists all of the specifications with the information below like the bolded text 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) 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

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter10: Classes And Data Abstraction
Section: Chapter Questions
Problem 19PE
icon
Related questions
Question

please follow the screenshot as a reference which is posted. 

can you make it so it reads from the kongcrew.txt file instead of typing out the info?

can you also make where it lists all of the specifications with the information below like the bolded text 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)

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

 
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.
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
steps

Step by step

Solved in 4 steps with 4 images

Blurred answer
Knowledge Booster
Development strategies
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
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning