Computer Science – 10.2 Arrays | e-Consult
10.2 Arrays (1 questions)
Login to see all questions.
Click on a question to view the answer
Pseudo-code:
- Input: An array of floating-point numbers representing temperatures in Celsius (e.g., celsiustemps[0], celsiustemps[1], celsius_temps[2], ...).
- Output: Display the converted temperatures in Fahrenheit.
- For each
celsiustempin thecelsiustempsarray:- Calculate the Fahrenheit temperature using the formula:
fahrenheittemp = (celsiustemp * 9/5) + 32. - Display the
fahrenheit_temp.
- Calculate the Fahrenheit temperature using the formula: