HW03: Making Change ... for a Fee! due Mon 16 Sep 23:59

Purpose

In this assignment you will learn/practice:

Description

NOTE: This program will use exclusively integer arithmetic (i.e., not floating point arithmetic).

Start by pulling the most recent files from the homework repository and do your work in the hw03 directory.

Write an assembly language program that offers to help the lazy user determine how quarters, dimes, nickels, and pennies should be given in change for some number of cents (i.e., an integer). To receive this service the user will pay a 5% fee. The change provided is based on the original amount with the fee subtracted. Here is possible sample output for the program:

Enter change (0-99): 90
Service fee        : 4
Remaining change   : 86
Number of Quarters : 3
Number of Dimes    : 1
Number of Nickels  : 0
Number of Pennies  : 1

When calculating the service fee you can multiply by 5 and then divide by 100. The value will automatically truncate when using the idiv command.

NOTE: You should always give the largest coin from the change that remains. That is, don't cheat and have the program give all the change in pennies!

When completed you will push your committed changes to your homework repository in bitbucket.

Assembly Language

Segmentation Fault Counter

1779736907