MIDTERM - W. Nov 23
Covers the following:
Two sections on exam:
ANSWERS
HW9 - Boolean Variables and IIF
Due: M Nov 21, 2005
HW8 - Modulus and integer division - Making change
Write a program that asks the user for a monetary amount in cents. The program should compute the minimum number of dollars, quarters, dimes, nickels and pennies it would take to add up to the amount the user specified.
For example, if the user specified 289 cents, the program should report that 289 cents is equivalent to 2 dollars, 3 quarters, 1 dime, 0 nickels and 4 pennies.
Hint: use Integer division (i.e. the backslash, "\") and the "MOD" operators.
HW7 - Variable Scope
Due: M Nov 7, 2005
Assignment: Do Project 3 in section 3.8 on pages 116-122 in the VB book. Also do programming problem 4 on pages 125-126 (do not do the part for "variable X").
HW6 - multiple forms
Due: W Nov. 2, 2005
Assignment: Do Project 2 in section 3.5 on pages 100-105 in the VB book. Also do exercise 3.18 on page 105.
HW5 - VB application - word processor
Due:
Assignment: Do Project 1 in section 2.9 on pages 61-65 in the VB book.
HW4 - VB application - playing with buttons
Due:
Assignment: Write a VB application that has two buttons. When you click on the first button, the text that is displayed on the 2nd button should change. After you click the first button once, there should be no change when you click it again.
HW3 - algorithm
Due: before next class (M Sept. 19, 2005)
Assignment: Given that there are 12 stones, 11 of equal weight, 1 of unequal weight (either heavier or lighter).
(1) Write an algorithm that describes a series of steps that you can use to find the stone that is a different weight and tell whether it is heavier or lighter. A step is one of the following (a) put a stone on the left side of the scale (b) remove a stone from the left (c) put a sone on the right (d) remove a stone from the right (e) write down some results.
(2) Write another algorithm that uses only 3 weighings on a balance scale to tell what stone has a different weight and if it is heavier or lighter.
HW2 - Converting decimal, binary, hex
Due: before next class (M Sept. 12, 2005)
Assignment: Calculate the binary and hexadecimal values of each of the following decimal numbers. Show your work. Submit a file to the Angel "submit" folder.
Read and understand the following from the Computer Concepts book
HW1 - Convert binary to decimal
Due: before next class (W Sept. 7, 2005)
Assignment: Calculate the decimal value of each of the following binary numbers. You must show how you arrived at your answers. Type the answers in a word document (or any other type of file) and submit it to the HW1 drop box on Angel.