0
How i write a program in c++
7 Answers
+ 1
With code.
0
I am computer science student
0
but I am failure to write this program
0
please explain me
0
do you need tutoring on C++ ? then I can ...
0
you must install aplication c++ on your PC or your phone
0
Problem Specifications
Sam is thinking about driving from his town to another location by car, but he is unsure how much time he should allow based on the distance and speed. It is important to note that some routes use miles while others use kilometers. To assist Sam, you can use the formula: Time = Distance/Speed and provide him with the time in minutes.
Write a C++ program that prompts Sam to enter the distance in either Miles or Kilometers followed by the average speed in kilometers/minute. If Sam enters the distance in Miles, you should convert it to Kilometers, with 1 mile equaling 1.6 kilometers. Your program should accept only positive numbers for distance and speed values. Once you have found the time, you should check the safety of the car systems by asking four questions:
1. What is the Oil level on the dipstick, enter 0 for below minimum, 1 for between minimum and maximum and 2 above maximum?
2. Is the front and rear Tires Pressures between 30 and 35? Answer Yes or No
3. Is the engine tempera