Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Read the attached spec for a Triangle Evaluator program. Create and test a MARIE assembly program solution. Note: This .program will need significant use of
Read the attached spec for a "Triangle Evaluator" program. Create and test a MARIE assembly program solution. Note: This .program will need significant use of the SKIPCOND instruction?
Triangle Evaluator A controller with a camera examines triangular parts on a conveyor belt of a manufacturing process. Depending on the triangular shape of the part, it instructs the conveyor to route the part to a certain To simulate its decision process, creat representing the lengths of the sides of a triangle. e a MARIE program that will allow the user to enter three inte gers, The program should display the three input values received and then respond with a conclusion identifying the type of triangle these sides will form. The MARIE program should give the user the answer (Output) and be ready for the user to enter another set of 3 numbers. So, the program will have to clean up after itself and be ready to start on the next input set from the user To form a triangle, the length of any side must be less than the sum of the other two sides. For example, sides of 1, 2, and 4 do not form a triangle. If the three numbers do not form a triangle, inform the user via an error code. Triangles are classified by the number of sides they have of matching length: 3 is "equilateral"; 2 is "isosceles": none is "scalene" A Scalene Equilateral Isosceles Triangle Triangle Triangle The program should gracefully handle any bad data, such as one side with a zero value Negative numbers in input are NOT bad data. The camera subsystem can give a negative value depending on the direction of the side of the part. For the routing function, use the positive magnitude of any negative input received. Halt the program when the user enters three zeros as the input values. It is strongly suggested that you think through the design of your solution before you start coding. (You may save yourselves a lot of rework.)Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started