CIS 351

Lab 8: Branches

Fall 2020

Autograding is back for this assignment; but minutes are limited. Please don't use the autograder as your primary means of testing. Write your own tests and only submit at the end of lab when you are confident your tests will pass. The quality of your tests will affect your grade.

For this lab, you are going to write and test some assembly code using branches. You may want to watch first --- especially if you are in a section that meets on Wednesday.

As with previous assignments, in order for your solution to work with my MUnit tests, you must follow these rules:

Problems

  1. makes10(int a, int b) from CodingBat.
  2. intMax(int a, int b, int c) from CodingBat.
  3. close10(int a, int b) from CodingBat.
  4. max1020(int a, int b) from CodingBat.
  5. dateFashion(int you, int date) from CodingBat.
  6. redTicket(int a, int b, int c) from CodingBat.

This GitHub Classroom repository has a file you can use as the starting point for your MUnit tests.

Submission and grading

Be sure to document and comment your code!

When your code passes all tests, commit your code with [Grade Me] in the message.

Hints:

For more practice

If you are looking for more assembly coding practice, consider these CodingBat problems:


Updated Monday, 19 October 2020, 3:34 PM

W3c Validation