sambo
New Member
Posts: 1
|
Post by sambo on Nov 8, 2006 21:02:05 GMT
How do you write a program that allows the user to enter his or her first, middle, and last names on three separate lines. The program then outputs the user’s initials
The Car Chase Problem. A speeding car is traveling at x miles per hour. A police car in pursuit of the speeder is traveling at y miles per hour, where y > x. If the police car is initially a distance d away from the speeder, how long does it take the police car to catch the speeder and how far must the police car travel to do so? Can you'll help me with this one also QBasic program to solve this problem, where x, y, and d are user inputs. Remember to account for both cases: The speeder can be traveling either toward or away from the police car.
|
|
|
Post by Mikrondel on Nov 8, 2006 23:12:35 GMT
The first one needs LEFT$() and the second one needs the use of some physics equations...
For time t; yt - d = xt (y-x)t = d t = d/(y-x)
If you want more help, please show us what you have tried so far and tell us exactly what you don't understand or are stuck with.
Thanks
|
|