SlideShare a Scribd company logo
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

More Related Content

What's hot

Code transformation by direct transformation of ASTs
Code transformation by direct transformation of ASTsCode transformation by direct transformation of ASTs
Code transformation by direct transformation of ASTs
MarkRizun
 
Code Transformation by Direct Transformation of ASTs
Code Transformation by Direct Transformation of ASTsCode Transformation by Direct Transformation of ASTs
Code Transformation by Direct Transformation of ASTs
ESUG
 
C++ by shantu
C++ by shantuC++ by shantu
C++ by shantu
Shant007
 
6nullables in c#
6nullables in c#6nullables in c#
6nullables in c#
Sireesh K
 
Concept of c
Concept of cConcept of c
Concept of c
Rohan Gajre
 
Data structures Lecture no.6
Data structures Lecture no.6Data structures Lecture no.6
Data structures Lecture no.6
AzharIqbal710687
 
Armstrong calculator
Armstrong calculatorArmstrong calculator
Armstrong calculator
JayantBhatt6
 
3.2 stacks and arrays
3.2   stacks and arrays3.2   stacks and arrays
3.2 stacks and arraysallenbailey
 
Labreportofai
LabreportofaiLabreportofai
Labreportofai
ilias ahmed
 
Lo20
Lo20Lo20
Lo20
liankei
 
Write a C function that returns the length of a string. Function name: strinq...
Write a C function that returns the length of a string. Function name: strinq...Write a C function that returns the length of a string. Function name: strinq...
Write a C function that returns the length of a string. Function name: strinq...
hwbloom42
 
Activities on Software Development
Activities on Software DevelopmentActivities on Software Development
Activities on Software Development
Nicole Ynne Estabillo
 
Passing stuctures to function
Passing stuctures to functionPassing stuctures to function
Passing stuctures to function
ALI RAZA
 
Analysis of algo
Analysis of algoAnalysis of algo
Analysis of algo
Sandeep Bhargava
 
2Bytesprog2 course_2014_c1_sets
2Bytesprog2 course_2014_c1_sets2Bytesprog2 course_2014_c1_sets
2Bytesprog2 course_2014_c1_sets
kinan keshkeh
 
Exercise6 ch2
Exercise6 ch2Exercise6 ch2
Exercise6 ch2IIUM
 
Mettl prg
Mettl prgMettl prg
Mettl prg
RajSingh734307
 
Lecture 5
Lecture 5Lecture 5
Lecture 5
Tanveer Malik
 

What's hot (18)

Code transformation by direct transformation of ASTs
Code transformation by direct transformation of ASTsCode transformation by direct transformation of ASTs
Code transformation by direct transformation of ASTs
 
Code Transformation by Direct Transformation of ASTs
Code Transformation by Direct Transformation of ASTsCode Transformation by Direct Transformation of ASTs
Code Transformation by Direct Transformation of ASTs
 
C++ by shantu
C++ by shantuC++ by shantu
C++ by shantu
 
6nullables in c#
6nullables in c#6nullables in c#
6nullables in c#
 
Concept of c
Concept of cConcept of c
Concept of c
 
Data structures Lecture no.6
Data structures Lecture no.6Data structures Lecture no.6
Data structures Lecture no.6
 
Armstrong calculator
Armstrong calculatorArmstrong calculator
Armstrong calculator
 
3.2 stacks and arrays
3.2   stacks and arrays3.2   stacks and arrays
3.2 stacks and arrays
 
Labreportofai
LabreportofaiLabreportofai
Labreportofai
 
Lo20
Lo20Lo20
Lo20
 
Write a C function that returns the length of a string. Function name: strinq...
Write a C function that returns the length of a string. Function name: strinq...Write a C function that returns the length of a string. Function name: strinq...
Write a C function that returns the length of a string. Function name: strinq...
 
Activities on Software Development
Activities on Software DevelopmentActivities on Software Development
Activities on Software Development
 
Passing stuctures to function
Passing stuctures to functionPassing stuctures to function
Passing stuctures to function
 
Analysis of algo
Analysis of algoAnalysis of algo
Analysis of algo
 
2Bytesprog2 course_2014_c1_sets
2Bytesprog2 course_2014_c1_sets2Bytesprog2 course_2014_c1_sets
2Bytesprog2 course_2014_c1_sets
 
