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

1. What is machine code? Why is it preferable to write programs in a high level

ID: 1807659 • Letter: 1

Question

1. What is machine code? Why is it preferable to write programs in a high level language such as C++? 2. What does a compiler do? What kinds of errors are reported by a compiler? 3. What does the linker do? 4. What is an algorithm? 5. Bob enters a pizza shop and notices there are three different sizes of pizzas available. Sizes are given as the diameter of the pizza in inches. The cost of a pizza is based on the size. Bob would like to know which size of pizza has the lowest cost per square inch. a. Identify the inputs and outputs for this problem. b. Identify the processing needed to convert the inputs to the outputs. c. Design an algorithm in pseudocode to solve this problem. Make sure to include steps to get each input and generate each output.

Explanation / Answer

Machine code or machine language is a system of impartible instructions executed directly by a computer's central processing unit (CPU). Each instruction performs a very specific task, typically either an operation on a unit of data (in a register or in memory, e.g. add or move), or a jump operation (deciding which instruction executes next, often conditional on the results of a previous instruction).