New programming languages

Moderators: None (Apply to moderate this forum)
Number of threads: 113
Number of posts: 331

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
HELP Eiffel Posted by Leesie on 12 Dec 2008 at 10:10 AM
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!




 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.