Answer to Question #688 in Java | JSP | JSF for Donna

Question #688
Assign to the variable float variable totalCost the product of the int quantity times the double cost.
Write the complete java statement.
1
Expert's answer
2010-09-28T00:40:41-0400
float totalCost = (float) (quantity * cost);

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