Tuesday, December 3, 2013

Penn Foster 037096 Grocery Basket File, Printing, and Database Access in Windows Forms Page 197

File, Printing, and Database Access in Windows Forms

Penn Foster 037096 – Guaranteed 100% score

Click Below Link To Download!
http://www.askassignment.com/product/penn-foster-037096-grocery-basket-file-printing-database-access-windows-forms-page-197

OVERVIEW
Since you’ve finished reading Chapters 9 and 10 in your text- book and completed the study guide, you understand how to perform simple file I/O operations and access databases. This project will assess your understanding of accessing files and data-bound controls.

Make sure that you follow all directions completely and verify your results before submitting the project. Remember to include all required components in your solution or you won’t receive full credit.

YOUR PROJECT
In the graded project for Lesson 4, you added the GroceryItemForm to the GroceryApp project. In this project, you’ll add functionality to save and load saved grocery basket files. You’ll display the contents of the basket using the data- bound control DataGridView.

You’ll add a form to the project to display grocery items in the basket.

This will be the last graded project based on this scenario. You’ll be graded on the end-user functionality, so variable names and other aspects can differ, but the application must work as intended.

INSTRUCTIONS

1.In Visual Studio, load the GroceryApp project that you completed in Lesson 4.
2.Add the options &Save and &Load to the Application
menu.
3.Add the OpenFileDialog and SaveFileDialog components to the Windows form. Name them openDialog and saveDialog, respectively.
4.In the Click event for the Save option, prompt the user for a file location and store the basket as a text file. Recall that grocery items are stored in the basket vari- able. Hint: You could use a CSV file similar to a flat-file database. See Chapter 9 in your book for details on how to format the text file.
5.In the Click event for the Load option, prompt the user for a file location and load the contents of the text file into the basket. Make sure you empty the basket first.
Hint: You could use the Split method in the String class to break each line into individual array items. See the MSDN Library Web page http://msdn.microsoft.com/ en-us/library/b873y76a.aspx for more information.
6.Save your work and test the program. Add some items to the basket and save them. Then attempt to load them again. Click on the View option in the Basket menu to see the basket contents. You’ll modify how this menu option works in the concluding steps.
7.Add a new form to the project named BasketDisplayForm. Set the Text property to Basket Contents. You should also set the Size property to 600, 300.
8.Add a DataGridView control named viewBasket. Set the
Dock property to Fill.
9.In the Load event of the BasketDisplayForm, add the following code to display the basket contents in the DataGridView control:
viewBasket.DataSource = basket
Notice how simple it’s to perform data-binding with data sources other than databases.
10.Go back to the code view of GroceryItemForm and replace the content of the ViewToolStripMenuItem_Click event handler. Load and display the BasketDisplayForm modally instead. Remember you don’t have to worry about the basket variable, because the BasketDisplayForm handles data-binding in its Load event.
11.Save and run the application. Verify that all controls and menus work correctly. You’ll submit the compiled appli- cation for this project.

Note: If you close the Login form, you don’t need to per- form the login process. This is by design, so that you can test the application without logging on.

SUBMISSION GUIDELINES

To submit your project, you should build the project and submit the following file:
GroceryApp.exe

To find this file, you should go to directory where you saved the GroceryApp project. To determine this path, click on GroceryApp in the Solution Explorer panel. Copy the value for the Project Folder property in the Properties panel. In Windows Explorer, paste the file path and hit the Enter key. Then, go to the bin\Debug folder. Copy the GroceryApp.exe file to your desktop or any other temporary location. This EXE file is the compiled application and you can double-click on it to run it without using Visual Studio.

Use the following procedure to submit your project online:

1.Log in to view your student homepage and go to the My Courses page.
2.Click on Take Exam next to the lesson you’re working on.
3.Attach your files as follows:
a.Click on the Browse box.
b.Locate the file you wish to attach.
c.Double-click on the file.
d.Click Upload File.
e.If you have more than one file to attach, repeat steps a–d for each file.
4.Enter your e-mail address in the box provided. (Note: Your e-mail address is required for online submissions.)
5.If you wish to include comments about this project to your instructor, enter your comments in the Message box.
6.Click on Submit Files.

GRADING CRITERIA

Remember to follow directions and follow good programming principles as described in the study guide.
Your project will be graded using the following rubric:

The Save menu option performs the correct behavior. 30 points
The Load menu option performs the correct behavior. 30 points
The View menu option performs the correct behavior. 15 points
The BasketDisplayForm is laid out correctly. 15 points
The compiled application is included and runs. 10 point
Preview Solution:

Page 197, File, Printing, and Database Access in Windows Forms, Grocery Basket View A+ Solution
  • This tutorial was purchased 1 time and rated A+ by students like you.
  • Posted on Mar. 23, 2013 at 01:56:57AM

Price:$20
Special Price: $15
Email: syedjahangirb@gmail.com for downloading assignment
File in Solution:




No comments:

Post a Comment