Exercise6 ch2
Exercise6 ch2Exercise6 ch2
Exercise6 ch2
 
Mettl prg
Mettl prgMettl prg
Mettl prg
 
Lecture 5
Lecture 5Lecture 5
Lecture 5
 

Similar to Cosc 2425 project 2 part 1 implement the following c++ code

P3
P3P3
P3
lksoo
 
c++ referesher 1.pdf
c++ referesher 1.pdfc++ referesher 1.pdf
c++ referesher 1.pdf
AnkurSingh656748
 
Bcsl 031 solve assignment
Bcsl 031 solve assignmentBcsl 031 solve assignment
Arrays and strings in c++
Arrays and strings in c++Arrays and strings in c++
Arrays and strings in c++
GC University Faisalabad
 
C# p9
C# p9C# p9
3 algorithm-and-flowchart
3 algorithm-and-flowchart3 algorithm-and-flowchart
3 algorithm-and-flowchart
Rohit Shrivastava
 
GSP 215 Inspiring Innovation/tutorialrank.com
GSP 215 Inspiring Innovation/tutorialrank.comGSP 215 Inspiring Innovation/tutorialrank.com
GSP 215 Inspiring Innovation/tutorialrank.com
jonhson129
 
GSP 215 Enhance teaching/tutorialrank.com
 GSP 215 Enhance teaching/tutorialrank.com GSP 215 Enhance teaching/tutorialrank.com
GSP 215 Enhance teaching/tutorialrank.com
jonhson300
 
Gsp 215 Believe Possibilities / snaptutorial.com
Gsp 215  Believe Possibilities / snaptutorial.comGsp 215  Believe Possibilities / snaptutorial.com
Gsp 215 Believe Possibilities / snaptutorial.com
StokesCope20
 
C programming session 04
C programming session 04C programming session 04
C programming session 04Dushmanta Nath
 
Class 12 computer sample paper with answers
Class 12 computer sample paper with answersClass 12 computer sample paper with answers
Class 12 computer sample paper with answers
debarghyamukherjee60
 
C programming session 05
C programming session 05C programming session 05
C programming session 05Vivek Singh
 
CSC8503 Principles of Programming Languages Semester 1, 2015.docx
CSC8503 Principles of Programming Languages Semester 1, 2015.docxCSC8503 Principles of Programming Languages Semester 1, 2015.docx
CSC8503 Principles of Programming Languages Semester 1, 2015.docx
faithxdunce63732
 
Basic Information About C language PDF
Basic Information About C language PDFBasic Information About C language PDF
Basic Information About C language PDF
Suraj Das
 
HSc Computer Science Practical Slip for Class 12
HSc Computer Science Practical Slip for Class 12HSc Computer Science Practical Slip for Class 12
HSc Computer Science Practical Slip for Class 12
Aditi Bhushan
 
Cmis 102 Effective Communication / snaptutorial.com
Cmis 102  Effective Communication / snaptutorial.comCmis 102  Effective Communication / snaptutorial.com
Cmis 102 Effective Communication / snaptutorial.com
HarrisGeorg12
 
arrays-120712074248-phpapp01
arrays-120712074248-phpapp01arrays-120712074248-phpapp01
arrays-120712074248-phpapp01Abdul Samee
 
Objectives Assignment 09 Applications of Stacks COS.docx
Objectives Assignment 09 Applications of Stacks COS.docxObjectives Assignment 09 Applications of Stacks COS.docx
Objectives Assignment 09 Applications of Stacks COS.docx
dunhamadell
 

Similar to Cosc 2425 project 2 part 1 implement the following c++ code (20)

C sharp chap6
C sharp chap6C sharp chap6
C sharp chap6
 
P3
P3P3
P3
 
c++ referesher 1.pdf
c++ referesher 1.pdfc++ referesher 1.pdf
c++ referesher 1.pdf
 
Bcsl 031 solve assignment
Bcsl 031 solve assignmentBcsl 031 solve assignment
Bcsl 031 solve assignment
 
Arrays and strings in c++
Arrays and strings in c++Arrays and strings in c++
Arrays and strings in c++
 
C# p9
C# p9C# p9
C# p9
 
Chap 01[1]
Chap 01[1]Chap 01[1]
Chap 01[1]
 
3 algorithm-and-flowchart
3 algorithm-and-flowchart3 algorithm-and-flowchart
3 algorithm-and-flowchart
 
GSP 215 Inspiring Innovation/tutorialrank.com
GSP 215 Inspiring Innovation/tutorialrank.comGSP 215 Inspiring Innovation/tutorialrank.com
GSP 215 Inspiring Innovation/tutorialrank.com
 
GSP 215 Enhance teaching/tutorialrank.com
 GSP 215 Enhance teaching/tutorialrank.com GSP 215 Enhance teaching/tutorialrank.com
GSP 215 Enhance teaching/tutorialrank.com
 
Gsp 215 Believe Possibilities / snaptutorial.com
Gsp 215  Believe Possibilities / snaptutorial.comGsp 215  Believe Possibilities / snaptutorial.com
Gsp 215 Believe Possibilities / snaptutorial.com
 
C programming session 04
C programming session 04C programming session 04
C programming session 04
 
Class 12 computer sample paper with answers
Class 12 computer sample paper with answersClass 12 computer sample paper with answers
Class 12 computer sample paper with answers
 
C programming session 05
C programming session 05C programming session 05
C programming session 05
 
CSC8503 Principles of Programming Languages Semester 1, 2015.docx
CSC8503 Principles of Programming Languages Semester 1, 2015.docxCSC8503 Principles of Programming Languages Semester 1, 2015.docx
CSC8503 Principles of Programming Languages Semester 1, 2015.docx
 
Basic Information About C language PDF
Basic Information About C language PDFBasic Information About C language PDF
Basic Information About C language PDF
 
HSc Computer Science Practical Slip for Class 12
HSc Computer Science Practical Slip for Class 12HSc Computer Science Practical Slip for Class 12
HSc Computer Science Practical Slip for Class 12
 
Cmis 102 Effective Communication / snaptutorial.com
Cmis 102  Effective Communication / snaptutorial.comCmis 102  Effective Communication / snaptutorial.com
Cmis 102 Effective Communication / snaptutorial.com
 
arrays-120712074248-phpapp01
arrays-120712074248-phpapp01arrays-120712074248-phpapp01
arrays-120712074248-phpapp01
 
Objectives Assignment 09 Applications of Stacks COS.docx
Objectives Assignment 09 Applications of Stacks COS.docxObjectives Assignment 09 Applications of Stacks COS.docx
Objectives Assignment 09 Applications of Stacks COS.docx
 

More from AISHA232980

Dear students,please find the below link for submitting yo
Dear students,please find the below link for submitting yoDear students,please find the below link for submitting yo
Dear students,please find the below link for submitting yo
AISHA232980
 
Dead letters!... dead men the rhetoric of the office in me
Dead letters!... dead men the rhetoric of the office in meDead letters!... dead men the rhetoric of the office in me
Dead letters!... dead men the rhetoric of the office in me
AISHA232980
 
Day 107 – mon february 8th name _____________________
Day 107 – mon february 8th     name   _____________________ Day 107 – mon february 8th     name   _____________________
Day 107 – mon february 8th name _____________________
AISHA232980
 
David discussion this class taught me a number of things in rega
David discussion this class taught me a number of things in regaDavid discussion this class taught me a number of things in rega
David discussion this class taught me a number of things in rega
AISHA232980
 
Date downloaded thu feb 11 000457 2021 source content dow
Date downloaded thu feb 11 000457 2021 source content dowDate downloaded thu feb 11 000457 2021 source content dow
Date downloaded thu feb 11 000457 2021 source content dow
AISHA232980
 
Data presetimagefill3 27.jpgdatapresetimagefill2-26.jpg
Data presetimagefill3 27.jpgdatapresetimagefill2-26.jpgData presetimagefill3 27.jpgdatapresetimagefill2-26.jpg
Data presetimagefill3 27.jpgdatapresetimagefill2-26.jpg
AISHA232980
 
Dataimage1 31.jpeg datapresetimagefill3-27.jpgdatapres
Dataimage1 31.jpeg datapresetimagefill3-27.jpgdatapresDataimage1 31.jpeg datapresetimagefill3-27.jpgdatapres
Dataimage1 31.jpeg datapresetimagefill3-27.jpgdatapres
AISHA232980
 
