Penn Foster Graded Project 03784300 Windows Forms and Applications

Availability: In stock

Regular Price: $20.00

Special Price: $15.00

OR

Penn Foster Graded Project 03784300 GroceryApp Basket Details

Double click on above image to view full picture

Zoom Out
Zoom In

More Views

Quick Overview

Penn Foster Graded Project 03784300 Windows Forms and Applications


OVERVIEW
This project will assess your understanding of accessing files, using data-bound controls, and deploying your application.
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.


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
- Display the contents of the basket using the data-bound control DataGridView
- Add a form to the project to display grocery items in the basket
- Locate and share your application assembly with your instructor
Note: This project is the last graded project based on this scenario. You’ll be graded on the end-user functionality, so variable names and other code conventions are your choice, but the application must behave as expected.


INSTRUCTIONS
1. In Visual Studio, load the GroceryApp project that you completed in Lesson 4.
2. Open the GroceryItemForm.vb file.
3. Add the options &Save and &L oad to the Application menu above the Exit option. You can add the Save and Exit options to the Application menu underneath Exit and then click and drag them above it.
4. Add the OpenFileDialog and SaveFileDialog components to the Windows form.
5. 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 variable.
Hint: You could use a CSV file similar to a flat-file database, like the example in Section 2 of Lesson 5.
6. 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 at http://tinyurl.com/3odx56 for more details.
7. Save your work and test the application.
a. Add some items to the basket and save them.
b. Then attempt to load them again.
c. Click on the View option in the Basket menu to see the basket contents. You will modify how this menu option works in the concluding steps.
8. Add a new form to the project named BasketDisplayForm.
a. Set the Text property to Basket Contents.
b. Set the Size property to 600, 300.
9. Add a DataGridView control named viewBasket.
10. Set the Dock property of the DataGridView control to Fill.
11. 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 is to perform data-binding with collections.
12. Go back to the code view of GroceryItemForm.
13. Replace the content of the ViewToolStripMenuItem_Click event handler, so that it loads and displays the BasketDisplayForm modally.
Hint: You don’t have to worry about the basket variable, because the BasketDisplayForm handles data-binding in its Load event.
14. Save and run the application. Verify that all controls and menus work correctly. You’ll submit the compiled application for this project.


SUBMISSION GUIDELINES
You’ll submit the GroceryApp.exe file for your project. To find this file, you should go to directory where you saved the GroceryApp project. To open the project directory, right-click on GroceryApp in the Solution Explorer panel and choose the Open Folder in File Explorer option in the context menu.
Go to the bin\Debug folder and copy the GroceryApp.exe file to your desktop or any other temporary location. You should make sure the GroceryApp.exe file executes before submission. You can double-click on it without using Visual Studio for testing.


GRADING CRITERIA
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 points
TOTAL 100 points

Regular Price: $20.00

Special Price: $15.00

Details

Penn Foster Graded Project 03784300 Windows Forms and Applications

OVERVIEW
This project will assess your understanding of accessing files, using data-bound controls, and deploying your application.
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.

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
- Display the contents of the basket using the data-bound control DataGridView
- Add a form to the project to display grocery items in the basket
- Locate and share your application assembly with your instructor
Note: This project is the last graded project based on this scenario. You’ll be graded on the end-user functionality, so variable names and other code conventions are your choice, but the application must behave as expected.

INSTRUCTIONS
1. In Visual Studio, load the GroceryApp project that you completed in Lesson 4.
2. Open the GroceryItemForm.vb file.
3. Add the options &Save and &L oad to the Application menu above the Exit option. You can add the Save and Exit options to the Application menu underneath Exit and then click and drag them above it.
4. Add the OpenFileDialog and SaveFileDialog components to the Windows form.
5. 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 variable.
Hint: You could use a CSV file similar to a flat-file database, like the example in Section 2 of Lesson 5.
6. 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 at http://tinyurl.com/3odx56 for more details.
7. Save your work and test the application.
a. Add some items to the basket and save them.
b. Then attempt to load them again.
c. Click on the View option in the Basket menu to see the basket contents. You will modify how this menu option works in the concluding steps.
8. Add a new form to the project named BasketDisplayForm.
a. Set the Text property to Basket Contents.
b. Set the Size property to 600, 300.
9. Add a DataGridView control named viewBasket.
10. Set the Dock property of the DataGridView control to Fill.
11. 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 is to perform data-binding with collections.
12. Go back to the code view of GroceryItemForm.
13. Replace the content of the ViewToolStripMenuItem_Click event handler, so that it loads and displays the BasketDisplayForm modally.
Hint: You don’t have to worry about the basket variable, because the BasketDisplayForm handles data-binding in its Load event.
14. Save and run the application. Verify that all controls and menus work correctly. You’ll submit the compiled application for this project.

SUBMISSION GUIDELINES
You’ll submit the GroceryApp.exe file for your project. To find this file, you should go to directory where you saved the GroceryApp project. To open the project directory, right-click on GroceryApp in the Solution Explorer panel and choose the Open Folder in File Explorer option in the context menu.
Go to the bin\Debug folder and copy the GroceryApp.exe file to your desktop or any other temporary location. You should make sure the GroceryApp.exe file executes before submission. You can double-click on it without using Visual Studio for testing.

GRADING CRITERIA
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 points
TOTAL 100 points

Product Tags

Use spaces to separate tags. Use single quotes (') for phrases.