Vacation time! But before you go, you need to convert your currency. Letβs write the code for the dollarToYen function. dollarToYen takes dollar as a parameter and returns the equivalent amount of Japanese yen. The conversion rate is 1 USD equals 149.72 Japanese yen. Put the necessary blocks of code in the correct order.
Many computations can be expressed more concisely using the βmultaddβ operation, which takes three operands and computes a * b + c. Some processors even provide a hardware implementation of this operation for floating-point numbers. Write the function multadd so that it takes in three double values and returns the result of multiplying the first two and then adding the third value.
The βwind chill temperatureβ is the temperature it feels like when the wind is blowing. The National Weather Service uses the formula \(WCT = 35.74 + 0.6215T - 35.75(V^{0.16}) + 0.4275T(V^{0.16})\) where T is the temperature in degrees F and V is the wind speed (velocity) in miles per hour to calculate the wind chill temperature. You need to write a function that will do that computation. Examine the tests and determine what the function you need to write is called, what parameters it should take, and what it should return. Then write the function.