Question: Use C program Define a structure type auto_t to represent an automobile. Include components for the make and model (strings), the odometer reading, the manufacture

 Use C program Define a structure type auto_t to represent an
Use C program

Define a structure type auto_t to represent an automobile. Include components for the make and model (strings), the odometer reading, the manufacture and purchase dates (use another user-defined type called date_t), and the gas tank (use a user-defined type tank_t with components for tank capacity and current fuel level, giving both in gallons). Write I/O functions scan_date, scan_tank, scan_auto, print_date, print_tank, and print_auto, and also write a driver function that repeatedly fills and displays an auto structure variable until EOF is encountered in the input file. Here is a small data set to try: Mercury Sable 99842 1 18 2001 5 30 1991 16 12.5 Mazda Navajo 123961 2 20 1993 6 15 1993 19. 3 16 7

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!