Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Stage 1 Define four arrays, two for the database and two for the player's creatures. ( the sample file on the course website will help

Stage 1
Define four arrays, two for the database and two for the player's creatures. (the sample file on the course website will
help with this)
Use of a 2-dimensional (2D) array to store the creature names, i.e 2D creature array -10 rows x21 columns
(21 accounts for null value).
Use of a 2-dimensional (2D) integer array to store creature stats (health and attack) i.e.2D integer array -10
rows x2 columns.
For example (note the use of symbolic constants, i.e., #define MAX_CREATURES 10, etc):
Define a 2D array of creatures to store the creatures' names. For example:
char db_creatures [MAX_CREATURES][STRING_LENGTH]=,
Define a 2D array of integers to store the creatures' stat information. For example:
int db_stats[MAX_CREATURES][STATS_COUNT]={0};
image text in transcribed

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

Database Processing Fundamentals Design And Implementation

Authors: David M. Kroenke

5th Edition

B000CSIH5A, 978-0023668814

More Books

Students also viewed these Databases questions