Ivy Tech Community College / Lafayette

Ivy Tech Community College / Lafayette

IVY TECH COMMUNITY COLLEGE

CINS 113 / Logic, Design & Programming / Internet Course

FINAL PROJECT

Student’s name ______

INTRODUCTION: In the Resources section of Blackboard, there are links for installing Visual Basic 2010 Express Edition, and for downloading the data files you need for this course. Do those two things first before starting on this lab assignment. (Note: you can also use Visual Basic 2010 from Visual Studio 2010 for these assignments, although the interface might be slightly different.)

ASSIGNMENT:

1)Exercise 10 on page 317 of the lab textbook, “Clearly Visual Basic”, at the end of Chapter 17. You will use the experience you have gained so far in this class to create an application. Create the application as instructed, and make the following changes:

  1. Near the bottom of the form, below the Calculate button, add a label with the Text property, Designed by, followed by your name.
  2. Change the price of the Filled doughnuts to $1.20 each. In step 8c, make the sales tax 5% instead of 3%.
  3. In step 8d, run the program, selecting the Filled doughnut and a Regular coffee, and then click the Calculate button. Take a “screen shot” of your form, and paste it at the end of this document, and press ENTER twice.
  4. Go to Code View for your form, copy all the code (using Edit / Select All and Edit / Copy), and paste it at the end of this document (using Edit / Paste or CTRL-V).

2)At the top of this page, replace the line after “Student’s name” with your name.

3)Click the Office Button, Prepare, and Properties, and type your name as the Author, and CINS 113 as the Subject. Close the Document Properties area by clicking the X at the right end of the yellow bar.

4)Save thisWord document. Close the document.

5)In Blackboard, go to Session 16 in Class Sessions when it is made available, and click on the View/Complete Assignment link.

6)Attach this file (CINS 113 VB Final Project.doc) and click Submit.

NOTES:

1)Any time you make changes to your Visual Basic program, you should use File / Save All to save all files associated with your program.

2)In Blackboard, you can check to see if your file was submitted correctly. Go to My Grades, and in the column for this Lab, there should be a white exclamation mark on a green background. Click on the exclamation mark, and open up the submission page. Right-click on the link for your file, and see if it opens correctly. If not, contact your instructor immediately and ask for your attempt to be cleared.

CHECKLIST FOR SUBMITTING THE ASSIGNMENT:

  • You have entered your name at the top of this document after “Student’s name”
  • In the Properties area, you have entered your name as the Author, and CINS 113 as the Subject
  • The screen shot of theJM Salesform should be pasted at the end of this document, as well as the code from the form. Save and close this document.
  • You have attached this file, CINS 113 VB Final Project.doc, using the Blackboard View/Complete Assignment link
  • You are ready to click Submit
  • Check your file submission using the instructions in the Note section above

From book:

10. The Doughnut Shoppe sells four varieties of doughnuts: Glazed ($.65), Sugar ($.65),

Chocolate ($.85), and Filled ($1.00). It also sells regular coffee ($1.80) and cappuccino

($2.50). The store manager wants an application that she can use to calculate and

display a customer’s subtotal, 3% sales tax, and total due.

a. Create a Visual Basic Windows application. Use the following names for the solution

and project, respectively: Doughnut Shoppe Solution and Doughnut Shoppe Project.

Save the application in the ClearlyVB2010\Chap17 folder. Change the name of the

form file on your disk to frmMain.vb. If necessary, change the form’s name to

frmMain.

b. Create the interface shown in Figure 17-16.

c. Code the application. Use one function to calculate and return the cost of the

doughnut. Use another function to calculate and return the cost of the coffee. Use a

third function to calculate and return the 3% sales tax. Use a Sub procedure to clear

the subtotal, sales tax, and total due amounts when a radio button is clicked.

d. Save the solution and then start and test the application. Close the Code Editor

window and then close the solution.