Write a complete C or C++ program to implement a car service directory. Structure contains name...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write a complete C or C++ program to implement a car service directory. Structure contains name and surname of the owner, car id, model, registration date and next service date as day, month, year and phone number of the car owner. Your program should have the following menu. Write necessary functions for the menu: Menu: 1- Add a new car to directory 2- Delete a car from the directory 3- List available cars in the directory 4- Search a car: A Search according to car id B Search according to owner_name - 5- Update car information 6- Sort according to car id 7- Sort according to owner_name 8- Quit struct date { int day, month, year; }; struct car { int ID; char owner_name[20], owner_surname[20], model[20]; struct date reg_date, ns_date; }car_directory[100]; Important notes: .Write a user defined function for each menu option. Write a complete C or C++ program to implement a car service directory. Structure contains name and surname of the owner, car id, model, registration date and next service date as day, month, year and phone number of the car owner. Your program should have the following menu. Write necessary functions for the menu: Menu: 1- Add a new car to directory 2- Delete a car from the directory 3- List available cars in the directory 4- Search a car: A Search according to car id B Search according to owner_name - 5- Update car information 6- Sort according to car id 7- Sort according to owner_name 8- Quit struct date { int day, month, year; }; struct car { int ID; char owner_name[20], owner_surname[20], model[20]; struct date reg_date, ns_date; }car_directory[100]; Important notes: .Write a user defined function for each menu option.
Expert Answer:
Answer rating: 100% (QA)
Heres an example of how you can implement this car service directory in C cpp include include using namespace std struct Date int day month year struc... View the full answer
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these programming questions
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
Case Study: Quick Fix Dental Practice Technology requirements Application must be built using Visual Studio 2019 or Visual Studio 2017, professional or enterprise. The community edition is not...
-
Show the parse trees for the two parses that the grammar assigns for sentence S1. S1: the train station bus rumbles [3 marks] (b) Give an algorithm for a bottom-up passive chart parser without...
-
Vogts Company sells TVs. The perpetual inventory was stated as $38,500 on the books at December 31, 2014. At the close of the year, a new approach for compiling inventory was used and apparently a...
-
The 5-lb sphere is attached to a rod of negligible mass and rests in the horizontal position. Determine the natural frequency of vibration. Neglect the size of the sphere. -1 ft -0.5 ft- k = 10 lb/ft
-
Refer to the case of AMAN HOME PRODUCTS given in the exercises in the last chapter. Aman now wants to know as to where his firm stands after one month of running. Help him. Towards this purpose...
-
Using the table from Exercise 8, a) What is the probability that a randomly selected Black multigenerational family is a 2 Adult Generation family? b) What is the probability that a randomly selected...
-
(in thousands, except per share amounts) Assets Current assets: February 1, 2020 February 2 2019 Cash and cash equivalents 361,930 $ 333,330 Short-term investments (available for sale) 55,000 92,135...
-
Fawcett Institute provides one-on-one training to individuals who pay tuition directly to the business and also offers extension training to groups in off-site locations. Fawcett prepares adjusting...
-
Pick a major national event of the last 50 years that interests you. Then, look at the website of your local newspaper(or closest major city nearby) and a national newspaper.. Share a link to an...
-
*Question 3: Answer all parts * Consider the task of synchronously producing ice-cream cones, as illustrated in Figure Q3, by implementing a shift register function. Conveyor Motor (Y3) Conveyor...
-
Select both correct completions of the following sentence by considering a typical thermodynamic cycle on a temperature- entropy diagram: A non-ideal thermodynamic process that reduces pressure... a....
-
b) C Describe Flame types by drawing and samples. Explain (NOx) formation during the combustion reactions.
-
A dimensional analysis is performed on the drag on a boat. When the effects of viscosity can be neglected, the Euler number based on the drag D experienced by the boat is a function of a Froude...
-
d) Comparing the ideal air standard Otto 4 stroke cycle with the ideal air standard 4 stoke Diesel cycle. i) State how does the thermal efficiency compare when running at the same compression ratio....
-
The following data represent the monthly phone use, in minutes, of a customer enrolled in a fraud prevention program for the past 20 months. The phone company decides to use the upper fence as the...
-
1. Which of the four major types of information systems do you think is the most valuable to an organization? 2. How do you critically associate the ideas of business agility and business efficiency...
-
During the 2012 tax year, Irma incurred the following expenses: Union dues..............................................................$275 Tax return preparation...
-
Deborah purchases a new $30,000 car in 2012 to use exclusively in her business. If Deborah does not elect to expense or take bonus depreciation in 2012 and holds the car until it is fully...
-
Mark owns his home and has a $250,000 mortgage related to his purchase of the residence. When his daughter went to college in the fall of 2012, he borrowed $20,000 through a home equity loan on his...
-
Action Quest Games adjusts its accounts annually. The following information is available for the year ended December 31, 2025. 1. Purchased a 1-year insurance policy on June 1 for $1,800 cash. 2....
-
With each pass of a comet about the Sun, the comets mass (a) remains virtually unchanged. (b) actually increases. (c) is appreciably reduced.
-
Why is carbon such a special atom?
Study smarter with the SolutionInn App