Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Notes: All of your work should be submitted using the appropriate link in Blackboard. . For each program, please submit an appropriate .S file. o

image text in transcribed
image text in transcribed
Notes: All of your work should be submitted using the appropriate link in Blackboard. . For each program, please submit an appropriate .S file. o Code submitted in other formats (for example, pasted into a .txt or .docx file) will not be accepted. Your submission for each question must be in a single file, so you will submit 3 files in total. Archive files will not be accepted. This assignment is worth 100 points. For this assignment, you must submit three short programs testing your understanding of program control instructions I strongly encourage you to run your completed program into an MPLAB project to verify its correctness. Code that does not properly assemble will lose a significant number of points. Each program operates on variables created at the start of the program, to which I've assigned initial values for you to test. Programs that work only for the initial values will lose pointsyou should write general programs that work for any values. I suggest changing the variable values to test different scenarios in the first two programs. 1 (35 points) Implement the conditional statement shown below (A, B, X and Y are variables). Assume A =10, B = 6. Initial values of X, Y are 0. if (x B) { X = Y - A; else ( X = Y + 4; Y = x + 4; } Assignment continued on next page 2 (35 points) Implement the loop shown below (A, B, X and Y are variables). Assume A, B = 60. Initial values of X, Y are 0. while ((X B) { X = Y - A; else ( X = Y + 4; Y = x + 4; } Assignment continued on next page 2 (35 points) Implement the loop shown below (A, B, X and Y are variables). Assume A, B = 60. Initial values of X, Y are 0. while ((X

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

Graph Database Modeling With Neo4j

Authors: Ajit Singh

2nd Edition

B0BDWT2XLR, 979-8351798783

More Books

Students also viewed these Databases questions

Question

3. Are our bosses always right? If not, what should we do?

Answered: 1 week ago