Declare a structure of type Car to represent a motor car including the elements:
make (string, ie either an array of chars or a pointer to a char)
manufactureDate (Date - see below)
purchaseDate (Date - see below)
purchasePrice (double)
You will need to also declare a structure of type Date to represent the:
day (int)
month (int)
year (int)
(That is, you will have structures nested inside a structure.)
Write a program that reads (from the user or a file - the user is given a choice) the above car information for a number of cars. Put this in an array called fleet that can hold up to 10 cars. (The program is to be able to handle a fleet of less than 10 cars as well. You may like to use a sentental value for this purpose.) The program can give the user the following options:
add a car;
delete last car (ie the last car on the array);
display the fleet on the screen;
save the fleet to a file;
read the fleet from a file.
You are not expected to be able to originally create the file externally to your program (ie you can only read it after you have saved it from your program). You are free to use either a binary or text file (hint: binary files are much easier).
Write the following input functions: addCar() and getDate() (which gets the information from the user) and readFleet() (which reads the information from a file). (You are to use the "pass-by-reference" rather than the "return" mechanism for these functions.)
Write the following output functions: showFleet(), showCar(), showDate(), (which prints the information to the screen) and saveFleet() (which saves the information to a file). Note that the purchase price is to have a '$' sign before the amount and the amount is to be printed to two decimal places.
Both the getDate() and showDate() functions should be generic enough to handle both the manufactureDate and purchaseDate.
Your program is to have appropriate error checking for user input and file I/O. That is, for user input, you need to check that the dates (ie day, month, and year) and purchase price are within an appropriate range. For the file I/O you need to check for fopen() returning a NULL pointer. You do not have to check for type mismatching.
Hi..
I am Nikhil.
I have working experience of 3+ year in C and C++Development.
I have done work on:
1. Data Structure like: Set, Vector, Linked list, Stack, Tree(Any type), Graph.
2. STL ( Standard Template Library)
3. Networking Socket, IO programming
4. File Handling and Parsing.
Currently I have done similar projects for collage students like:
1. Implemented Chess Class
2. Implemented Classes for hotel management. I delivered him but Employer did not award me project.
and Many more...
Let start conversation so you get to know about my skills and ability.
Please give me a chance to do work with you and I am promising you that you will not disappoint by me.
I read your description and understood your requirements.
I am very sure that I will do this within 3 to 4 hours.
I will write code with comments so you will understand it easily and I will also help you to solve any further query.. If you need any help after project then I will be here.
Please give a chance to conversation with you.
I am waiting for your positive response.
Thank you Very much.
$30 AUD σε 1 ημέρα
5,0 (15 αξιολογήσεις)
4,2
4,2
27 freelancers are bidding on average $54 AUD for this job
Hi, I am placing my bid on your project because I have read the requirements and I am confident enough with my C and algorithm skills. I am focused mostly on doing computer science homework here in freelancer.com and I would like to help you get this project done if you would give me the opportunity. I am a computer science professor and practitioner and this assignment is one of the fields that I teach very well so I can assure you an accurate result.
Let me know if you are interested so I can start. Thanks.
Hello,
I am an expert in C programming and have handled many such programs.
I have written programs at system levels of malloc and shell.
I can get this done in a day.
Thanks,
Shweta
Hi, I am an expert developer and I am ready to develop the program exactly according to your specification.
Please see my profile and also consider my bid.
Hi,
I am a graduate in CS and working as a C/C++ programmer for 3+ years.
I have done lots of assignments both in academic courses and in freelancer.com.
I assure you of clean, efficient code with proper comment and documentation.
thanks
I can develop such c program easily for linux environment. Just accept my bid and I will do the rest. I will use of standard coding practice of ANSI C.
I am an experienced c programmer, I can deliver you this project in 12 hours as a hard deadline.
Also I will deliver you the code fully documented.
Please contact me for any further details.
Thank you
Greetings Sir,
I'm an experienced developer ready to take up your task, moreover I've already worked with an employer from Australia. Satisfaction guaranteed!
I've graduated from Military University of Technlogy in Warsaw's Cybernetics Faculty. Currently I'm doing my Master's degree.
If you have any further questions feel free to post me.
Thanks,
Dawid Bugajewski, Eng.
Hello, i'm a software, web and mobile developer (Android), i'm a computer engineer, with 4 years of
experiences, Contact me & give me details about your project, i'm very interesting to do it
HI, This is Ranendra with 5 years experienced in c, c++, java programming.
I am interested working with you in this project and willing to give you a demo within 2 days.
waiting for your positive response,
Thanks.
Hi,
I am willing to help you with your project. I am an experienced C and C++ programmer. I studied Computer Science so I am quite used to solving various coding assignments like yours. Currently I work as a C / C++ developer.
As to your project, I think you provided very detailed description of the task and I understand everything very well so for now I don't have any questions regarding the problem.
If you choose me to do the job, I will be able to finish it in just a few hours. I will write clear and understandable code that will meet all provided requirements. I will comment the code and explain it to you if you want. I will also create a simple and easy-to-use command line interface and I will do it all really fast.
If you have any questions or suggestions, please feel free to conact me and ask. I really hope you give me the opportunity to help you. I am looking forward to your reply and discussing the details.
Regards,
Bartosz
P.S. Sorry for any possible language mistakes. I'm not a native English speaker.
UPDATE:
I just realized I actually have a question.
Do you have any requirements regarding the input and output of your program (any special format or something)? I am asking because I know assignments like this one are sometimes automatically run and evaluated by computer programs and they usually need very specific output.
Bartosz
hi,
I have an excellent C programming skills. I am from Delhi Technological University, One of the best institution of India. I have done several projects in C, C++. I have programmed robots, and simpler games like tic-tac-toe, snake and ladder. I also have experience in Image Processing.
I would love to work on this project.
Thank you,
Rohit Rawat