Create functions based on your existing source code ex


1) Write a 100 word answer to this question:

Research and discuss error handling. What information does the user need when an error occurs in a program? According to your research, at what times would it be appropriate to throw an exception?

2) Build on the C++ program you wrote this last time doing the following:

1. Create functions based on your existing source code (ex. GetCar, CreateCar, CalculateLapTime) which take in the appropriate parameters and give the correct output. Use pointers where applicable.

2. Move validation code into functions where appropriate, and throw an exception if the input does not match your validation rules. Handle the exceptions accordingly in your main function, and output the error message to the console.

3. Include statements.

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: Create functions based on your existing source code ex
Reference No:- TGS01408327

Expected delivery within 24 Hours