Database activity 21. create a database called dvd.2. create
Database activity 21. create a database called dvd.2. createDatabase activity 21. create a database called dvd.2. create
Database activity 21. create a database called dvd.2. create
AISHA232980
 
Data visualization with r rob kabacoff2018 09-032
Data visualization with r rob kabacoff2018 09-032Data visualization with r rob kabacoff2018 09-032
Data visualization with r rob kabacoff2018 09-032
AISHA232980
 
Data visualisation23 data visualisation
Data visualisation23 data visualisationData visualisation23 data visualisation
Data visualisation23 data visualisation
AISHA232980
 
Data visualisation sara miller mc cune founded sage
Data visualisation sara miller mc cune founded sageData visualisation sara miller mc cune founded sage
Data visualisation sara miller mc cune founded sage
AISHA232980
 
Daily newspaper discussionshttpsmessaging custom-newsletter
Daily newspaper discussionshttpsmessaging custom-newsletterDaily newspaper discussionshttpsmessaging custom-newsletter
Daily newspaper discussionshttpsmessaging custom-newsletter
AISHA232980
 
Cyb 690 cybersecurity program template directions the foll
Cyb 690 cybersecurity program template directions the follCyb 690 cybersecurity program template directions the foll
Cyb 690 cybersecurity program template directions the foll
AISHA232980
 
Current anthropology volume 40, number 4, august–october 1999
Current anthropology volume 40, number 4, august–october 1999Current anthropology volume 40, number 4, august–october 1999
Current anthropology volume 40, number 4, august–october 1999
AISHA232980
 
Cs633 formal research report or qa the final exam is due xxxx2
Cs633   formal research report or qa the final exam is due xxxx2Cs633   formal research report or qa the final exam is due xxxx2
Cs633 formal research report or qa the final exam is due xxxx2
AISHA232980
 
Criteria ratings points content 65 to 59.0 ptsadvanced
Criteria ratings points content 65 to 59.0 ptsadvancedCriteria ratings points content 65 to 59.0 ptsadvanced
Criteria ratings points content 65 to 59.0 ptsadvanced
AISHA232980
 
Crime is a never‐ending problem. police departments, correctiona
Crime is a never‐ending problem. police departments, correctionaCrime is a never‐ending problem. police departments, correctiona
Crime is a never‐ending problem. police departments, correctiona
AISHA232980
 
Creating your personal budget for this assignment, you will apply
Creating your personal budget for this assignment, you will applyCreating your personal budget for this assignment, you will apply
Creating your personal budget for this assignment, you will apply
AISHA232980
 
Creating a culture of innovation and creativity overview
Creating a culture of innovation and creativity overviewCreating a culture of innovation and creativity overview
Creating a culture of innovation and creativity overview
AISHA232980
 
Create an annotated bibliography assignment using your research q
Create an annotated bibliography assignment using your research qCreate an annotated bibliography assignment using your research q
Create an annotated bibliography assignment using your research q
AISHA232980
 

More from AISHA232980 (20)

Dear students,please find the below link for submitting yo
Dear students,please find the below link for submitting yoDear students,please find the below link for submitting yo
Dear students,please find the below link for submitting yo
 
Dead letters!... dead men the rhetoric of the office in me
Dead letters!... dead men the rhetoric of the office in meDead letters!... dead men the rhetoric of the office in me
Dead letters!... dead men the rhetoric of the office in me
 
Day 107 – mon february 8th name _____________________
Day 107 – mon february 8th     name   _____________________ Day 107 – mon february 8th     name   _____________________
Day 107 – mon february 8th name _____________________
 
David discussion this class taught me a number of things in rega
David discussion this class taught me a number of things in regaDavid discussion this class taught me a number of things in rega
David discussion this class taught me a number of things in rega
 
Date downloaded thu feb 11 000457 2021 source content dow
Date downloaded thu feb 11 000457 2021 source content dowDate downloaded thu feb 11 000457 2021 source content dow
Date downloaded thu feb 11 000457 2021 source content dow
 
Data presetimagefill3 27.jpgdatapresetimagefill2-26.jpg
Data presetimagefill3 27.jpgdatapresetimagefill2-26.jpgData presetimagefill3 27.jpgdatapresetimagefill2-26.jpg
Data presetimagefill3 27.jpgdatapresetimagefill2-26.jpg
 
