Importing namespace system. io. import system. io

Assignment Help Database Management System
Reference no: EM13933113

Create an application that stores people's names and birthdays in a file (Fig. 23.40). The user creates a file and inputs each

person's first name, lastname and birthday on the Form. The information is then written to the file.

a) Copying the template to your working directory. Copy the directory C: ExamplesTutorial23ExercisesBirthdaySaver to your C:

SimplyVB2008 directory.

b) Opening the application's template file. Double click BirthdaySaver.sln in the

BirthdaySaver directory to open the application (Fig. 23.40).

c) Adding and customizing an OpenFileDialog component. Add an OpenFile Dialog component to the Form. Change its Name

property to openFileDialog. Set the CheckFileExists property to False.

d) Importing namespace System. IO. Import System. IO to allow file processing.

e) Declaring a StreamWriter object. Declare a StreamWriter object that can be used throughout the entire class.

f) Defining the Open File... Button's Click event handler. Double click the Open File... Button to create the openButton_Click

event handler. Write code to display the Open dialog. If the user clicks the Cancel Button in the dialog, the event handler

performs no further actions. Otherwise, determine whether the user provided a file name that ends with the . txt extension. If

not, display a MessageBox asking the user to select an appropriate file. If the user specified a valid file name, perform Step g.

g) Initializing the StreamWriter. Initialize the StreamWriter in the event handler openButton_Click, passing the user-input file

name as an argument. Allow the user to append information to the file by passing the Boolean value True as the second

argument to the StreamWriter. Enable the Enter and Close File Buttons. Disable the Open File... Button.

h) Defining the Enter Button's Click event handler. Double click the Enter Button to create the event handler enterButton_Click.

This event handler writes the name of the person and the person's birthday on a line in the file. Finally, the TextBoxes on the

Form are cleared, and the DateTimePicker's value is set back to the current date.

i) Defining the Close File Button's Click event handler. Double click the Close FileButton to create the closeButton_Click event

handler. Close the StreamWriter connection and reset the Buttons to their initial state in this event handler.

j) Running the application. Select Debug > Start Debugging to run your application.

Open a file by clicking the Open File... Button. After a file has been opened, use the input fields provided to enter birthday

information. After each person's name and birthday are typed in, click the Enter Button. When you are finished, close the file

by clicking the Close File Button. Browse to the file and ensure that its contents contain the birthday information that you

entered.

k) Closing the application. Close your running application by clicking its close box.

l) Closing the IDE. Close the Visual Basic IDE by clicking its close box.

1711_pp.png
Attachment:- Tutorial23.zip

Reference no: EM13933113

Questions Cloud

Role of the annual general meeting : Explain the intended purpose, or role, of the Annual General Meeting (AGM), and discuss whether the AGM fulfils that role. In your response consider challenges of shareholder engagement and the impact and effectiveness of the ‘two strike rule'.
What are main intervention strategies this theory advocates : Describe the historical development of the theory. Evaluate the intellectual and historical evolution of this theory and discuss how your discipline adopted and incorporated this theory. You may need to discuss the historical evolution of your dis..
Define biodiversity : Define biodiversity and explain how it is most commonly measured. Now consider the various ways to define a species (i.e., species concepts) covered in the readings and explain how current estimates of biodiversity might change depending on the speci..
Annual interest and all of the interest is left in account : If $10,000 is deposited in a savings account that pays 5% annual interest and all of the interest is left in the account, what is the account balance after 7 years?
Importing namespace system. io. import system. io : Create an application that stores people's names and birthdays in a file (Fig. 23.40). The user creates a file and inputs each person's first name, lastname and birthday on the Form. The information is then written to the file.
An investor is currently fully invested in gold mining stock : An investor is currently fully invested in gold mining stocks. Which action would do more to reduce portfolio risk: diversification into silver mining stocks or into automotive stocks? Why?
Impact of effective conflict management on team performance : Relevant literature review. Justify research methodology appropriate to team performance
Endocrinologyaddison''s disease : A 45-year-old male from the Midwest presented with the following symptoms during February: weakness, fatigue, orthostatic hypotension, weight loss, dehydration, and decreased cold tolerance. His blood chemistry values follow:
Technical analysts and fundamental analysts : Technical analysts and fundamental analysts try to earn superior returns in the stock market. Explain how their efforts help keep the market efficient.

Reviews

Write a Review

Database Management System Questions & Answers

  What does the exec above produce in terms of results

What does the exec above produce in terms of results. If you wanted companies that had 'Corp' in their name how would you code the EXEC statement - What does the exec above produce in terms of results. What would happen it you miss coded the maxim..

  Search and set up the national parks database

create a table named Park. Accept the default ID primary key field with the AutoNumber data type, renaming it as Park ID. Enter at least five additional fields, such as Name, State, Fee, Hours

  Functional dependency explain the difference between

explain the difference between functional dependencies that arise from equations and those that do

  Write a memorandum to sam jones

Write a memorandum to Sam Jones (CIO) and present your research findings. Your memorandum should be no longer than 500 words.

  How data collection and data analysis can be overlapping

Summarize the process of coding, classifying, categorizing, and labeling primary patterns as it pertains to qualitative data analysis. Describe how data collection and data analysis can be overlapping activities in qualitative research.

  What are some faster ways to accomplish data collection

Data collection takes a lot of time. Therefore, it is not worth the time and trouble. What do you think? What are some faster ways to accomplish data collection

  Create database db2game

LOAD FROM "C:\db2game\tutors.csv" of del insert into tutors (student_id, given_name, family_name, course_code, hourly_wage, status);

  Assignment on database managment

The problems use the customer, orderTbl, and Employee tables of the simplified Order Entry database. Chapters 4 and 10 extend the database to increase its usefulness.

  Define the database life cycle

Per the text, the Database Life Cycle includes the Database Initial Study, Database Design, Implementation and Loading, Testing and Evaluation, Operation, and Maintenance and Evolution phases.

  Develop a complete system

The assignment will be chosen by the individual student with my approval. An ideal assignment will be one which involves at least four entity sets, but not too many since there will be critical time pressure to complete the assignment.

  Suppose that you are the database developer for a local

suppose that you are the database developer for a local college. the chief information officer cio has asked you to

  Database with data about a university

This assignment uses a database with data about a university; the database resides in our Oracle servers. The schema of the database is provided below. Keys are in bold face and underlined, field types are omitted; assume that appropriate foreign ..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd