Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please answer fully in C programming (pointers). ----------------------------------------- #include #include #define MAX_STR 32 #define MAX_VEHICLES 4 #define MAX_CUSTOMERS 6 typedef struct { // ADD MEMBER
Please answer fully in C programming (pointers).
-----------------------------------------
#include
#include
#define MAX_STR 32
#define MAX_VEHICLES 4
#define MAX_CUSTOMERS 6
typedef struct {
// ADD MEMBER VARIABLES
} VehicleType;
typedef struct {
// ADD MEMBER VARIABLES
} CustomerType;
void print_vehicle(VehicleType *v) {
//add code here!!!
}
int main() {
CustomerType customers[MAX_CUSTOMERS];
return 0;
}
Defined structures This program makes use of two structures that need to be completed. The first is the VehicleType structure. This structure will contain all of the data for each car owned by the customers. This structure will have fields for the following pieces of data: e . . . make (string) model (string) colour (string) year (int) mileage (int) The second structure (CustomerType) will contain all of the data regarding the individual customers. It will have the following fields: first name (string) . last name (string) . number of vehicles registered with the shop (int) . a Vehicle Type array storing the individual vehicles owned by the customer (declared to have a length of MAX_VEHICLESStep 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