How could I compute the equation in java? Please see the image.

Operations Research : Applications and Algorithms
4th Edition
ISBN:9780534380588
Author:Wayne L. Winston
Publisher:Wayne L. Winston
Chapter17: Markov Chains
Section17.7: Work-force Planning Models
Problem 4P
icon
Related questions
Question

How could I compute the equation in java? Please see the image.

998.4 lbs CO2
.45kg
E KWh
charge
Mmiles
1MWH
= kg of CO2 (Equation 2)
miłes
R.
charge
MWh
1000KWH
lb
Transcribed Image Text:998.4 lbs CO2 .45kg E KWh charge Mmiles 1MWH = kg of CO2 (Equation 2) miłes R. charge MWh 1000KWH lb
Expert Solution
Step 1

converting the above equation to be used in java:

 

co2 = (((M*miles)/(R*(miles/charge)))*((E*KWh)/charge))*((998.4*lbs*co2)/MWh)*((1*MWh/1000*KWh)*((0.45*kg)/lb))

 

if units are removed, it can be further simplified as:

co2 = ((M/R)*(E/Charge))*((998.4/MWh)*(1/1000)*(0.45/lb))

steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Knowledge Booster
Random Class and its operations
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Operations Research : Applications and Algorithms
Operations Research : Applications and Algorithms
Computer Science
ISBN:
9780534380588
Author:
Wayne L. Winston
Publisher:
Brooks Cole