Question: Assembly Language (basic!) 2) (7 points) Implement the following C code in assembly language: float X float Y; printf(Enter X: ); scanf(%f, &X); printfEnter Y:

Assembly Language (basic!)

Assembly Language (basic!) 2) (7 points) Implement the following C code in

2) (7 points) Implement the following C code in assembly language: float X float Y; printf("Enter X: "); scanf("%f", &X); printf"Enter Y: "); scanf("%f ", &Y): printf("X and Y are equaln"); printf("X is lower than Yln").; printf("X is greater than Mn"); else if( ) else Substitute printf0 function calls with mWrite. Substitute scanf) functions calls with ReadFloat. Enter the following values (X and Y) as: 7.8 and 7.77 to test your program Then try to enter more values to further test your program's logic. Pay more attention when comparing floating-point values for equality (due to rounding errors problems). For further details refer to the related slides in chapter12

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!