Quarters, Dimes, Nickels,Pennies Assembly Program, Assembly Language

Assignment Help:
There are two parts to this assignment. The first part has you reading 4 integers representing; #QUARTERS, #DIMES, #NICKELS & #PENNIES, respectively.
Your program should compute the amount of money (in cents) represented by the input coin combination. You will output this amount with an appropriate label. As you are reading the input data, keep track of the total number of coins, and print the total with an appropriate label.
In the second part of the assignment you are to determine how to produce the equivalent change, using the fewest number of coins, where coins available are: quarters, dimes, nickels or pennies. Print out, with an appropriate label the number of each coin used. A sample program execution is displayed below, where input data is in italics, and program output in bold face print.

3
12
15
26
The input change amounts to 296 cents, using 56 coins.
The same change could be made with:
Quarters = 11
Dimes = 2
Nickels = 0
Pennies = 1
Total Coins = 14

HINT:
Use the INDEC procedure to read in the numbers.
Use the OUTDEC procedure to write out the numbers.

Related Discussions:- Quarters, Dimes, Nickels,Pennies Assembly Program

Operating System, Why is the capability to relocate processes desirable?

Why is the capability to relocate processes desirable?

Internal architecture of microprocessor, Internal Architecture of Microproc...

Internal Architecture of Microprocessor : The architecture of 8086 provides a number of improvements over 8085 architecture. It supports a, a set of 16-bit registers ,16-bit AL

Interrupt-microprocessor, Interrupt When the CPU detects an interrupt s...

Interrupt When the CPU detects an interrupt signal, it stops activity of current and jumps to a special routine, known an interrupt handler. This handler then detects why the i

Interrupt system based on multiple 8259as-microprocessor, Interrupt System ...

Interrupt System Based on Multiple 8259As A multiple 8259A interrupt system is diagrammed in given figure in this figure data bus drivers are not indicated, but they could be i

Program to move contents in memory-machine level programs, Example : Write...

Example : Write a program to move the contents of the memory location 0500H to BX and also to register CX. Add immediate byte 05H to the data residing in memory location, whose ad

Ror-logical instruction-microprocessor, ROR : Rotate Right without Carry: ...

ROR : Rotate Right without Carry: This instruction rotates the contents of destination operand to the bit-wise right either by one or by the count specified in register CL, exclud

Quarters, There are two parts to this assignment. The first part has you r...

There are two parts to this assignment. The first part has you reading 4 integers representing; #QUARTERS, #DIMES, #NICKELS & #PENNIES, respectively. Your program should compute t

Code for reading flow & generating led output, Code for Reading Flow & Gene...

Code for Reading Flow & Generating LED Output The code starts with the scanning of the PORT 3, for reading the flow status to check for various flow conditions and compare to

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd