Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
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 · ·