10.1) 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/0 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 input is -30. Note: Each record has a number (1, 2, 3 ...), once the program scans record number -30, it should terminate without processing it. SAMPLE RUN #4: ./Structures Interactive Session Hide Invisibles Highlight: None Show Highlighted Only O Enter-record number:14 Enter Make: Mercurye Enter Model:sable Enter - odometer•Reading:99842 Enter Month:1- Enter Day:18- Enter Year:2001+ Enter Month:5 Enter Day:30- Enter Year:1991+ Enter-Capacity:16+ Enter Fuel·Level:12.5- Make: Mercury-→Model: Sable+0dometer:-99842+→Manufacturer Date: 1/18/2001+Purchase Date: •5/30/1991+Tank• Capacity: 16.00- Fuel·Level:12.50- Enter record - number:-30-
IN C LANGUAGE
PLEASE PUT COPYABLE CODE
![10.1) 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 input is -30.
Note: Each record has a number (1, 2, 3 ...), once the program scans record number -30, it should terminate without processing it.
SAMPLE RUN #4: ./Structures
Interactive Session
Hide Invisibles
Highlight: None
Show Highlighted Only O
Enter record.number:1+
Enter Make:Mercury
Enter Model:Sable
Enter odometer Reading:99842-
Enter Month:1+
Enter Day:18-
Enter Year:2001-
Enter Month:5-
Enter Day:30+
Enter Year:1991-
Enter.Capacity:16+
Enter Fuel·Level:12.54
Make: Mercury-Model: Sable+odometer:-99842-Manufacturer Date: 1/18/2001+Purchase - Date: 5/30/1991+Tank - Capacity: 16.00-
Fuel·Level:12.50-
Enter record-number:-30-](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F0deebd36-9464-49e1-8a4d-66bdf06a880f%2Fe1d83d00-9d53-4340-b620-95849334b695%2Fhatc9dj_processed.png&w=3840&q=75)
![](/static/compass_v2/shared-icons/check-mark.png)
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
In C language. Please don't copy similar programs from, bartleby or chegg
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 input is -30. Note: Each record has a number (1, 2, 3 ...),once the program scans record number -30, it should terminate without processing it.
SAMPLE RUN #4: ./Structures Interactive Session Show Invisibles Highlight:
Enter record number:1
Enter Make:Mercury
Enter Model:Sable
Enter Odometer Reading:99842
Enter Month:1 Enter Day:18
Enter Year:2001
Enter Month:5
Enter Day:30
Enter Year:1991
Enter Capacity:16
Enter Fuel Level:12.5
Make: Mercury Model: Sable Odometer: 99842 Manufacturer Date: 1/18/2001 Purchase Date: 5/30/1991 Tank Capacity: 16.00 Fuel Level: 12.50
Enter record number:-3
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
![Computer Organization and Design MIPS Edition, Fi…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
![Network+ Guide to Networks (MindTap Course List)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
![Computer Organization and Design MIPS Edition, Fi…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
![Network+ Guide to Networks (MindTap Course List)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
![Concepts of Database Management](https://www.bartleby.com/isbn_cover_images/9781337093422/9781337093422_smallCoverImage.gif)
![Prelude to Programming](https://www.bartleby.com/isbn_cover_images/9780133750423/9780133750423_smallCoverImage.jpg)
![Sc Business Data Communications and Networking, T…](https://www.bartleby.com/isbn_cover_images/9781119368830/9781119368830_smallCoverImage.gif)