How to add and use a menu control on the form

Assignment Help Computer Engineering
Reference no: EM131270435

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.

Reference no: EM131270435

Questions Cloud

Examples of the paradoxes of public service : Name at least two examples of the paradoxes of public service that Snowden faced. In the movie, Snowden states, “The government wants economic and social control but uses terrorism as the excuse.” What does this mean to you? Why was Snowden hesitant ..
Design flowchart that ask actual value of piece of property : Design a flowchart and Python code that ask for the actual value of a piece of property and displays the assessment value and the property tax.
What is rate of change of revenue t months after january 1 : What is the rate of change of revenue t months after January 1?- Find all local maxima and minima for 0
What is the return of investment : Assume you are working as a systems analyst in Company XYZ, and is conducting (along with your team-mates) a cost-benefit analysis for a customer who has hired your organization to design/develop a new information system. What is the total Net Presen..
How to add and use a menu control on the form : How to add and use a menu control on the form. 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.
Required to demonstrate ethical judgment : Under Title 5 of the United States (U.S.) Code 2301, employees should be protected against reprisal for the lawful disclosure of information. Why wasn’t Snowden protected? Managers are required to demonstrate ethical judgment when facing complex issu..
Normative and positive statement : What is the difference between a normative and positive statement? Can you provide examples as well?
Function of high- powered money h : a) Express the money supply M as a function of high- powered money H. b) Would an increase in the reserve ratio or lower the money supply? c) How would an increase in the cash-deposit ratio c affect the money supply?
Where have you found good ideas for new venture : The text suggests a variety of places that entrepreneurs and business leaders find their ideas for a new enterprise. What do you do to “fire up your idea machine”? Where have you found good ideas for a new venture?

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd