Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Flash XML Applications Use AS2 And AS3 To Create Photo Galleries Menus And Databases

Authors: Joachim Schnier

1st Edition

0240809173, 978-0240809175

More Books

Students also viewed these Databases questions

Question

2. Define reverse culture shock.

Answered: 1 week ago

Question

Define Administration and Management

Answered: 1 week ago