Write a line of Java code that computes the average of three double type variables, assignment help

label Computer Science
account_circle Unassigned
schedule 1 Day
account_balance_wallet $5

Write a line of Java code that computes the average of three double type variables – d1, d2, and d3 – and stores the result in a variable of type double called avg.

Jan 18th, 2016

Thank you for the opportunity to help you with your question!

the code will be

double avg = [(-d1)+(d2)+(-d3)]/3.0 ;

...............................................................................................................................................................

Please let me know if you have any confusion in understanding the answer. I'm always happy to answer your questions. please go to your home page . click on promotion on the left side then add my name ROBERT11 in the open window and promote me
Jan 18th, 2016

Did you know? You can earn $20 for every friend you invite to Studypool!
Click here to
Refer a Friend
...
Jan 18th, 2016
...
Jan 18th, 2016
Aug 19th, 2017
check_circle
Mark as Final Answer
check_circle
Unmark as Final Answer
check_circle
Final Answer

Secure Information

Content will be erased after question is completed.

check_circle
Final Answer