would someone be so kind to write the code for these programs? (school work, and I don't have time it's not a matter of not understanding) :)
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 ﬁnish 100 meters.
Enter meters run: 1645
Enter time in seconds: 450
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.
Enter value in cms: 4.5
RESULT: 4.5 cms is 1.77 inches
Re: would someone be so kind to write the code for these programs? (school work, and I don't have time it's not a matter of not understanding) :)
Sorry, this forum does not support academic dishonesty. Thread closed.