FLC is developing a new system for an engineering company. A common requirement within the new system is to know whether sets of product dimensions will fit together correctly to produce the right angled triangle shape which is needed for maximum efficiency.
Your program should prompt the user for sets of test data in the form of three triangle side lengths. The user is required to enter the longest of the set first. For each set of three dimensions it should decide whether those three lengths would produce a right angled triangle and give simple Yes/No answer to the tester.
Eventually your routine will be incorporated into the whole engineering system. For now you are asked to produce a initial program to show that right angled triangles are being correctly identified.
Pseudocode Design
module Main()
begin
get Batch code
while Batch code is greater than blank
get DimensionA
get DimensionB
get DimensionC
if DimensionA is not longest
Please stick to the pseudocode. Even giving me a basic structure to then work on is much appreciated but any and all help is appreciated as I do need help with this. Have some code but honestly think I've screwed up and can't get it to work so I would like to compare or get a new basic structure to build on. You could see this as a test of your skills or just helping someone out but again any information is appreciated.
Please stick to the pseudocode [...] You could see this as a test of your skills [...]
I've been thinking about this for a while. I concluded that in order to stick to the pseudocode as much as possible and test my skills at the same time (I've been playing with DSLs in Clojure lately), the most reasonable option would be to write an interpreter for (something like) your pseudocode. Your program runs fine, however there's a lot of stuff not implemented yet (e.g. recursion), so don't try anything crazy and expect it to work.