Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

Lab Assignments

Objectives

In this lab assignment, students will learn:

- How to add and use a menu control on the form

- How to write data in the sequential file

- How to read data from a sequential file

Goals

In this lab assignment, students will demonstrate the abilities to:

- Add and use a menu control on the form

- Write data in the sequential file

- Read data from a sequential file

Grading

- Design and create a GUI

- Create correct event handler methods

- Write data to a sequential file correctly

- Read data from a sequential file correctly

- The program can be compiled and executed without error

Develop a "Grade Report" project, which allows user to

Create a sequential file or open an existing file, then save test scores in this file.

Open an existing sequential file, and read test scores from this file.

This is the GUI in the design view. Add a menu "File" on the form, which has three menu items: New, Open and Close.

When start to run this project, only "New" menu item is enabled, all other controls are disabled.

Click "New" menu item, the "Save As" dialog box will be opened, user will create a new .txt file or open an existing .txt file.

After click "Save" button in the "Save As" dialog box, the "Close" menu item will be available. All input textboxes, "Submit" button and InputGradeListbox will be enabled.

Input test scores , then click "Submit and Save Grades" button, the input grades will be displayed in the "inputListbox" and also saved in the .txt file created in step 3. You should only save the grades in the file, one record a line, separated by ",", do not type title or header.

If there are no more grades to submit, click the "Close" menu item, then all controls are disabled except for "Open" menu item.

Now click the "Open" menu item, the "Open" dialog box is opened, user will select the file used in step 5 and open it.

Now the "Read and Display All Grades" button and ReadGradeListBox are enabled.

Click the "Read and Display All Grades" button, all grades will be read from the file and displayed in the ReadGradelistbox at bottom on the form.

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M92025165
  • Price:- $35

Priced at Now at $35, Verified Solution

Have any Question?


Related Questions in Computer Engineering

Suppose we are given a directed graph ga we want to find 3

Suppose we are given a directed graph G; a) We want to find 3 edge disjoint paths from a designated starting vertex u to a specific destination vertex d (or determine that no such paths exist). Describe an efficient algo ...

Write a program that populates an array named weekday from

Write a program that populates an array named weekday from the string SunMonTueWedThuFriSat, and then prints each day in uppercase. PERL Language

Sql using oraclethe task is to remove suffix from last name

SQL using Oracle. The task is to remove suffix from last name column (e.g. Smith Sr. or Stevens Jr.) and put into the preexisting suffix column in the DB. Final result needs to be in the last name column: Smith or Steven ...

Question as you are reviewing the results of your various

Question : As you are reviewing the results of your various scans, what factors do you believe you would take into consideration when determining priority? The priority would be used to determine remediation efforts. So, ...

Question suppose that someone tells you that an attribute

Question : Suppose that someone tells you that an attribute that is part of a composite primary key is also a candidate key. How would you respond to that statement? Explain.

In a large university 6 of students live in dormitories a

In a large university, 6% of students live in dormitories. A random sample of 14 students is selected. What is the probability that the sample contains more than five students who do not live in the dormitories?

A mixture contains 0600 moles of nah2po4 and 00800 moles of

A mixture contains 0.600 moles of NaH2PO4 and 0.0800 moles of K2HPO4. It is titrated with 0.500 molar NaOH (aq) to neutralize it completely. How many mL of the NaOH solution are required?

Given a list of numbers l a value x is said to be a

Given a list of numbers L, a value x is said to be a majority value if the value of over half the elements in L is x; in other words, if L has n elements and nx is the number of elements in L with value x, then x is a ma ...

Question 1 the facilities coordinator is a critical role

Question: 1. The facilities coordinator is a critical role. Put yourself in the position of the facilities coordinator. 2. Determine and list the qualities you have that would make you an excellent candidate for this pos ...

What is unified threat management utm and the services it

What is Unified Threat Management (UTM) and the services it combines into one device. Does UTM holds true to the principle of defense-in-depth

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As