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.

What's wrong with this psuedocode?

Doing a lab project for an IT course and i am using Python in IDE to learn the basics of programming yet i keep getting errors with the following code. Can you see what i can't?

dayoFweek = raw_input ('Enter day of the week. ')

numberOfsteps = raw_input ('Enter the number of steps. ')

caloriEsused = (numberOfsteps/2000)*65

print 'The calories used is', caloriEsused

2 Answers

Relevance
  • 1 decade ago
    Favorite Answer

    There is nothing wrong with your pseudo code.

    Pseudo code, by definition, is a simplified layout of what you want your program to do, bypassing a lot of the details.

    For instance, here's some "pseudo code" to get ready in the morning:

    Get out of bed

    Take a shower

    Get dressed

    Eat breakfast

    Notice that there are no details here, and if this were converted into a program, you would, in fact, clean it up with all the necessary details.

    MY pseudo code will NOT be the same as YOUR pseudo code, because it is just your own words to describe in broad strokes, what you want your program to do.

  • 1 decade ago

    initialize your variables. also, you have the comma in the last line outside of the apostrophe. i haven't programmed python before, but this doesn't seem right.

Still have questions? Get your answers by asking now.