Question: SIDE NOTE: PLEASE USE C++, thank you in advanced uestion 1 - Nested selection statements (if/else-switch The Quebec government is trying to crack down on

 SIDE NOTE: PLEASE USE C++, thank you in advanced uestion 1

SIDE NOTE: PLEASE USE C++, thank you in advanced

uestion 1 - Nested selection statements (if/else-switch 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 toa Write 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 1st 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, for example 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 gets 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 what their fine if they have not yet lost their license, ask the user 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 they were holding their cell phone. Output how many demerit points the driver now has Assume you have a perfect user who enters valid input The following are recommended statements for solving this problems: switch, if/else and nested if/else. Here are a few sample outputs to illustrate the expected behavior of your program Weleone to the Fine and Denerit Point Evaluatert er t.cforeteleu vhat the fine and denerit w leone 0fF icer one iafornat lon hefere I tel1 yu what the fine and denerit peinES AP iver ua,stepped the highway Ner stepped a the kigay is stepped at a Stop sign or traffie light ..tepped at Stop .ign or traffic light lease enter the digit corresponding to your case Efieer- is this the driver' 1st offence rite a ticket fer $08 and inforn the driver that they nou have 6 denerit points ood jab efficert Crary Naneys tells you to heep up the geod werkt -) uvite a ticket fo$8 and inform the driver that they hawe 1.denerit points. jeb officert Crazy Hancy" te1ls you te heep up the geed vrkttt based on Craay HeasysCriteria oKerrinfornat ion lefere I sel hat the fine and deneri ein iver yas stopped ee the kiuay Car is stepped at a Stop sign or traffie light lease enter the digit carrespending to your cas questian officert Bau nany denerit points did driver have riar t heing steppedT Offic.r. write a ticket far tie take aus, their dever'. 1&cense and make arrange"est. to have the cap tas e oed jeb off icert Craay Nancy'tells you to keep up tle seed vorkft1

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!