Explore BrainMass

C# win program to manage Friends Information

This content was STOLEN from BrainMass.com - View the original, and get the already-completed solution here!

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.

© BrainMass Inc. brainmass.com October 25, 2018, 2:55 am ad1c9bdddf

Solution Preview

Please find attached the zip file with full C# project. The file Friends.txt will be created initially within ...

Solution Summary

Solution contains a complete C# windows application project to manage Friends Information. All requirements in the description have been met, program compiled and tested.

See Also This Related BrainMass Solution

"Software as a Service"

Why "software as a service" is (or is not - pick one) going to dominate the next several years in information management.

The case for this module calls for you to explore some of the divergent opinions about this new approach to organizational information systems and weigh some of the competing claims. First off, if you don't know anything about computer networking or what a client/server netwiork is in particular, it's recommended that you start with this reasonably good short guide to network terminology (if you're already on top of this stuff, you can probably skip this one):

Sensible Computer Help (2008) Choosing the best computer network. Sensible-Computer-Help.com. Retrieved February 27, 2011, from http://www.sensible-computer-help.com/computer-network.html

With that foundation, you can now begin to learn about "the cloud." A good general reference to start with is here:

Chee, B. and Franklin, C. (2010) Applications for Clouds. Chapter 4 in Cloud Computing: Technologies and Strategies of the Ubiquitous Data Center. CRC Press. Retrieved November 15, 2010 from http://media.techtarget.com/searchSystemsChannel/downloads/Cloud_Computing_Techn_Strat_of_the_Ubiq_Data_Cent_Chapter_4.pdf (SEE ATTACHMENT)

As we noted in the introduction, a term often used more or less interchangeably with "cloud computing" (despite some significant differences of focus) is "software as a service" - described as a software distribution model in which applications are hosted by a vendor or service provider and made available to customers over a network, typically the Internet. The following article discusses some of the difficulties with organizational implementation of this model:

Fornes, D. (2010) The Software as a Service Dilemma. The Software Advice Blog. Retrieved November 10, 2010, from http://www.softwareadvice.com/articles/uncategorized/the-software-as-a-service-dilemma-104071/

Finally, this discussion would not be complete without the views of the skeptic; the following article points out some of the all-too-apparent complications that might ensue from a wholesale stampede into the clouds:

Schneier, B. (2009) Cloud Computing. Schneier on Security. Retrieved November 15, 2010 from http://www.schneier.com/blog/archives/2009/06/cloud_computing.html

But back to the enthusiasts. SaasBlogs is a website that, in its own words, is "a community centered around the idea that Software as a Service (SAAS) represents the largest shift in the software industry in decades. We cover ideas, technologies, challenges, and business strategies related to this new and exciting paradigm." Basically, it's a lot of blog posts primarily authored by three experts, addressing a very wide range of topics related to SaaS deployment, use, and effects. It's a very good place to see how people committed to this model think and what they bring to the table. In fact, it's so good at this that it's going to be your primary source material for this case assignment.

Scrolling down the SaasBlogs home page points you to the archive of posts on various aspects of this issue. You should spend some time looking through these posts for discussions of things that you find interesting relating to SaaS operation, implementation, or results. Perhaps they will relate directly to issues in your own environment; perhaps they will remain largely academic - but in either case, you should be alert to the language of the discussion and how both technical and social issues are being talked about. There are also other SaaS-related blog sites that you may wish to look at (google a few and see what you find).

In addition, the Background Readings page lists some optional readings that may be useful to you as you consider these issues, or you may find other sources yourself (be sure to reference properly whatever specific sources you draw on).

When you've read through the articles and related material and thought about them carefully, please compose a short paper on the topic:

Why "software as a service" is (or is not - pick one) going to dominate the next several years in information

View Full Posting Details