Answer to Question #145312 in Java | JSP | JSF for Hamza saeed

Question #145312
Rewrite the following expressions using the conditional operator. (Assume
that all variables are declared properly.)
if (hours >= 40.0)
wages = 40 * 7.50 + 1.5 * 7.5 * (hours - 40);
else
wages ¼ hours * 7.50;
1
Expert's answer
2020-11-22T23:39:58-0500
wages = (hours >= 40.0 ? 7.5 * (40 + 1.5 * (hours - 40)) : (hours * 7.5) / 4);

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS