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
3. Given the following three dimensional array
int s[2][4][2]={ 1,2,3,4, , 16}; female
male
undergrad
Grad
Math Phy Bio Cmps
Write a program to:
a. compute the total number of all students
b. total number of undergraduate students
c. total number of biology students
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