FE
102
PROGRAMMING ASSIGNMENT #
OBJECTIVES: 1. To become familiar with basic programming principles and to apply them using Visual Basic for Applications (VBA) in Excel.
REFERENCE: Introduction to VBA for Excel, Chapters 4 and 5.
ASSIGNMENT: Do the following problems from the Power Programming text:
Chapter 4
Problem 1(4.4), p 37. There will be two arguments in your function. Read these in from two cells in your worksheet. Output the result to another cell in your worksheet located two rows below the input cells. Put headers next to the input and output cells so that it's clear what the values are. For your final submission, input the values 23 and 45.
In addition to the code, submit a hardcopy of your Excel worksheet.
Problem 2 (4.5), p. 37.
a. The problem asks you to name the cells for that contain the input values. Instead read your function values in from worksheet cells.
b. So that we can see your function, put the function into your worksheet so that it displays (remove the equal sign from in front of the function in other words).
In addition to the code, submit a hardcopy of your Excel worksheet.
Chapter 5
Problem 2 (5.2), p. 52. Input and output all values using worksheet cells. Do this twice in your worksheet for each of the cases. Put these side-by-side and label them Case 1 and Case 2. List the root values (what is x?) that are determined for both cases. You do not have to address the imaginary root case. In addition to the code, submit a hardcopy of your Excel worksheet that shows the interface, input values, and output values. All input and output variables should be labeled.
YOUR JOB:
EVALUATION: Your programs will be evaluated according to the following:
Grading
Problems are worth 10 points each.
Seven points for correct answer.
Three points for arrangement and formatting.
![]()