Dataimage1 31.jpeg datapresetimagefill3-27.jpgdatapres
Dataimage1 31.jpeg datapresetimagefill3-27.jpgdatapresDataimage1 31.jpeg datapresetimagefill3-27.jpgdatapres
Dataimage1 31.jpeg datapresetimagefill3-27.jpgdatapres
 
Database activity 21. create a database called dvd.2. create
Database activity 21. create a database called dvd.2. createDatabase activity 21. create a database called dvd.2. create
Database activity 21. create a database called dvd.2. create
 
Data visualization with r rob kabacoff2018 09-032
Data visualization with r rob kabacoff2018 09-032Data visualization with r rob kabacoff2018 09-032
Data visualization with r rob kabacoff2018 09-032
 
Data visualisation23 data visualisation
Data visualisation23 data visualisationData visualisation23 data visualisation
Data visualisation23 data visualisation
 
Data visualisation sara miller mc cune founded sage
Data visualisation sara miller mc cune founded sageData visualisation sara miller mc cune founded sage
Data visualisation sara miller mc cune founded sage
 
Daily newspaper discussionshttpsmessaging custom-newsletter
Daily newspaper discussionshttpsmessaging custom-newsletterDaily newspaper discussionshttpsmessaging custom-newsletter
Daily newspaper discussionshttpsmessaging custom-newsletter
 
Cyb 690 cybersecurity program template directions the foll
Cyb 690 cybersecurity program template directions the follCyb 690 cybersecurity program template directions the foll
Cyb 690 cybersecurity program template directions the foll
 
Current anthropology volume 40, number 4, august–october 1999
Current anthropology volume 40, number 4, august–october 1999Current anthropology volume 40, number 4, august–october 1999
Current anthropology volume 40, number 4, august–october 1999
 
Cs633 formal research report or qa the final exam is due xxxx2
Cs633   formal research report or qa the final exam is due xxxx2Cs633   formal research report or qa the final exam is due xxxx2
Cs633 formal research report or qa the final exam is due xxxx2
 
Criteria ratings points content 65 to 59.0 ptsadvanced
Criteria ratings points content 65 to 59.0 ptsadvancedCriteria ratings points content 65 to 59.0 ptsadvanced
Criteria ratings points content 65 to 59.0 ptsadvanced
 
Crime is a never‐ending problem. police departments, correctiona
Crime is a never‐ending problem. police departments, correctionaCrime is a never‐ending problem. police departments, correctiona
Crime is a never‐ending problem. police departments, correctiona
 
Creating your personal budget for this assignment, you will apply
Creating your personal budget for this assignment, you will applyCreating your personal budget for this assignment, you will apply
Creating your personal budget for this assignment, you will apply
 
Creating a culture of innovation and creativity overview
Creating a culture of innovation and creativity overviewCreating a culture of innovation and creativity overview
Creating a culture of innovation and creativity overview
 
Create an annotated bibliography assignment using your research q
Create an annotated bibliography assignment using your research qCreate an annotated bibliography assignment using your research q
Create an annotated bibliography assignment using your research q
 

Recently uploaded

Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdf
Vivekanand Anglo Vedic Academy
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)
rosedainty
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
Anna Sz.
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
kaushalkr1407
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
Pavel ( NSTU)
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
RaedMohamed3
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
joachimlavalley1
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
Jheel Barad
 
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxStudents, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
EduSkills OECD
 
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptxMARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
bennyroshan06
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 
How to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS ModuleHow to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS Module
Celine George
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
Jisc
 
Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
Fish and Chips - have they had their chips
Fish and Chips - have they had their chipsFish and Chips - have they had their chips
Fish and Chips - have they had their chips
GeoBlogs
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 

Recently uploaded (20)

Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdf
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
 
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxStudents, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
 
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptxMARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
How to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS ModuleHow to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS Module
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
 
Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
Fish and Chips - have they had their chips
Fish and Chips - have they had their chipsFish and Chips - have they had their chips
Fish and Chips - have they had their chips
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 

Cosc 2425 project 2 part 1 implement the following c++ code

  • 1. 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
  • 2. 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