Answered step by step
Verified Expert Solution
Link Copied!

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).

image text in transcribed

image text in transcribed

-----------------------------------------

#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_VEHICLES

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

Upgrading Oracle Databases Oracle Database New Features

Authors: Charles Kim, Gary Gordhamer, Sean Scott

1st Edition

B0BL12WFP6, 979-8359657501

More Books

Students also viewed these Databases questions