topic 10 parameters case study
play

Topic 10 Parameters Case Study " Thinking like a computer - PowerPoint PPT Presentation

Topic 10 Parameters 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


  1. Topic 10 Parameters 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.edu/stepp/book/ CS305j Introduction to Parameters Case Study 1 Computing

  2. Case Study 8 This case study involves – structured programs – input from a user – loops – variables – expressions – methods – parameters CS305j Introduction to Parameters Case Study 2 Computing

  3. Problem Statement 8 A triathlon is an endurance event consisting of a swim, bike, and run portion. CS305j Introduction to Parameters Case Study 3 Computing

  4. More details 8 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 8 Ask user for number of athletes 8 User inputs swim, bike, and run distances 8 User nput times for each athlete 8 Show results CS305j Introduction to Parameters Case Study 4 Computing

Recommend


More recommend