Answered step by step
Verified Expert Solution
Link Copied!

Question

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. I also need to use arrays for these questions.

1. Given the 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 to Expert-Tailored 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

Recommended Textbook for

Modern Database Management

Authors: Jeffrey A. Hoffer Fred R. McFadden

9th Edition

B01JXPZ7AK, 9780805360479

More Books

Students also viewed these Databases questions

Question

Sketch a circuit for the function from Exercise 2.31.

Answered: 1 week ago