Question: update or modify the following codes so that they pass the following tests 1 ( 2 4 | :~Enter the Species ID file ~:speciesid.txt 2

update or modify the following codes so that they pass the following tests1(24| :~Enter the Species ID file ~:speciesid.txt
25|
26| :~Enter the Expenses file ~:expenses.txt
27|
28| :~Enter the number of Zoo files available (at least two) ~:3
29|
30| :~Enter a Zoo name ~:saginaw
31|
32| :~Enter a Zoo name ~:detroit
33|
34| :~Enter a Zoo name ~:saintlouis
35|
36| Menu:
37|1: The healthiest zoo
38|2: The most expensive zoo
39|3: Individual information
40|4: Twins separated at birth
41| X: Quit the program
42|
43|
44| :~Input a choice ~:1
45|53% of Detroit Zoo animals are sick. The sickest being Chicken and Cow and Duck and Hippo and Kangaroo and Wolf and Zebra.
46|43% of Saginaw Zoo animals are sick. The sickest being Fox and Snake.
47|43% of Saintlouis Zoo animals are sick. The sickest being Fox and Iguana and Kangaroo and Lion and Rhino and Turtle and Zebra.
48| Saginaw and Saintlouis Zoos take better care of their animals!!!
49|
50| Menu:
51|1: The healthiest zoo
52|2: The most expensive zoo
53|3: Individual information
54|4: Twins separated at birth
55| X: Quit the program
56|
57|
58| :~Input a choice ~:2
59| Detroit Zoo spends $667,268.25 a month.
60| Saginaw Zoo spends $1,542,589.50 a month.
61| Saintlouis Zoo spends $969,250.75 a month.
62| Saginaw Zoo is the most expensive zoo!!!
63|
64| Menu:
65|1: The healthiest zoo
66|2: The most expensive zoo
67|3: Individual information
68|4: Twins separated at birth
69| X: Quit the program
70|
71|
72| :~Input a choice ~:3
73| :~Enter a zoo ~:Saintlouis
74| :~Enter an animal species ~:Tiger
75| :~Enter the animals name ~:Sharikhan
76|
77| Sharikhan
78|***************
79| Species ID: 21
80| Species: Tiger
81| Age: 18 years old
82| Sex: male
83| Health: healthy
84| Years at Zoo: 15
85| Favorite game: puzzles
86| Favorite food: red meat
87| Personality: independent
88| Money spent per month: $17,408.00
89|
90| Menu:
91|1: The healthiest zoo
92|2: The most expensive zoo
93|3: Individual information
94|4: Twins separated at birth
95| X: Quit the program
96|
97|
98| :~Input a choice ~:4
99|
100| Euclid and Wigglesworth are twins separated at birth!!!
101|
102| Euclid
103|***************
104| Species ID: 46
105| Species: Gorilla
106| Sex: male
107|
108| Wigglesworth
109|***************
110| Species ID: 46
111| Species: Gorilla
112| Sex: male
113|
114|
115| They both:
116| Are 28 years old.
117| Are needy.
118| Their favorite game is platforms.
119| Their favorite food is rodents.
120|
121| Paella and Vase are twins separated at birth!!!
122|
123| Paella
124|***************
125| Species ID: 11
126| Species: Giraffe
127| Sex: female
128|
129| Vase
130|***************
131| Species ID: 5
132| Species: Kangaroo
133| Sex: female
134|
135|
136| They both:
137| Are 25 years old.
138| Are curious.
139| Their favorite game is puzzles.
140| Their favorite food is grain.
141|
142| Menu:
143|1: The healthiest zoo
144|2: The most expensive zoo
145|3: Individual information
146|4: Twins separated at birth
147| X: Quit the program
148|
149|
150| :~Input a choice ~:X
151| Thank you for your time at the Zoo!!!), test 2

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!