Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

//Jouse Carrera //Tes1 //Due Date 5-7-2018 . TEST 1-CoSci 416 Spring 2018 Due 5/7/2018 Late programs will loose 10 points Turn in a listing of

//Jouse Carrera

//Tes1

//Due Date 5-7-2018

image text in transcribed .

TEST 1-CoSci 416 Spring 2018 Due 5/7/2018 Late programs will loose 10 points Turn in a listing of your source code and the results of program testing (a screen shot showing the output). You must include comments with your name, the title of the assignment, and the date the assignment is due. You must include comments for readability. A good comment will explain why an action is being done. There is also room for improvement in the choice of identifiers and in adding a prompt when input is requested. Use constants where appropriate. EQUATE) Do not forget to allocate space using the.BLOCK pseudo-op 1. Purpose to demonstrate understanding of simple input/output and arithmetic calculations. A farmer has just finished turning the grapes from his farm into bottles of grape juice that he ships to a distributor A full mailing box can hold 8 bottles and costs $16 to mail. To mail a partially-filled box costs $3 for each bottle in it because of the additional packing material needed. Write and test a Pep 9 assembly language program that inputs the total number of bottles (B) that the farmer needs to ship and outputs the total cost of mailing them Hints: The number of full boxes is B/8 The number of bottles left out of the full boxes is Bg08 Grading Correctness: 50 Testing: 30 is the program correct? try different inputs. Are there values for which program does not give the correct output? Readability: 20use of comments to give program name, author, date. and explain how the program works. Choice of identifiers. Appropriate labeling of outputs. 18 TEST 1-CoSci 416 Spring 2018 Due 5/7/2018 Late programs will loose 10 points Turn in a listing of your source code and the results of program testing (a screen shot showing the output). You must include comments with your name, the title of the assignment, and the date the assignment is due. You must include comments for readability. A good comment will explain why an action is being done. There is also room for improvement in the choice of identifiers and in adding a prompt when input is requested. Use constants where appropriate. EQUATE) Do not forget to allocate space using the.BLOCK pseudo-op 1. Purpose to demonstrate understanding of simple input/output and arithmetic calculations. A farmer has just finished turning the grapes from his farm into bottles of grape juice that he ships to a distributor A full mailing box can hold 8 bottles and costs $16 to mail. To mail a partially-filled box costs $3 for each bottle in it because of the additional packing material needed. Write and test a Pep 9 assembly language program that inputs the total number of bottles (B) that the farmer needs to ship and outputs the total cost of mailing them Hints: The number of full boxes is B/8 The number of bottles left out of the full boxes is Bg08 Grading Correctness: 50 Testing: 30 is the program correct? try different inputs. Are there values for which program does not give the correct output? Readability: 20use of comments to give program name, author, date. and explain how the program works. Choice of identifiers. Appropriate labeling of outputs. 18

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Internals A Deep Dive Into How Distributed Data Systems Work

Authors: Alex Petrov

1st Edition

1492040347, 978-1492040347

More Books

Students also viewed these Databases questions

Question

Evaluate the integral. (1 + tan x) 2 sec x dx

Answered: 1 week ago