Question: SIDE NOTE: PLEASE USE C++ mming Exercise #3-User Defined Functions ( The Quebec government is trying to crack down on texting and driving. The law

SIDE NOTE: PLEASE USE C++
mming Exercise #3-User Defined Functions ( The Quebec government is trying to crack down on texting and driving. The law is very clear: you must not hold a cell phone in your hand while driving. Failure to abide by this rule is an offence subject to a fine and demerit points. Write Car tepped.at ito..iga ? p tradfie light a program that determines the penalty for a driver holding a cell phone while driving based on Nancy's Crazy criteria. If the driver is driving and holding a cell phone .On the highway the fine is $80. If it is the drivers 1t offence s/he gets 1 demerit point otherwise 2 demerit points. In a school zone the fine is $100 (the maximum). If the driver has been driving for less than 24 months s/he loose his/her license on the spot otherwise s/he get 4 demerit points (the maximum). If the car is stopped such as at a stop sign or a traffic light and the cellphone is an iPhone, the fine is $100 and s/he gets 2 demerit point otherwise the fine is $80 and s/he pets 1 demerit points. (Crazy Nancy does not like iPhones.) .All other cases the fine is $90 and the driver gets 3 demerit points. After determining where the driver was stopped and their fine, if they have not yet lost their license, ask the officer how many demerit points the driver originally had. When a driver has 12 demerit points they lose their license. Determine if the driver should lose their license given where they were when holding Figur. 9-in a bchlal sang their cell phone. Output how many demerit points the driver now has. Make sure the officer enters 1 to 4 for the choice of location. Your program must have at least the following functions: displayHeader: this function is a woid function and has no parameters. It simply displays the welcome banner on the screen. menuAndChoice: this is an integer function with no parameters; it displays the menu and returns the officer's input as to where the driver was stopped. . finesDemerits: this function is a void method with a value parameter for the location of the fine Figure10 . at ilaht or Stop skin value returned by the menuAndChoice() function) and two reference parameters; it calculates the drivers fines and demerit points. showFinesDemerits: this void function has two value parameters. It displays the fine, the demerit points and whether the driver has lost his/her driver's license. Here are a few sample outputs to illustrate the expected behavior of your program. Note: user input is highlighted with a green circle are the e
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
