Question: PLEASE USE PEP/9 ONLY. NOT IN JAVA, C, C++, PYTHON ETC. PEP/9 ONLY!! Also do not post an answer regarding rabbits i don't know where

PLEASE USE PEP/9 ONLY. NOT IN JAVA, C, C++, PYTHON ETC.

PEP/9 ONLY!! Also do not post an answer regarding "rabbits" i don't know where it's coming from but my question has nothing to do with rabbits. Thank you!

PLEASE USE PEP/9 ONLY. NOT IN JAVA, C, C++, PYTHON ETC. PEP/9ONLY!! Also do not post an answer regarding "rabbits" i don't know

The purpose of this assignment is to get you used to the Pep/9 environment, simple input/output and arithmetic calculations. A bell distributor receives a shipment of N bells from the foundry. Unfortunately, one eighth of them are cracked and have to be sent back. As many as possible of these flawed bells are packed into large crates that hold 16 bells, the rest are sent back individually. Costs to transport the flawed bells are as follows: Crate of 16 $20 Individual $2 The good bells are mailed to distributors. As many as possible of the good bells are packed into boxes each of which can hold 8 bells. The remainder are mailed individually. Costs to mail the good bells are as follows: Boxof 8 $18 Individual $3 Write and test a Pep/9 assembly code program that inputs N and outputs a report on the disposition of the bells, see example below. Example program run Enter N: 430 Bells received: 430 Good bells: 377 Bad bells: 53 Number of crates: 3 Number of individual flawed:5 Number of boxes: 47 Number of individual good: 1 Cost to ship crates: $60 Cost to ship individual flawed $10 Cost to mail boxes: $846 Cost to mail individual good: $3 Total cost: $919 The purpose of this assignment is to get you used to the Pep/9 environment, simple input/output and arithmetic calculations. A bell distributor receives a shipment of N bells from the foundry. Unfortunately, one eighth of them are cracked and have to be sent back. As many as possible of these flawed bells are packed into large crates that hold 16 bells, the rest are sent back individually. Costs to transport the flawed bells are as follows: Crate of 16 $20 Individual $2 The good bells are mailed to distributors. As many as possible of the good bells are packed into boxes each of which can hold 8 bells. The remainder are mailed individually. Costs to mail the good bells are as follows: Boxof 8 $18 Individual $3 Write and test a Pep/9 assembly code program that inputs N and outputs a report on the disposition of the bells, see example below. Example program run Enter N: 430 Bells received: 430 Good bells: 377 Bad bells: 53 Number of crates: 3 Number of individual flawed:5 Number of boxes: 47 Number of individual good: 1 Cost to ship crates: $60 Cost to ship individual flawed $10 Cost to mail boxes: $846 Cost to mail individual good: $3 Total cost: $919

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!