Answered step by step
Verified Expert Solution
Question
1 Approved Answer
3.2 Zombie Apocalypse This week you will write a program to record a zombie apocalypse log. The log allows you, in the event of an
3.2 Zombie Apocalypse This week you will write a program to record a zombie apocalypse log. The log allows you, in the event of an actual zombie apocalypse, to keep track of the zombies that you encounter. You will enter whether you encountered a dead zombie or one that was still alive. If you encounter a dead zombie, you wl be asked to take note of how many toes it had, and if if was alive, you can record how many ms of blood oozed from its body after you killed it You will also record the day and time that you encountered this zombie. For this lab, you w be using a structure that looks like this: struct zombie enum (MONDAY1, TUESDAY, WEDNESDAY, THURSDAY FRIDAY, SATURDAY, SUNDAY day; float blood; int toes int hour int nin; int sec; char dead; y if dead, n if alive Your program should display the following menu when run: 1) Enter new zombie information 2) Display zombie information 3) Return to fighting zombies (exit) If you type 1 and hit enter, your program prompts you like this: Was the zonbie found dead? Y or N S> You can only enter one or the other because the memory we are using is very expensive. We only have room for one. At this point you must enter either Y or N. Then a corresponding question will follow. This is an example of the code running
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started