Question: Please help me with this program: Assignment purpose: user defined structure types ( structs ) You will change the provided card.c code to a different
Please help me with this program:
Assignment purpose: user defined structure types structs
You will change the provided card.c code to a different struct, one student will implement struct for an animal:
reptile
char array for the animal name, no white space, example: seaTurtle or seaturtle
char array for the color
double for the average weight
If you do not work with another student, implement either one reptile or bird
Student : struct reptile
Example: seaTurtle
green
weight in pounds
This is a sample code to get started:
name, date, brief description STUDENT
#define CRTSECURENOWARNINGS
#include
#include
#define SIZE
typedef struct
char nameSIZE;
char colorSIZE;
double weight;
reptile;
Function Prototypes
fills the data fields of a reptile instance
returns the filled reptile
reptile FillReptile;
fills the data fields of a reptile instance
by reference using a pointer to a reptile
void FillReptilePtrreptile reptilePtr;
fills an array of reptiles
void FillReptileArrayreptile reptileList int size;
displays one reptile
void DisplayReptilereptile anyReptile;
int main
return ;
Function Definitions
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
