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.
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..
|