Question: I need help programming this code in C++ ASSEMBLY LANGUAGE . I need help ASAP. Thank you. By Assembly Language, I mean this following format:
I need help programming this code in C++ ASSEMBLY LANGUAGE. I need help ASAP. Thank you.
By Assembly Language, I mean this following format:
#include
using namespace std;
//any voids
void ...()
{
}
// any varibles
int/short variable_n
int main ()
{
_asm
{
... Assembly Code
}
}
I can NOT use a for, while, do-while loop nor can I use if-else statements. I must use the asm format above.
1. Given array : int a[5]. Write a program to:
a. generate 5 random numbers <=20 and store them in array a
b. Display array a
c. Compute and display the total of numbers in array a
d. Find and display the maximum number in array a
2. Given the following two dimensional array
| S | M | L | XL | |
| Green | 10 | 5 | 20 | 5 |
| Blue | 30 | 15 | 5 | 10 |
| Black | 10 | 20 | 10 | 10 |
short t[3][4] = { 10,5,20,5,30,15,5,10,10,20,10,10};
Write a program to compute and print each of the following:
a. Total number of all shirts ( use a loop structure)
b. Total number of black shirts
c. Total number of Large shirts
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
