Topic 10 Parameters Case Study - PowerPoint PPT Presentation

About This Presentation
Title:

Topic 10 Parameters Case Study

Description:

... involves structured programs input from a user loops variables expressions methods parameters Problem Statement A triathlon is an endurance event consisting ... – PowerPoint PPT presentation

Number of Views:9
Avg rating:3.0/5.0
Slides: 5
Provided by: MikeS122
Category:

less

Transcript and Presenter's Notes

Title: Topic 10 Parameters Case Study


1
Topic 10Parameters Case Study
  • "Thinking like a computer scientist means more
    than being able to program a computer. It
    requires thinking at multiple levels of
    abstract."
  •           Jeannette M. Wing

Based on slides for Building Java Programs by
Reges/Stepp, found at http//faculty.washington.e
du/stepp/book/
2
Case Study
  • This case study involves
  • structured programs
  • input from a user
  • loops
  • variables
  • expressions
  • methods
  • parameters

3
Problem Statement
  • A triathlon is an endurance event consisting of a
    swim, bike, and run portion.

4
More details
  • Write a program that determines the average speed
    of each leg based on a number of participants.
  • Swim is expressed as time per 100m
  • Biking is expressed in miles per hour
  • Running is expressed as time per mile
  • Ask user for number of athletes
  • User inputs swim, bike, and run distances
  • User nput times for each athlete
  • Show results
Write a Comment
User Comments (0)
About PowerShow.com