Jump to content

Check out our Community Blogs

Register and join over 40,000 other developers!

Recent Status Updates

View All Updates

- - - - -

I need help with basic Pseudocode for homework please

coding pseudocoding homework

This topic has been archived. This means that you cannot reply to this topic.
1 reply to this topic

#1 bmxrival


    CC Lurker

  • Just Joined
  • Pip
  • 1 posts

Posted 09 September 2015 - 10:45 AM

input weightNum
weightNum = 133
input heightNum
heightNum = 63^2
input bmiNum
bmiNum = (weightNum * 703 / heightNum)
output bmiNum
I'm taking intro class and my first assignment is to come up with a logic for a BMI calculator. Did i do this correctly? If not please help me understand

#2 dargueta


    I chown trolls.

  • Moderator
  • 4854 posts

Posted 09 September 2015 - 07:05 PM

I'm assuming 133 and 63^2 are just example inputs? You don't show inputs in pseudocode.

sudo rm -rf / && echo $'Sanitize your inputs!'

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download