Very simple programs, if anyone would be so kind haha
1)Jennifer is training for an upcoming race. She uses her
stop watch to check how many seconds she runs and a
device which calculates how many meters she has run.
Her aim is to run 100 meters in the race.
Write a Java program called checkSpeed.java which
does the following:
1. Accepts minutes and meters as inputs.
2. Prints out the speed (per second) which she is running.
3. It also prints out how long, at the current speed, it
would take her to finish 100 meters.
sample output
Enter meters run: 1645
Enter time in seconds: 450
RESULTS
Your current speed is 3.65 meters per second.
At this rate you will cover 100 meters in 27.39 seconds.
2)Mr. Murphy wants a program that can accept a value in
cms (centimeters) and print out its equivalent value in
inches. Write a Java program called cmsToInches.java
which performs this task for Mr. Murphy.
sample output
Enter value in cms: 4.5
RESULT: 4.5 cms is 1.77 inches
thanks