Write accessors for each of the declared class variables.

Assignment Help Programming Languages
Reference no: EM13936055

Create a Windows Form Application project in C# as per following guidelines.

1. Create a Form with a text property of Friends.

2. Add a Class file to your project and name it Friend.

3. In the Friend class declare the following:

o private string lastName;

o private string phoneNumber;

o private int month;

o private int day;

o private string firstName;

4. Write accessors for each of the declared class variables.

5. Override the class ToString method to return a string in the following format: FirstName + ',' + LastName + ',' + PhoneNumber + ',' + Month + "," + Day

6. Add a TabControl to the form and size it so that it fills the form.

7. Name the first tabPage Entry.

8. On the Entry tabPage add four textboxes to take entry for a first name, last name, birth month, and birthday and add a MaskedTextbox to take entry for a phone number formatted as 999-9999.

9. Add an Enter Friend button which will process the entries made in the textboxes; writing each entry to a file and an Exit button which will exit the application.

10. Name the second tabPage Read.

11. On the Read tabPage, place a Read button which will read the file entries written to the file on the Entry tabPage, an Exit button that will call the Entry page exit button click event and a listbox that will display each entry read from the file when the Read button is clicked.

12. Name the third tabPage Reminder.

13. On the Reminder tabPage, place a textbox that will take an input for the birth month entries that will be displayed, a Reminder button which will read the file entries and display the file entries which have a month value that matches the value

entered in the textbox, an Exit button that will call the Entry page exit button click event, and a listbox that will display each matching entry read from the file when the Reminder button is clicked.

14. At the Form level instantiate a Friend object and declare/instantiate a FileStream/StreamReader and a FileStream/StreamWriter object that will open a Friends.txt file with the FileMode set to OpenCreate, FileAccess set to Read, FileShare set to ReadWrite and FileMode set to Append, FileAccess set to Write and FileShare set to ReadWrite respectively.

15. The data entry button will extract the inputs from the textboxes on the Entry tab and will:

o Write the data as a comma delimited record to a .txt file using the Friend object ToString method you overrode in the Friend class; also display a messagebox that displays what was written to the file.

o Include a try-catch block that will display a messagebox with error message for any errors encountered in reading from the textboxes and writing to the file.

o Clear the write stream buffer.

o Clear entries in the textboxes.

16. The Read button will accomplish the following:

o Read the file and display in the listbox each record splitting out the fields, eliminating the comma delimiters and placing spaces between the fields.

o Reset the file position pointer to the beginning of the file for the next file read.

17. The Reminder button will accomplish the following:

o Take a text entry for the birth month to be searched for.

o Read the file and display in the listbox each record splitting out the fields, eliminating the comma delimiters and placing spaces between the fields.

o The birth month and day will be separated by a "/" when the record(s) is displayed.

o Reset the file position pointer to the beginning of the file for the next file read.

o Clear the entry in the textbox.

18. When clicking out of tabPage 2 and 3 which contain the listboxes clear the display contents of the listboxes.

19. When the application is terminated close all open FileStream objects.

Please provide the complete project folder for each project (not just the .cpp file), and document the code well.

Reference no: EM13936055

Questions Cloud

Process to get merchandize to your customers : • Some process to get merchandize to your customers. To spice things up a bit you have decided to sell something funny and demanding like: • T-shirts with a Superhero image and your company logo on them.
Discuss the necessity of rulemaking : Discuss the necessity of Rulemaking and the role that interest groups play in it
Triarchic theory of intelligence : The Triarchic Theory of Intelligence describes three kinds of intelligence: Analytical, Practical and Creative. Explain the essence of this theory and give examples of each (from your memory or imagination not the textbook) of these types of intel..
Determine whether there is a forecast bias in forward rate : You must determine whether there is a forecast bias in the forward rate. You apply regression analysis to test the relationship between the actual spot rate and the forward rate forecast (F).
Write accessors for each of the declared class variables. : Read the file and display in the listbox each record splitting out the fields, eliminating the comma delimiters and placing spaces between the fields.
Word-processed business-type report : This is an individual assignment. Write a word-processed business-type report. The word count is a minimum of 1500 words to a maximum of 3000 words. Students should evaluate and discuss the information appropriately to ensure it is relevant an..
How interest rates affect a forecast of foreign currencies : How would this affect a fundamental forecast of foreign currencies? How would this affect the forward rate forecast of foreign currencies?
What shift occurred in either supply or demand : Find one example in the article of any one of the following four possible shifts of supply or demand: Leftward shift of the supply curve; Rightward shift of the supply curve. Leftward shift of the demand curve; Rightward shift of the demand curve.
What is the forecasted percentage change in the boliviana : What is the forecasted percentage change in the boliviana if the spot rate is used as a one-year forecast? What is the forecasted percentage change in the boliviana if the one-year forward rate is used as a one-year forecast?

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a paper on memory management

Write a paper on Memory Management

  Create a program to store assignment grades for student

The elementary school for which you are doing development work has asked you to create a program to store assignment grades for one student.

  Program which converts fahrenheit to celsius.

Create the following program which converts Fahrenheit to Celsius. Your program must have the following functions: Read integer Fahrenheit temperatures from the user. You need to check whether the input is the correct one or not. If the user enters ..

  Why is it significant to use systems analysis

"Why is it significant to use systems analysis and design methodologies when building system? Why not just build system in whatever way seems to be quick and easy?

  Develop console application to generate random number

Develop C++ console application which generates the random number which should be guessed by user. Program will indicate to user if their guess is correct, too high or too low.

  Modify the password of thr record

Change the password of the CLASSMATE user to STUDENT using the console

  Create logic for program-continously prompts for numeric

Create the logic for a program that continously prompts the user for two numeric values that represent the sides of a rectangle.

  Return boolean value true if string in array is palindrome

Write the recursive method testPalindrome which returns boolean value true if string stored in array is palindrome and false otherwise. Method must ignore spaces and punctuation in string.

  Describe logic why it is not enough to show reduction

If we can only show: if x belongs to A, then y does not belongs to B;explain the logic why it is not enough to show A reduction B.IN other words why the theory needs to prove"if and only if"?

  Designing menu for administrator to simulate transmissions

Design a menu which permits administrator to simulate transmissions of information by manually typing in login or logoff data.

  Design the software architecture of a web auctioning site

Design the software architecture of a Web auctioning site and design a database for storing information about users, items, auctions and bids.

  Write a c function called values that returns void

Write a C function called values that returns void and takes two double precision arguments (called a and b) and one double precision array argument.

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