1. Engineering
  2. Computer Science
  3. 2 10 marks if n is the number of seconds...

Question: 2 10 marks if n is the number of seconds...

Question details

2. [10 marks] If n is the number of seconds between lightening and thunder, the storm is n/5 miles away. Write a program that reads the number of seconds between lightening and thunder and reports the distance of the storm. A sample run is shown below. Thunder and Lightening Number of seconds between lightening and thunder 1.25 Compute Distance The distance of the stom is 0.25 miles.

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution