Write a conditional that assigns the boolean value true to the variable fever if the variable temperature is greater than 98.6 .


i dont understand what i'm suppose to do...

can you explain what i am suppose to do please..

Recommended Answers

All 2 Replies

Write a conditional that assigns the boolean value true to the variable fever if the variable temperature is greater than 98.6 .


i dont understand what i'm suppose to do...

can you explain what i am suppose to do please..

if(temperature>98.6)
fever = true;

THK:
I suggest you read through (or maybe even complete) Sun's Java Tutorial. Also, you might want to read this.
Tyler: Why encourage him?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.