Question: Write a program that, using C++, prompts the user to enter a floating point value for the radius of a circle. Within your C++ program
Write a program that, using C++, prompts the user to enter a floating point value for the radius of a circle. Within your C++ program open a block of assembly code. Use the floating point instructions from Chapter Nine to calculate the area of the circle using only assembly code. Save the area in an appropriate variable. Close your assembly block and use C++ to output the radius of the circle.
For those of you who missed class, the syntax for including a block of assembly code inside of C++ is
// C++ code begins here
int main( )
{
// C++ code
// assembly code begins here the assembly block is marked with underscore followed by asm
_asm
{
; assembly code
;end of assembly code
}
// now we are back in C++
return 0;
}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
