When i write these numbers (60 mph) and (240 feet) in my code it is different than what i get in the calculator, although the rest of the calculations are correct. Also i have another problem when i click choice 1 then i choose a choice that is not available it first show “choice not available” then it shows “Minor wreck”. here is my C++ code: https://onlinegdb.com/107GVgeXj I tried to put brackets in the formula but it doesn’t work.
I tried to put brackets to end the else loop but it shows that there is error. Can you please check if my code is correct?
Alya is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1