Tamamlanmış

COSC 2425 - Project 2

COSC 2425 - Project 2

Part 1

Implement the following C++ code fragment in assembly language. Use the block structured .IF and .WHILE directives. Assume that all variables are 32-bit integers.

int array[] = {3,1,4,1,5,9,2,6,5,3,5,8,9,7,9,3,2,3,8,4,6,2,6,4};

int lower = 4;

int upper = 9;

int ArraySize = sizeof array / sizeof lower;

int index = 0;

int sum = 0;

while( index < ArraySize )

{

if( array[index] >= lower && array[index] <= upper )

{

sum += array[index];

}

index++;

}

Your assembly language program must also display as output the number of times a member of 'array' qualified for inclusion into the 'sum' and what the final value of the variable 'sum' was. (Hint: you may have to add another variable.) Feel free to use the author's procedures in the book's link library. Use only the procedures that were introduced in chapter 5.

Part 2

Write an assembly language program that asks the user to enter an integer dollar amount between 1 and 3,000. Your program should display the corresponding class description using the following table. Write the program so that it executes until the user inputs some value that you determine to be the "sentinel value". Your program must guard against and provide user messages for input values that are outside the valid range.

Donation Amount (dollars) Class of Donation

$2,000 and above Platinum

$1,500 to $1,999 Gold

$1,000 to $1,499 Silver

$500 to $999 Bronze

$1 to $499 Copper

Beceriler: Montaj, x86/x64 Çevirici, C++ Programlama, C Programlama, Yazılım Mimarisi

Daha fazlasını gör: mathematics project work cbse 10th class student, project report tennis game class xii project, algorithm project -- 2, algorithm project 2, excel project 2/2, gamele foundation project 2, management project 2, private project 2, project 2 hours back, project 2, short data mining project -- 2, short data mining project 2, swaade project -- 2, swaade project 2, survey project 2.0, 2. Two different class of users (say Type A and Type B), design project -- 2, AutoCad project 2, COSC 2425 – Project 3 Write an assembly language program that accumulates and reports the sales for the Albatross Corporation, COSC 2425 – Project 3 Write an assembly language program

İşveren Hakkında:
( 0 değerlendirme ) Irving, United States

Proje NO: #29262334

Seçilen:

mirzaahamza

Heyy I am assembly language expert and I can do your work easily.I have seen your two tasks and I can do them in one [login to view URL] me to discuss..

1 gün içinde %selectedBids___i_sum_sub_4%%project_currencyDetails_sign_sub_5% USD
(15 Değerlendirme)
3.9

Bu iş için 2 freelancer ortalamada $30 teklif veriyor

devvitaliy

Hello C/C++ Expert Checked your description and I am so interested in your project. You can see well experienced and skillful C and C++ programmer with +15 years of experience in software development. I ensure the best Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(18 Değerlendirme)
4.4