SlideShare una empresa de Scribd logo
1 de 1
Descargar para leer sin conexión
in C 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 Highlight: Show Highlighted
Only Enter-record - number: 14 Enter-Make:Mercury Enter-Model: Sable Enter-Odometer-
Reading:99842 Enter-Month: 1 Enter-Day:18 Enter-Year:20014 Enter-Month: 5 d Enter-Day:
30+ Enter- Year: 1991 Enter-Capacity: 16 Enter-Fuel Level: 12+5 Make: -Mercury Model:
Sable Odometer: 99842 Manufacturer.Date: 1/18/2601 Purchase Date: 5/30/1991 Tank
Capacity: 16.00+ Fuel-Level : 12.50d Enter-record.number: =304 1 of 1: Tue Mar 212023
05:29:17 GMT-0500 (Central Daylight Time) 1 Type your solution here...

Más contenido relacionado

Similar a in C 10.1) Define a structure type auto_t to represent an automobile.pdf

Sheet1Allegiant Air Fleet ReplacementInstructions1. Enter the disc.docx
Sheet1Allegiant Air Fleet ReplacementInstructions1. Enter the disc.docxSheet1Allegiant Air Fleet ReplacementInstructions1. Enter the disc.docx
Sheet1Allegiant Air Fleet ReplacementInstructions1. Enter the disc.docx
lesleyryder69361
 
COIT20245, 2016 Term One - Page 1 of 9 Assessment detail.docx
COIT20245, 2016 Term One - Page 1 of 9 Assessment detail.docxCOIT20245, 2016 Term One - Page 1 of 9 Assessment detail.docx
COIT20245, 2016 Term One - Page 1 of 9 Assessment detail.docx
clarebernice
 
Toyota 02-6FG15 Forklift Service Repair Manual
Toyota 02-6FG15 Forklift Service Repair ManualToyota 02-6FG15 Forklift Service Repair Manual
Toyota 02-6FG15 Forklift Service Repair Manual
jksmemfmd
 
Toyota 62-6FD20 Forklift Service Repair Manual
Toyota 62-6FD20 Forklift Service Repair ManualToyota 62-6FD20 Forklift Service Repair Manual
Toyota 62-6FD20 Forklift Service Repair Manual
ukjsekmdwe
 
Toyota 02-6FG18 Forklift Service Repair Manual
Toyota 02-6FG18 Forklift Service Repair ManualToyota 02-6FG18 Forklift Service Repair Manual
Toyota 02-6FG18 Forklift Service Repair Manual
jkmsemm yejkmd
 
Toyota 6FD18 Forklift Service Repair Manual
Toyota 6FD18 Forklift Service Repair ManualToyota 6FD18 Forklift Service Repair Manual
Toyota 6FD18 Forklift Service Repair Manual
kjsekmd fhsemmd
 
Toyota 02-6FG14 Forklift Service Repair Manual
Toyota 02-6FG14 Forklift Service Repair ManualToyota 02-6FG14 Forklift Service Repair Manual
Toyota 02-6FG14 Forklift Service Repair Manual
ukejkmd
 
Toyota 62-6FD20 Forklift Service Repair Manual
Toyota 62-6FD20 Forklift Service Repair ManualToyota 62-6FD20 Forklift Service Repair Manual
Toyota 62-6FD20 Forklift Service Repair Manual
pokiol
 
Toyota 06 fg10 forklift service repair manual
Toyota 06 fg10 forklift service repair manualToyota 06 fg10 forklift service repair manual
Toyota 06 fg10 forklift service repair manual
jsemm fvdcf
 

Similar a in C 10.1) Define a structure type auto_t to represent an automobile.pdf (20)

Sheet1Allegiant Air Fleet ReplacementInstructions1. Enter the disc.docx
Sheet1Allegiant Air Fleet ReplacementInstructions1. Enter the disc.docxSheet1Allegiant Air Fleet ReplacementInstructions1. Enter the disc.docx
Sheet1Allegiant Air Fleet ReplacementInstructions1. Enter the disc.docx
 
Azure Stream Analytics Report - Toll Booth Stream
Azure Stream Analytics Report - Toll Booth StreamAzure Stream Analytics Report - Toll Booth Stream
Azure Stream Analytics Report - Toll Booth Stream
 
COIT20245, 2016 Term One - Page 1 of 9 Assessment detail.docx
COIT20245, 2016 Term One - Page 1 of 9 Assessment detail.docxCOIT20245, 2016 Term One - Page 1 of 9 Assessment detail.docx
COIT20245, 2016 Term One - Page 1 of 9 Assessment detail.docx
 
Toyota 02-6FG15 Forklift Service Repair Manual
Toyota 02-6FG15 Forklift Service Repair ManualToyota 02-6FG15 Forklift Service Repair Manual
Toyota 02-6FG15 Forklift Service Repair Manual
 
Toyota 62-6FD20 Forklift Service Repair Manual
Toyota 62-6FD20 Forklift Service Repair ManualToyota 62-6FD20 Forklift Service Repair Manual
Toyota 62-6FD20 Forklift Service Repair Manual
 
Toyota 02-6FG18 Forklift Service Repair Manual
Toyota 02-6FG18 Forklift Service Repair ManualToyota 02-6FG18 Forklift Service Repair Manual
Toyota 02-6FG18 Forklift Service Repair Manual
 
