The code is meant to return the percentage value of the ratio between 2 variables as long as one is greater than 3 please help | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

The code is meant to return the percentage value of the ratio between 2 variables as long as one is greater than 3 please help

https://code.sololearn.com/cIkHRZWgb95H/?ref=app

22nd Feb 2023, 5:17 AM
Emmanuel Timilehi
Emmanuel Timilehi - avatar
4 Answers
+ 2
Some things I noticed You calculated <result> while you haven't read value for <houses> You print unnecessary stuffs like prompt for <houses> and warning for when <houses> is less than 3. This can fail your attempts solving Coach challenge You don't round <percent> up where task Description specifically states rounding up is required.
22nd Feb 2023, 7:57 AM
Ipang
+ 2
If this was about Coach Challenge then output must be exactly as requested in task Description. Any output printed other than what was requested will be considered a violation to the task requirement. That is if this was about the halloween challenge, and other Coach Challenges though ...
22nd Feb 2023, 9:30 AM
Ipang
+ 1
Ipang thanks alot
22nd Feb 2023, 12:15 PM
Emmanuel Timilehi
Emmanuel Timilehi - avatar
0
Ipang thanks for the answer but can you please explain how prompting for input is unnecessary. Thanks
22nd Feb 2023, 8:47 AM
Emmanuel Timilehi
Emmanuel Timilehi - avatar