Hey guys, i was given a mock assignment using eiffel in one of my fundamentals classes:
Write a modular program in Eiffel that performs the following:
1) The user inputs 15 temperatures in Fahrenheit and saves them in an array. The temperatures can be positive or negative and can be real.
2) Converts these temperatures into their Celsius counterparts and save it in another array. The formula to do so is
Temperature in Celsius = (Temperature in Fahrenheit - 32) * 5/9
3) Print a report with proper headings and display the two corresponding arrays in a tabular form. Please format the temperatures, with two digits after the decimal. A report may look like the following
I was wondering if anyone could bang out a rough version of this, because I'm having a large difficulty with this language altogether, seeing as how we just started 2-3 weeks ago. I understand how to do it using classes.. but apparently thats now how its required. if anyone could help me out that would be great, thanks!
0 · ·