Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions