Unit 2 Exercise: Logic Drill 2
Write out the logic to the following problems. Example: Represent the logic of a decision whether to wear a coat if the temperature is less than 60 degrees Fahrenheit, and not to wear one if the temperature is 60 degrees or greater. Solution: start Declarations integer temperature output “Enter temperature: “ input temperature if (temperature …
