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

  Explain the averaging algorithm

Explain the averaging algorithm

  Explain tcp protocol is asymmetric over wireless link

The following wireless TCP protocol is asymmetric over wireless link in terms of transmission power and bandwidth

  Write the definition of a method named copy receives

Write the definition of a method named copy receives a reference to a Scannerobject associated with a stream of input. The method reads all the Strings remaining to be read from the stream and displays them, one on a line with no other spacing, on..

  Questionnewtown records has determined to store information

questionnewtown records has determined to store information about musicians who perform on its albums in a database.

  Question1- inscribe a plan for analysis and design of an

question1- inscribe a plan for analysis and design of an e-commerce site recommending that aspects of process and data

  Use labels to recognize the input and output controls

design a calculator that allows addition, subtraction, multiplication, division, tangent, square, sine, cosine, and absolute value.

  Why choose database will return the k-th smallest value

as queries are expensive you would like to compute the median using as few queries as possible. Give an algorithm that fins the median value using at most O(logn) queries.

  What is the difference between serial and parallel transfer

What is the difference between a serial and parallel transfer? Explain how to convert serial data to parallel and parallel data to serial. What type of register is needed?

  Questiona company has 3 sites- micah mallory and william

questiona company has 3 sites- micah mallory and william. micah and mallory need 100 mbps of transmission capacity

  Compute a customer''s charges and total bill

The assignment is an assignment in that you, a software developer has won a contract to develop a program that will calculate a customer's charges and total bill at the gasoline pump, taking into account.

  Questionyou work for a small company that is having trouble

questionyou work for a small company that is having trouble with its two domain controllers. describe how you would

  What are the suitable foreign keys

What are the appropriate primary keys and given the selected primary keys, what are the appropriate foreign keys.

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