IB Computer Science Unit 1
IB Computer Science Unit 2
IB Computer Science Unit 3
IB Computer Science Unit 4
IB Computer Science Unit 5
IB Computer Science Unit 6

IB Computer Science Practice Java Evaluation 1

A runner runs around a circular track with a specific diameter 5 times.

Write a Java Program that accomplishes the following

Asks the user for the following information

  • Full Name
  • Diameter of the track they are running around in meters rounded to the nearest meter
  • Time in minutes and seconds it took them to run around the track 5 times, rounded to the nearest minute and seconds

Display on the screen the runners name and his average speed with units of m/s

  • Note: Speed = Distance Travelled / Time