Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

EDITED: Does this pseudocode make sense?

I'm very terrible with counters and I was hoping someone could check this for coherence. Thank you!

// Constant for the number of calories burned per minute

Constant Real calories = 3.9

// Constant for max value

Constant Integer MAX_VALUE = 30

// Declare a variable to hold the number of calories burned

Declare Real burned

// Declare counter

Declare Integer counter

// Calculate and display the amount of calories burned

For counter = 10 to MAX_VALUE

// Calculate the calories burned

Set burned = calories * counter

// Display calories burned

Display “The amount of calories you have burned is, ” burned

Set counter = counter + 5

End For

1 Answer

Relevance
  • 6 years ago

    It's difficult to say that it makes sense without knowing what is is supposed to do. To display calories burned per five-minute period, yes, it is coherent.

    Two small points - why start counter at 10? Make the output more helpful by displaying something like "num calories used in counter minutes is burned"

Still have questions? Get your answers by asking now.