Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Genomes Browsers And Databases Data Mining Tools For Integrated Genomic Databases

Authors: Peter Schattner

1st Edition

0521711320, 978-0521711326

More Books

Students also viewed these Databases questions