View the step-by-step solution to:

Student Lab Activity A. Lab # CIS CIS170A-A1 B. Lab 2 of 7: Input and Output with Variables C. Lab Overview - Scenario / Summary: TCOs: TCO 2 - Given...

Can someone please fix where I messed up at idk what I did wrong but it's not working.... note I did not finish because on one of the steps I

messed up so it threw me off.


Public Class fName
    Private Sub btnClear_Click(sender As Object, e As EventArgs) Handles btnClear.Click
    End Sub
    Private Sub btnDisplay_Click(sender As Object, e As EventArgs) Handles btnDisplay.Click
    End Sub
    Private Sub btnExit_Click(sender As Object, e As EventArgs) Handles btnExit.Click
    End Sub
    Private Sub Label3_Click(sender As Object, e As EventArgs) Handles lblFirstName.Click
    End Sub
    Private Sub TextBox1_TextChanged(sender As Object, e As EventArgs) Handles txtGradDate.TextChanged
    End Sub
    Private Sub DateTimePicker1_ValueChanged(sender As Object, e As EventArgs) Handles DateTimePicker1.ValueChanged
    End Sub
End Class

       

A. Lab # CIS CIS170A-A1 B. Lab 2 of 7: Input and Output with Variables C. Lab Overview – Scenario / Summary: TCOs: TCO 2 - Given a set of program specifications for a simple business problem requiring the use of input and output, code and test a program that meets the specifications and employs best programming practices. TCO 3 - Given a set of program specifications for a simple business problem requiring the use of arithmetic expressions and built-in methods, code and test a program that meets the specifications and employs best programming practices. This lab will accomplish the following: Input and output the user’s name Input the length of a side of a square and calculate and output the area Input the radius of a sphere and calculate and output the volume D. Deliverables: Step Deliverable Points A-5 Project Files 20 B-5 Project Files 25 The dropbox deliverables include the following: 1. For each exercise, include a zipped file with all the files from your Visual Basic project (see directions in Doc Sharing on how to collect and zip files.) 2. Upload each part of the lab into its corresponding weekly dropbox. Part A: Basic Input / Output Step 1: Open a new project Be sure to have gone over Part A several times before you begin your laboratory assignment. In this part of the lab, you are asked to create a Visual Basic Windows Form application, without providing the specific instructions. Page 1 of 9 qattachments_b4779c8ac0bf03b5d5834931e989e842c5aca526.docx Student Lab Activity
Background image of page 1
Create a new Windows Forms project in VB. Name your project CIS170A_Lab02_A Step 2: Program Description In this project, you will create a Windows Form application that will collect the user’s first name, last name, major, and date of graduation. When the user selects “Display Information” a message box will be displayed that shows the input information and how many days remain before the user graduates from school. [Hint: Check section “Dates as Input and Output” (p. 87-88 in our textbook.)] Step 3: Suggested form design You are free to experiment with form design and object colors as you see fit, even though as to colors we strongly recommend using the default colors for the form and all objects – this allows each user to see your form in their chosen Windows color palette. A possible form design is as follows: Here we show some sample data entered in the textboxes and a given date selected in the DateTimePicker. Note that in the suggested design above we use a DateTimePicker object, which is a very handy way to obtain a date from the user. You have at least two ways to use the date selected by the user: 1. Use dtpGradDate.Value within your code (that is, the Value property of the DateTimePicker object); or 2. Apply the Date.TryParse() method to the Text property of the DateTimePicker object: Date.TryParse(Me.dtpGradDate.Text, dtmGradDate) To compute the number of days between dates, consider using the DateDiff() function. Doubts about this function? Please post question in the Lab Q&A forum in class. Some additional information about the DateDiff() function is as follows: DateDiff() function The DateDiff() function returns a Long value which will have the indicated number of intervals (days, months, etc.) between the two dates specified as arguments to the function. The function has three main arguments (there are others but let’s only focus on the first three): 1. Interval . This Frst argument indicates the type of intervals that we want the func±on to count. The op±ons are: DateInterval.Day, DateInterval.Month, DateInterval.Minute, DateInterval.Second, and many others.) 2. Date 1 . This second argument is the Frst date (must be a DateTime data type.) Page 2 of 9 qattachments_b4779c8ac0bf03b5d5834931e989e842c5aca526.docx
Background image of page 2
Show entire document
Sign up to view the entire interaction

Top Answer

View the full answer
CIS170A_Lab02_A.zip - Preview not available

Sign up to view the full answer

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.

-

Educational Resources
  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question
Ask a homework question - tutors are online