Question: write c++ program using visual studio.You are an engineer at fort motor company. You have been assigned to write a program that provides the correct
write c++ program using visual studio.You are an engineer at fort motor company. You have been assigned to write a program that provides the correct response for the air bag module. You must write a program that accommodates both adults and children in both the front and passenger seats. Prompt the user for two passenger weights. one for the driver and one for the passenger. make sure that the proper weights are entered. if a negative number is entered, the program must respond with error message and keep asking the user for the input again until a correct weight is provided. once the correct weights are input, write the code that will do the correct action (in this case, print to the console the following message).
| condition | Weight | Action: console output message |
| Driver | Less than 100 pounds | Never deploy |
|
| Between 100 and 249 pounds | Deploy at half force |
|
| Greater than 250 | Deploy at 2xforce |
|
|
|
|
| Passenger side | Between 0 and 75 pounds | Unsafe condition!! |
|
| Between 76 and 150 pounds | Deploy |
|
| Greater than 250 pounds | Deploy at full force |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
