Question: hey im trying to create a program in c (not c++ !!) that does the folowing: Suppose you have a binary file called cars.dat. You
hey im trying to create a program in c (not c++ !!) that does the folowing:
Suppose you have a binary file called cars.dat. You know that the file contains information about unknown number of cars of the following type:
struct Car {
char brand[50];
char model[30];
double engine_power; //in horse power (hp) double price;
long produced_year;
int Mileage;
};
i want to Load information of all the cars from file cars.dat into a dynamic array. i want it to be a dynamic array becasue i wan the user to choose how many cars will exist.
After loading all the information into a dynamic array , i want the program to searche the array and print out the information of all the BMW cars that are produced after 2016, their price is between 200000 and 300000, and they have their mileage under 6000.
thank u beforehand!
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
