Assignment 08: Due 04/02/18

Chapter 04: Microprocessors

Answer each of the following questions briefly, but completely. Use your textbook and any additional references you may need. Typewritten pages are preferred, but not required. You may submit handwritten pages, but they must be completely legible. Handwritten responses which cannot be read will receive no credit.

Keep your responses brief; there should not be a need for a multi-page response to any of the questions. A few sentences should be sufficient.

Please do not copy/paste paragraphs from Wikipedia; you will be discovered instantly, and you would never insult the intelligence of your boss or a paying client by handing them poorly written and possibly incorrect information. Not to mention the damage you do to your own credibility and reputation.

  1. (15 points) Modify the algorithm we discussed in class. Your algorithm should not be in any syntactically correct programming language; just use brief, easy to read and understand statements as illustrated below.
    Prompt user to input a number”
    Accept user input1
    Prompt user to input another number”
    Accept user input2
    Add: sum = input1 + input2
    Display sum
    Subtract: difference = input1 - input2
    Display difference
    Multiply: product = input1 * input2
    Display product
    Divide: quotient = input1 / input2
    Display quotient
    Incorporate into this algorithm the following features:
    1. Verify the user’s input. Input should be numeric. Give the user an opportunity to re-enter a value.
    2. Permit the user to choose which arithmetic operation they would like to perform.
    3. Give the user the option to perform additional operations with the same input.
    4. Give the user the option to continue by entering a new set of numbers.

You can download a .pdf copy of these questions, or find them in the ENGR 1301 course folder.

© Nancy Jo Getson 2015-18