Help! I don't know how to start on this! (Ruby language)


#1

Hello readers!

I am a beginner ruby coder having trouble on solving this question as I don’t know how to even start!

Here is the question:

I hope someone can help me. Thank you for reading!


#2

well, the whole flow diagram indicate we can use if/else for all the options, given the assignments says the input will be valid

so in pseudo code you would get:


if male:
  if older then 40:
  
  else:

else: (assume female)

and this we can do for all the conditions

further more we need gets.chomp to get user input


#3

Thanks for the framework! I’ll give it a try!


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.