UNIVERSITY OF LETHBRIDGE FACULTY OF MANAGEMENT

advertisement
UNIVERSITY OF LETHBRIDGE
FACULTY OF MANAGEMENT
Mgt 3821 - Visual Programming Applications (using Visual Basic .NET)
Term:
Spring 2009
Instructor:
Brian Dobing, Room E424, 329-2492, brian.dobing@uleth.ca
Class Web Page: http://classes.uleth.ca/200901/mgt3821a
Class Times: Tues, Thurs 15:05 – 16:20, E-620 Lab
Office Hours: Tues, Thurs: 9:00 – 11:00 AM
Other times may be arranged by appointment
________________________________________________________________________
Overview
Visual Basic 1 was introduced in 1991 and has rapidly become a critical software development
platform. Six years later (ComputerWorld, March 24, 1997) VB was already the dominant choice
for "building multidepartmental, multitiered corporate applications" in a Windows environment.
This remains true today. Equally important for business students, Visual Basic for Applications
is the language of Microsoft Office. VBA is closely related to VB (although more like VB6 than
VB.NET) and, with it, Access and Excel become much more powerful tools. Visual Studio .NET
is also an excellent web development platform (covered in Mgt 3822).
Visual Basic was criticized in the past for not being object-oriented. With the introduction of
Visual Studio .NET in February 2002, this is no longer true. However, this class does not cover
object orientation. (That is also part of 3822). The goal is to introduce event-driven programming
in a visual programming environment or, more specifically, to build Windows software. Building
systems in Visual Basic can be fun! (If you don't believe programming can ever be fun, you
probably don't belong in this course.) By providing a powerful set of tools, VB allows you to
quickly create software that looks very much like commercial Windows programs.
Prerequisites:
This course requires Computer Science 1620 or an equivalent introductory programming course
that has been given CS 1620 transfer credit. Students who register in this class without this
prerequisite, or a waiver signed by the instructor, can be forced to withdraw from the course at
any time during the term. If your programming skills are weak, this will be a difficult course.
Neither the lectures nor the text are designed to teach fundamental programming.
The course no longer requires Mgt 2060, but you will need an introductory understanding of
databases and Microsoft Access. We will build links from Visual Basic to Access databases. And
you should be familiar with Windows and want to write programs for that environment.
1
Grading:
Assignments 1 and 2 - worth 5% each
Assignments 3 and 4 – worth 10% each
Midterm Exam
Final Exam
Project
Project Evaluation
10
20
15
25
25
5
The class will vote on whether to hold a midterm exam or not. If not, the final exam weighting
will increase to 35% and the project weighting to 30%. If there is a midterm, it will be held on
March 10, 2009 and class topics will be adjusted.
The following is an approximate grading curve. Final scores will be rounded, e.g., 77.5 will be a
B. The actual grade distributions for this semester may be adjusted (but only to the advantage of
students) and will not be determined until the end of the semester when all marks are in. The
final grade distribution will be consistent with past classes.
95-100
90-94
86-89
A+
A
A-
82-85
78-81
74-77
B+
B
B-
70-73
66-69
62-65
C+
C
C-
58-61
50-57
<50
D+
D
F
Textbook and other materials:
The text for this course is Microsoft Visual Basic 2008: Reloaded, 3rd Edition, by Diane Zak,
Thomson/Course Technology, 2009. Earlier versions of this textbook cover earlier versions of
Visual Basic and are not recommended.
You are expected to not only read but work through the material in the text. Do at least a few of
the exercises at the end of each chapter. You will not learn Visual Basic or any other
programming language by listening to lectures or reading books. You will learn by doing. For
assignments and examinations, you are responsible for all assigned material in the text even if it
was not discussed during classes.
The following titles are on reserve at the Library. They are more advanced books and should be
more useful later in the course or in 4841 (if you build a VB front-end). They were written for
earlier versions of VB .NET, but much of the material is still relevant.
Francesco Balena, Programming Microsoft Visual Basic.NET (Core Reference),
Microsoft Press, 2002.
John Connell, Coding Techniques for Microsoft Visual Basic.NET, Microsoft Press,
2002.
Rick Dobson, Programming Microsoft Visual Basic .NET For Microsoft Access
Developers, Microsoft Press, 2003.
There are also some good Internet sites. However, many cover both VB6 and different versions
VB.NET so you need to be careful when incorporating their ideas into your programs.
2
Software:
We will be using VB .NET 2008, which must be used for all assignments and the project. Visual
Studio .NET 2008 software is available free to students for home use, including the Help CDs.
These will be loaned out in the first few weeks of class.
Assignments:
There are four assignments in this course, worth 30% towards the final grade. Each assignment
will be distributed about two weeks prior to the due date. If there are any serious problems or
omissions with an assignment, I will send out an email message to keep you informed. Any
notices will normally be posted on the web page as well.
The first two assignments are to be done individually. You can discuss ideas about the
assignment, but the final work you hand in should be your own. The submission requirements
will be specified on each assignment. The third and fourth assignment and the project may done
in pairs (but teams of three or larger will not be permitted). You do not have to use the same
partner for all three – you choose your partners.
The computer files required by the assignment should be emailed to me by the specified due date
and time. All submissions will be acknowledged but this can take several hours so don’t expect
an immediate response. Assignments will require multiple files; they should be combined into a
single WinZip file. The zipped file name should contain the assignment number and your
name(s), e.g., A1SmithChris.zip or A3KleinMartin.zip. Any required printed material (usually
printed program listings) is due at the same time at my office. If you are not on campus, an
emailed project is sufficient to avoid a late penalty but a printed version must still be submitted
as soon as possible and it must be identical to the emailed files. Both parts must be submitted
before the assignment will be graded.
Any extensions due to lab problems, weather, or other reasons will be posted on the course web
page.
There will be a 10% penalty for assignment submissions received late on the due date, 25%
penalty for submissions made the following day, and 50% after that. No assignments will be
accepted after the start of the class following the due date. Late penalties are subtracted from the
grade you otherwise would have earned. So work submitted a day late that is worth 80% will
receive a grade of 55%. Late penalties for projects will be specified later.
Project:
Students will choose their own team of two students and build a larger system in the second half
of the class. Past classes have built different games, including Monopoly, Trivial Pursuit,
Yahtzee and Wheel of Fortune. Classes have also built business projects such as a consignment
car dealer, an IS Post-Diploma student planner a small theatre ticket operation, a motel
reservation system and a truck rental company. More details on the project will be made
3
available later. Assignment 4 is usually linked to the project.
Project Evaluation:
After projects are submitted, everyone will be given a project (not their own!) to evaluate. The
distributed project will include the source code, not just an executable version. The project
evaluations are due at the start of the final class. The evaluations will be read before final project
grades are assigned, but they do not normally have much impact. Projects will be evaluated for
their usability, functionality, and software quality.
Course Web Page:
Material will be posted on the course web page:
http://classes.uleth.ca/200901/mgt3821a
You should be able to find the course outline, assignments, project notes, and class notes. Any
subsequent corrections, additions, etc. will also be posted on the web page. You are responsible
for checking both your email and relevant web pages regularly. If you find other interesting web
pages that ought to be linked, please let me know. Class notes will usually be posted the day after
classes. They are quite detailed and should eliminate the need to take notes in class.
I will try to respond to email and voice mail messages. However, I cannot provide long and
detailed responses that way. Some questions may be answered on the class web page and/or
brought up in the following class.
4
Academic Integrity:
It is critical to the reputation of the Faculty of Management, and of our degrees, that everyone
associated with our faculty behave with the highest academic integrity. As a Faculty that helps
create business and government leaders, we have a special obligation to ensure that our ethical
standards are beyond reproach. Any dishonesty in our academic transactions violates this trust.
The University of Lethbridge Calendar addresses the issue of academic dishonesty under the
heading “Student Discipline Policy. Of particular concern, but certainly not the only violations,
are:
 copying someone else's work, even with minor modifications and with or without their
permission, from storage media, printed copy, or even by observing what they are doing
 providing a digital version or printout or otherwise allowing someone else to copy your work
 having someone else to do all or part of your assignment
 working jointly with others to create a single solution and then customizing it for each
student
 presenting code taken substantially from books, CD-ROMs, the Internet or other sources as
your own
Students cheating on exams or assisting others to do so will receive an "F" in the course.
Cooperation between teams is generally encouraged when it involves technical matters, such as
how certain features of Visual Basic work. But close cooperation on content resulting in virtually
identical submissions is not acceptable. Milestones that include material that has obviously been
copied between two or more teams will ALL receive a mark of ZERO. Thus, it is important that
you protect your work against copying. Any significant copying of programs found in other
books or on the Internet will be regarded as a serious violation and will also receive a mark of
ZERO. Receiving any substantial outside assistance from Access experts is not acceptable.
However, applying ideas found in these sources is strongly encouraged. If you do copy anything,
make a note of it just as you would reference a quotation in a term paper. If you are unsure about
what is or is not acceptable, please see me first. The instructor reserves the right to use turnitin or
other services to identify copied material.
You also have some responsibility to ensure that your partner does not violate the policy on
Academic Integrity. Should a violation occur, both members are jointly accountable unless the
violation can be clearly attributed to a specific individual.
5
Tentative Class Schedule (see course web site for updates):
Date
Jan 8
Topics
Introduction to Visual Basic .Net 2008
Readings
C1
Due
Jan 13
Controls, Properties, Methods and Events
C2
Jan 15
Variables, Constants and Operators
C3
Jan 20
Decisions, Submitting Assignments
C4
Jan 22
Message Box and Input Box, Random Numbers
C5
Jan 27
Loops, List Box
C6
Jan 29
Strings and Dates
C7
Feb 3
Sub/Function Procedures, Code Modules, Variable Scope
C8
Feb 5
Menus and Toolbars
App G
Feb 10
Arrays
C9
Feb 12
Files and Array Structures
C10
Feb 17-19
Reading Week – No Classes
Feb 24
Open File Dialog, Colors, Fonts, Format Zones
C10
Feb 26
Testing and Debugging
C12
Mar 3
Introduction to Databases
Mar 5
Database Operations
C12
Mar 10
Database Grid
C12
Mar 12
Database Sorting/Searching
C12
Mar 17
Database Validity and Exception Handling
Mar 19
Protected Code, Control Arrays
Mar 24
Multiple Form Applications
Mar 26
HTML Help Workshop
Mar 31
Graphics
Apr 2
Automating Word, Excel
Apr 7
Drawing with the Mouse
Apr 9
Drag-and-Drop
Project
Apr 14
Project Testing
Eval
Apr 16
Review Projects
Apr 21
Final Exam 14:00 – 17:00
A1
A2
A3
A4
Some topics and their orders may need to be changed later once the project has been defined.
Cn readings refer to chapters in the Zak textbook
6
Download