Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a c# program that stores student grades in a text file and read grades from a text file. The program has the following GUI:

Write a c# program that stores student grades in a text file and read grades from a text file. The program has the following GUI:

image text in transcribed

There are four buttons: Create File, Save Case, Close File and Load File. Initially, only the Create File and Load File buttons are enabled. If the user clicks the Create File button, a Save File Dialog window opens for the user to specify the name and location of the new data file. Then the Save Case and the Close File buttons are enabled while the Create File button is disabled. The user enters name, ID and grade, and clicks the save Case button to add the students data to the data file.

image text in transcribed

The user can enter as many cases as he wants, and then click the Close File button to close the file. The Save Case and the Close File button will be disabled again while the Create button will be enabled again.

Data files used in this program are sequential-access text files. Each students record is stored in a separate line, with comma inserted between data fields. The following is an example:

Bob Jones,1001,A-

Sarah Johnson,1002,B+

Sam Smith,1003,C-

Whenever the Load File button is clicked, a Open File Dialog window opens for the user to choose. Then the program will display the data stored in the file in a list box. For each student, display name first, followed by student ID, and then grade. Add space between data fields. The following is an example:

image text in transcribed

Grade Form Name Student ID: Grade Create File Save Case Close File Load File

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

Next Generation Databases NoSQLand Big Data

Authors: Guy Harrison

1st Edition

1484213300, 978-1484213308

More Books

Students also viewed these Databases questions

Question

Why do HCMSs exist? Do they change over time?

Answered: 1 week ago