Answered You can hire a professional tutor to get the answer.

QUESTION

What will be the best types to declare the variables pass and total: total = (float) ((20.

What will be the best types to declare the variables pass and total:

total = (float) ((20.0/70) * 100);

if (total>=50) {pass=true;}

1) boolean pass = false;

float total;

2) boolean pass;

int total;

3) String pass = "false";

float total;

4) String pass = "false";

double total;

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question