Write the expenses to a sequential access file

Assignment Help Computer Engineering
Reference no: EM131270344

Please write the expenses to a sequential access file, where the expense data for each individual are contained on a single line, separated by comma. For example, for an employee named JSMITH, ID 1, and using information from the example in the text, the line in the file would look like this:

1 JSMITH,SIGCSE 2013,March 6-9, Denver, CO, 190.1,250.15,675,45

Note that the city and state are separated by a comma, so you may want 2 text boxes for city and state on your form. You will need an ID text box as well as a name text box on the form to identify each line (ID text box) and to provide an employee name (name text box). If you choose to enter the ID yourself you can do so, just ensure the ID is unique.

Provide an additional list box that will be populated with the name (field(1)) in the file.

When an item is selected from the list box, populate the fields of the expense report on the form.

Create a separate form that will be used to enter new expense information. Provide 2 buttons on this secondary form:

Save data and close

Cancel and close

Close the form upon either button action, making sure to save the new data to the data file.

There is no need to avoid duplicates nor is there the need to delete lines from the file in this exercise.

There is no need to print the report as described in the original problem.

Use LINQ query in this problem

Include a File Open Dialog Box and a File Save Dialog Box appropriately deployed to allow the user to place the file in a location other than the Bin/Debug Directory.

Hints:

Use an Employee array to hold each line of data.

Add a module to the project to hold a reference to the sequential access file reader and writer

You may place the file in the Bin/Debug directory if you wish.

Reference no: EM131270344

Questions Cloud

Target customer profile and retail strategy analysis : Target Customer Profile and Retail Strategy Analysis. Description of a typical customer. Discuss why this typical customer buys from this retailer. Discussion of current retail mix and how the mix meets customers’ need.
Design a 3-bit modulo 8 gray code counter fsm : Extend your modulo 8 Gray code counter from Exercise 3.27 to be an UP/DOWN counter by adding an UP input. If UP = 1, the counter advances to the next number. If UP = 0, the counter retreats to the previous number.
Taxes and other government related charges : If it is lower than the set price, it will create a producer surplus. How do you think the taxes and other government related charges play into the buying and selling prices?
Process is experienceing severe quality problems : In a three stage production process which is operated as a worker paced line. Process is experienceing severe quality problems related to insufficiently trained workers. Specifically 20% of the parts going through operation 1 are badly processed by t..
Write the expenses to a sequential access file : Please write the expenses to a sequential access file, where the expense data for each individual are contained on a single line, separated by comma.
Sample data support or inform economic decision : 1. How can sample data support or inform economic decision making within an organization? Can the sample data have errors or be problematic when making decisions? Provide an example.
Inform economic decision making within organization : 1. How can sample data support or inform economic decision making within an organization? Can the sample data have errors or be problematic when making decisions? Provide an example.
Explain unequal interest group representation : Define interest group formation and survival and discuss the barriers to interest group formation and survival. Explain unequal interest group representation. Some lobbying strategies and tactics are more effective than others: Discuss which ones are..
Charge of procuring a machine for your factory : You are in charge of procuring a machine for your factory. The process will take about a year to complete and is a major investment in specialized equipment that will make or break the profitability of the company. It is expected the equipment will o..

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