MIC 110

Assignments

Week 1 | Week 2 | Week 3 | Week 4 | Week 5 | Week 6 | Week 7 | Week 8 | Week 9 | Week 10

Please make a use of Debugging Tools and Trouble Shooting Tips.

Please also follow the instruction of how to submit program assignments.

Week 1:

 

Week 2:

 

Week 3:

 

Week 4:

 

Week 5:

 

Week 6:

 

Week 7:

 

Week 8:

 

Week 9:

 

Week 10:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

- The following is not current -

 

 

 

 

 

 

 

 

 

ased on the Bank Account (#16, page 157) program with one textbox for transaction types which can be deposit or withdrawal, create a new version that would screen user's input errors. Utilize the built-in functions in Chapter 5. Before start writing the program, plan ahead how you would use built-in functions to minimize the input errors. E.g. possible input errors could be:

An example of a GUI with possible input errors is shown below.

Your error-handling should return an error message.

In addition to utilizing built-in functions, you will put all codes in separate user-defined procedures and functions for the next assignment. For example, you will have procedures/functions for input, deposit, withdrawal, and error handling. Therefore, you would want to put codes in bundles without integrating in decision making process, e.g. IF statement.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

How to submit program assignments:

  1. Use appropriate control and variable names using prefixes and meaningfulness. e.g. frmLadyOrTiger, lblFirstName, and strLastName.
  2. At the top of the codes, document
    1. Course ID
    2. Your name
    3. Assignment ID
    4. Date

    For example:
    'MIC 110
    'Pat Petersen
    'GPA from chapter 3
    'April 1, 2005
    Public Class frmLadyOrTiger
           Inherits System.Windows.Forms.Form

  3. At the top, document what each procedure and function does. e.g.

    'The procedure converts an input temperature from Celsius to Fahrenheit, and it displace the converted temperature.
    Private Sub btnConvertCtoF_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnClick.Click
       ...
       ...
    End Sub


  4. Document the input, process, and output apects of all important codes. e.g.

    'Compare the input temperature with 100.
    'If the temperature is higher or equal to 100, then display "Very hot!",
    '   otherwise, display "Not too hot!"
    'The intTemperature is from the txtTemp. And the output goes to lblMessage.

    If intTemperature >= 100 Then
        lblMessage.Text = "Very hot!"
    Else
        lblMessage.Text = "Not too hot!"
    End If


  5. Copy and paste the entire codes of the form to a Word document.
  6. Copy and paste screen shots of the application (Alt + Print Screen). Be sure to include before and after shots of each executions. Use reasonable test input data to demonstrate the correctness of the program, e.g. for a program converting a room temperature from celcius to fahrenheit, use -100, -10, 0, 10, and 100 with + and -100 being extrem cases.