FULL SOLUTION GRADED A+
● Fahrenheit to Celsius using multiple statements
-write a statement that assigns fractionalMultiplier with 5/9
-convert fahrenheit to celsius
-assign temperatureCelius with the celsius value. Answer:
temperatureFahrenheit= 77
fractionalMultiplier=5/9
C=5/9*(temperatureFahrenheit-32)
temperatureCelsius= C
● Curving an exam score
-assign myExamScore with 82
-assign myCurvedExamScore +5. Answer: myExamScore= 82
myCurvedExamScore=myExamScore+5
● circle area using pi
-assign circleArea with the circle's given circleRadius. Answer:
circleRadius= 5
, circleArea=pi*(circleRadius)^2
● Compute an expression
-assign finalResult with firstSample +secondSample then divide by 3.
Answer: firstSample= 18
secondSample =12
finalResult=(secondSample+firstSample)/3;
● compute total cost
-assign totalCost with the total meal cost given the number of drinks and
tacos. Answer: numDrinks= 4
numTacos= 6
tacoCost= 3
drinkCost-2
totalCost =(numDrinks*drinkCost)+(numTacos*tacoCost)
● Expression with multiple exponents: computing wind chill. Answer:
airTemp= 32
windSpeed= 10
C=35.7+(0.6*T)-35.7*(W^0.6)+0.43*T(W^0.16)
%note that parenthesis are very important in this equation