CSCI 112 Fall 2016
Exploring Computer Science
Archived Class
Charles Cusack
Computer Science
Hope College
Main
Schedule
Grading
Gradebook
Homework
Project

Policies
College
    Policies
Advice

Notes
Programs
Tutorials

CSCI 125
CSCI 255
MATH 341
Others

Admin

Homework 8

General Comments

  • Problem from the book are taken from the Chapter Review Problems sections.
  • For full credit, provide context for each problem, show all calculations, and explain your work/answers.
  • Numbers and/or algebra by themselves are not enough.
  • You will lose a significant amount of credit if you do not show enough work/context for your answers.
  • Homework assignments must be very neatly written or typeset (e.g. using Word or OpenOffice).

Details

Do the following exercises from pages 109-113 of your textbook (103-107 in full book).
ProblemPointsComments
146
184Make sure you explain your answer.
194Give a clear justification based on your solution to 18.
214
23b4
282First write out what each instruction does. Then read your "pseudo-code" version to figure it out. Your solution will describe what the program does overall, not just what each instruction does. (e.g. "Bake a cake" versus "put eggs and flour in a bowl, ...")
34aei6
39bc4
252See note below
Problem 1 below4See note below

  1. Write a program in the machine language described in the Appendix of our textbook that places FF in all memory cells from address A0 through C0. Your program should be in memory cells 00 through 13 (and no more).
    Note: All numbers in this problem given in Hexadecimal.
Note: You can choose to do either 25 or problem 1, but not both. Notice that 25 is only worth 2 points, so if you attempt that one your maximum homework score will be 36/38. If you do #25, you can include it with your written assignment.
If you do Problem 1, write and test your program in BMach. Use version 1.4 (the older versions have a bug). Put enough comments in your code to indicate that you understand what your code is doing. Save your program in BMach and call it Problem1.txt. E-mail me your textfile.