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:
- Put the icon in the title bar of the form
- Include a working Exit control
- Include a working Run control
- Clear the RichTextBox and display the header
- Use a loop to read the records
- Assign the values to variables
- Use padding to align the output
- Format your output
- Use a specifier
- Make the output look like the example
- Follow the naming conventions
- Use Courier New font for the RichTextBox
- Icon in the title bar
- Includes a working Run and Exit controls
- Displays the header
- Assign data to variables
- Form centered on the screen
- Loop to read the records
- Data parsed
- RichTextBox uses Courier New font
- Output formatted and looks like example
- Follows the naming conventions

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
Get step-by-step solutions from verified subject matter experts
