id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

health


This method is supposed to return a string telling you what to do based on your temperature in degrees Farenheit and your pulse in beats per minute. I will tell you the imporatant break-points for your temperature and your pulse, but I will not tell you the exact details of how to determine the output. It DOES make sense, so a healthy person will not be told to go to the doctor or the emergency room. The break-points for temperature are: 95, 97, 100, and 103. The break-points for pulse are: 30 and 190. Good luck!


health(97.5, 87) → "You are fine!"
health(105.8, 88) → "You need to go to the emergency room."
health(10.8, 85) → "You need to go to the emergency room."

...Save, Compile, Run (ctrl-enter)

public String health(double tempF, int pulseBPM) { }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Difficulty: 440

Copyright Nick Parlante 2017 - privacy