Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write a Pep/9 assembly code program that inputs N and outputs a report on the to

ID: 3587084 • Letter: W

Question

Write a Pep/9 assembly code program that inputs N and outputs a report on the total shipping costs.
A factory makes vases from a batch of molten glass.
However, of the N vases sent from the factory, 25% are returned and not sent.
The remaining vase are packed as follows:
As many as possible are packed into large boxes each holding 8 vases. Large boxes cost 14 dollars to ship.
Of the remaining vases, as many as possible are packed into medium boxes each holding 4 vases. Medium boxes cost 8 dollars each to ship.
The remaining vases are sent in small boxes that hold a single vase. Small boxes costing 3 dollars each to ship.
Example of run program would be: N: 1000 Number of bad vases: 250 Cost to ship 93 large boxes @ $14 each: $1302 Cost to ship 1 medium boxes @ $8 each: $8 Cost to ship 2 small boxes @ $3 each: $6 Total shipping cost: $1316 Please help me
Write a Pep/9 assembly code program that inputs N and outputs a report on the total shipping costs.
A factory makes vases from a batch of molten glass.
However, of the N vases sent from the factory, 25% are returned and not sent.
The remaining vase are packed as follows:
As many as possible are packed into large boxes each holding 8 vases. Large boxes cost 14 dollars to ship.
Of the remaining vases, as many as possible are packed into medium boxes each holding 4 vases. Medium boxes cost 8 dollars each to ship.
The remaining vases are sent in small boxes that hold a single vase. Small boxes costing 3 dollars each to ship.
Example of run program would be: N: 1000 Number of bad vases: 250 Cost to ship 93 large boxes @ $14 each: $1302 Cost to ship 1 medium boxes @ $8 each: $8 Cost to ship 2 small boxes @ $3 each: $6 Total shipping cost: $1316 Please help me
Write a Pep/9 assembly code program that inputs N and outputs a report on the total shipping costs.
A factory makes vases from a batch of molten glass.
However, of the N vases sent from the factory, 25% are returned and not sent.
The remaining vase are packed as follows:
As many as possible are packed into large boxes each holding 8 vases. Large boxes cost 14 dollars to ship.
Of the remaining vases, as many as possible are packed into medium boxes each holding 4 vases. Medium boxes cost 8 dollars each to ship.
The remaining vases are sent in small boxes that hold a single vase. Small boxes costing 3 dollars each to ship.
Example of run program would be: N: 1000 Number of bad vases: 250 Cost to ship 93 large boxes @ $14 each: $1302 Cost to ship 1 medium boxes @ $8 each: $8 Cost to ship 2 small boxes @ $3 each: $6 Total shipping cost: $1316 N: 1000 Number of bad vases: 250 Cost to ship 93 large boxes @ $14 each: $1302 Cost to ship 1 medium boxes @ $8 each: $8 Cost to ship 2 small boxes @ $3 each: $6 Total shipping cost: $1316 Please help me

Explanation / Answer

: pushq %rbp

movq %rsp, %rbp

subq 25, %rsp

movq %fs:75, %rax

movq %rax, -25(%rbp)

xorl %eax, %eax

.L2: movl $.LC0, %edi

movl $0, %eax

call printf leaq 250(%rbp), %rax

movq %rax, %rs.

movl $14, %ebx

movl $8, %rcx

STR main endp

end program

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote