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.
Expert's answer
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 first!

Leave a comment

Ask Your question

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS
paypal