Write and test a pep9 assembly language program that inputs


The purpose of this first assignment is to get you used to the Pep/9 environment, simple input/output and arithmetic calculations.

A widget distributor receives a shipment of N widgets from the manufacturer. Unfortunately, one-eighth of them are not up to specification and cannot be shipped.

The remaining widgets are shipped to a central warehouse. A standard mailing box holds 16 widgets and costs $8 to mail.

Any widgets left over are shipped individually at a cost of $2 each.

Write and test a Pep/9 assembly language program that inputs N and outputs the total cost of mailing the widgets. (Cost may be approximate because of limitations of integer arithmetic Example

N = 300 widgets are received from the manufacturer

One eighth (37) are not up to specification leaving 263

Sixteen boxes of 16 can be filled leaving 7 widgets to be shipped individually

Total cost = (16 * $8) + (7 * $2) = $142

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Write and test a pep9 assembly language program that inputs
Reference No:- TGS02905427

Expected delivery within 24 Hours