Question: Writing this program in C Sharp (C#) in Visual Studio Using 1 method. Basic syntax, and code. Create a Visual Studio program to generate a

Writing this program in C Sharp (C#) in Visual Studio

Using 1 method. Basic syntax, and code.

Create a Visual Studio program to generate a report for the weekly meal count for the foodservice.

Write a program to read data from a file and display it on a form.

The data file is FoodService.dat.

  • Here is the file data

Sunday,0,247,364

Monday,312,574,522

Tuesday,316,577,536

Wednesday,327,584,548

Thursday,318,571,506

Friday,274,568,352

Saturday,251,324,316

The record structure is day, breakfast, lunch, dinner.

The file is comma-delimited.

Center the form on the screen.

Clear the RichTextBox and display the header.

  • Use a loop to read the records
  • Parse them
  • Assign the values to individual variables and display the data
  • Use Courier New font for the RichTextBox.
    • Be sure to format your output.
    • Use a specifier.
  • Use the proper naming conventions for all controls and variables.
  • Use menus or Buttons for the controls.

Make the form look like the example.

Be sure to:

  1. Put the icon in the title bar of the form
  2. Include a working Exit control
  3. Include a working Run control
  4. Clear the RichTextBox and display the header
  5. Use a loop to read the records
  6. Assign the values to variables
  7. Use padding to align the output
  8. Format your output
  9. Use a specifier
  10. Make the output look like the example
  11. Follow the naming conventions
  12. Use Courier New font for the RichTextBox
  13. Icon in the title bar
  14. Includes a working Run and Exit controls
  15. Displays the header
  16. Assign data to variables
  17. Form centered on the screen
  18. Loop to read the records
  19. Data parsed
  20. RichTextBox uses Courier New font
  21. Output formatted and looks like example
  22. Follows the naming conventions

Writing this program in C Sharp (C#) in Visual Studio Using 1

sFood Service Meal Count Run Exit Ionized State Weekly Meal Count 316 Day Breakfast Sunday 0 Monday 312 Tuesday Wednesday 327 Thursday 318 Friday 274 Saturday 251 Lunch 247 574 577 584 571 568 324 Dinner 364 522 536 548 506 352 316

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!