Computing wind chill
On a windy day, a temperature of 15 degrees may feel colder, perhaps 7 degrees. The formula below calculates the "wind chill," i...
11 years ago
Solved
Compute total cost
A soda costs 2 dollars. A taco costs 3 dollars. Write a statement that assigns totalCost with the total meal cost given the numb...
11 years ago
Solved
Write an expression
Assigns finalResult with firstSample plus secondSample, squared, then divided by 3. Ex: If firstSample is 18 and secondSample is...
11 years ago
Solved
Circle area using pi
Write a statement that assigns circleArea with the circle's area given circleRadius. Use the built-in mathematical constant pi. ...
Assigning a sum
* Write a statement that assigns numCoins with numNickels + numDimes.
11 years ago
Solved
Simple equation: Annual salary
Given an hourly wage, compute an annual salary by multiplying the hourly wage times 40 and times 50, because annualSalary = hour...
11 years ago
Solved
Plus x: A first program
_Solve this problem in Mathwork's online Cody system._
Write a statement that assigns y with 5 plus x.
Ex: If input x = 2,...