r/programmingbydoing • u/NewlyProgrammed • Apr 15 '17
#20 BMI - improve my code
I was hoping to get some feedback on how to improve my outputs on this assignment. I was able to get through my errors by making everything a Double. However, the directions include answers that are obviously in Int form. I found a Math.round function online but my answers now do not match the answers provided. (Also, any direction on using correct terminology would be appreciated).
Edit: here is the code - https://pastebin.com/GTCG0M0a
1
Upvotes
View all comments
Show parent comment
1
u/NewlyProgrammed Apr 20 '17
Thank you for the feedback. Apparently, I need to read the instructions closer.