Toyota 6FD18 Forklift Service Repair Manual
Toyota 6FD18 Forklift Service Repair ManualToyota 6FD18 Forklift Service Repair Manual
Toyota 6FD18 Forklift Service Repair Manual
 
Toyota 6 fg14 forklift service repair manual
Toyota 6 fg14 forklift service repair manualToyota 6 fg14 forklift service repair manual
Toyota 6 fg14 forklift service repair manual
 
Toyota 02-6FG14 Forklift Service Repair Manual
Toyota 02-6FG14 Forklift Service Repair ManualToyota 02-6FG14 Forklift Service Repair Manual
Toyota 02-6FG14 Forklift Service Repair Manual
 
Toyota 62-6FD20 Forklift Service Repair Manual
Toyota 62-6FD20 Forklift Service Repair ManualToyota 62-6FD20 Forklift Service Repair Manual
Toyota 62-6FD20 Forklift Service Repair Manual
 
Toyota 06 fg10 forklift service repair manual
Toyota 06 fg10 forklift service repair manualToyota 06 fg10 forklift service repair manual
Toyota 06 fg10 forklift service repair manual
 
17408 automobile engines
17408   automobile engines17408   automobile engines
17408 automobile engines
 
Редукторы серий VF/W Bonfiglioli
Редукторы серий VF/W BonfiglioliРедукторы серий VF/W Bonfiglioli
Редукторы серий VF/W Bonfiglioli
 
Toyota 42 6 fg15 forklift service repair manual
Toyota 42 6 fg15 forklift service repair manualToyota 42 6 fg15 forklift service repair manual
Toyota 42 6 fg15 forklift service repair manual
 
Toyota 40 6 fg18 forklift service repair manual
Toyota 40 6 fg18 forklift service repair manualToyota 40 6 fg18 forklift service repair manual
Toyota 40 6 fg18 forklift service repair manual
 
Toyota 42 06 fg10 forklift service repair manual
Toyota 42 06 fg10 forklift service repair manualToyota 42 06 fg10 forklift service repair manual
Toyota 42 06 fg10 forklift service repair manual
 
Toyota 42 6 fg20 forklift service repair manual
Toyota 42 6 fg20 forklift service repair manualToyota 42 6 fg20 forklift service repair manual
Toyota 42 6 fg20 forklift service repair manual
 
Toyota 62 6 fd20 forklift service repair manual
Toyota 62 6 fd20 forklift service repair manualToyota 62 6 fd20 forklift service repair manual
Toyota 62 6 fd20 forklift service repair manual
 
Vnx.su montero-1989-service-manual
Vnx.su montero-1989-service-manualVnx.su montero-1989-service-manual
Vnx.su montero-1989-service-manual
 
SQL
SQLSQL
SQL
 

Más de siva009113

Más de siva009113 (6)

In Chapter 2, a discussion of how social media influences the politi.pdf
In Chapter 2, a discussion of how social media influences the politi.pdfIn Chapter 2, a discussion of how social media influences the politi.pdf
In Chapter 2, a discussion of how social media influences the politi.pdf
 
In March 2019, Zambia, a small open economy, lifted its export ban o.pdf
In March 2019, Zambia, a small open economy, lifted its export ban o.pdfIn March 2019, Zambia, a small open economy, lifted its export ban o.pdf
In March 2019, Zambia, a small open economy, lifted its export ban o.pdf
 
in JavsScript we have folders and files. Which folder would these tw.pdf
in JavsScript we have folders and files. Which folder would these tw.pdfin JavsScript we have folders and files. Which folder would these tw.pdf
in JavsScript we have folders and files. Which folder would these tw.pdf
 
IN JAVA PLEASEmake sure of the variables are correct and the s.pdf
IN JAVA PLEASEmake sure of the variables are correct and the s.pdfIN JAVA PLEASEmake sure of the variables are correct and the s.pdf
IN JAVA PLEASEmake sure of the variables are correct and the s.pdf
 
IN C CODEGiven an IntNode struct and the operating functions for a.pdf
IN C CODEGiven an IntNode struct and the operating functions for a.pdfIN C CODEGiven an IntNode struct and the operating functions for a.pdf
IN C CODEGiven an IntNode struct and the operating functions for a.pdf
 
In an agricultural experiment there are 25 varieties of maize, label.pdf
In an agricultural experiment there are 25 varieties of maize, label.pdfIn an agricultural experiment there are 25 varieties of maize, label.pdf
In an agricultural experiment there are 25 varieties of maize, label.pdf
 

Último

The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
AnaAcapella
 

Último (20)

Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 

in C 10.1) Define a structure type auto_t to represent an automobile.pdf

  • 1. in C 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 Highlight: Show Highlighted Only Enter-record - number: 14 Enter-Make:Mercury Enter-Model: Sable Enter-Odometer- Reading:99842 Enter-Month: 1 Enter-Day:18 Enter-Year:20014 Enter-Month: 5 d Enter-Day: 30+ Enter- Year: 1991 Enter-Capacity: 16 Enter-Fuel Level: 12+5 Make: -Mercury Model: Sable Odometer: 99842 Manufacturer.Date: 1/18/2601 Purchase Date: 5/30/1991 Tank Capacity: 16.00+ Fuel-Level : 12.50d Enter-record.number: =304 1 of 1: Tue Mar 212023 05:29:17 GMT-0500 (Central Daylight Time) 1 Type your solution here...