![]() Private Sub FormMain_Load(sender As System.Object, e As System.EventArgs) Handles MyBase. MyGrid.Col = 4 : myGrid.Text = A(iRow).IncomeTax MyGrid.Col = 3 : myGrid.Text = A(iRow).AnnualIncome MyGrid.Col = 2 : myGrid.Text = A(iRow).FirstName MyGrid.Col = 1 : myGrid.Text = A(iRow).LastName MyGrid.Col = 0 : myGrid.Text = A(iRow).EmployeeId MyGrid.Col = 4 : myGrid.Text = "Income Tax" MyGrid.Col = 3 : myGrid.Text = "Annual Income" MyGrid.Col = 2 : myGrid.Text = "First Name" MyGrid.Col = 1 : myGrid.Text = "Last Name" MyGrid.Col = 0 : myGrid.Text = "Employee Id#" Public Sub Parse(inbuff As String, ByRef dataRec As DataRec)ĭataRec.IncomeTax = dataRec.AnnualIncome * 0.05įileReader = My.("E:\\IncomeRecord.txt") I am using the MS Flex grid control, so you may need to downloadĪ copy of MSFLXGRD.ocx, add it to the toolbox, and drag it on the form. Please email me so we can get you all of the project file involved. Exit program This is when program should end. Sample output based on the data provided above:ĥ. This information should be displayed in a new window/form. Display the ID, last name, first name, annual income, and the income tax calculated for all employees. Display employee data including Income Tax. A message should be displayed at the end to indicate that the calculation was completed successfully.Ĥ. For this assignment, to calculate income tax, a 5% tax rate applies across the board to all income amount. Calculate the income tax for all and store it in an array. You must display all fields and records.ģ. This menu item should open a new window/form and simply print the contents of the arrays created in suitable format on the screen. Read employee data You must create and use appropriate arrays to retrieve all the information about employees from the file IncomeRecord.txtĢ. Display the employee data including the income tax. Program should provide user with the following menu Your program should be able to process the following commands. Note: This is just sample data, there will be more records for the other employees. The names of the fields are:Īn example record may have the following form: Each record is on a single line and the fields are separated by spaces. The input file called IncomeRecord.txt contains a list of Annual income records of employees in a firm. Var worksheet = ĭataGridViewConverter.Part 1: Programming – Income Tax Applicationĭue to upcoming end of financial year, you are being called in to write a program which will read in a file and produce reports as outlined. Var workbook = ExcelFile.Load(openFileDialog.FileName) If (openFileDialog.ShowDialog() = DialogResult.OK) The app should open a text.txt file and output the corresponding mobile number to that name. ![]() "HTML files (*.html, *.htm)|*.html *.htm" I want to make a simple app that prompts the user to enter his name. Var openFileDialog = new OpenFileDialog() Private void btnLoadFile_Click(object sender, EventArgs e) SpreadsheetInfo.SetLicense("FREE-LIMITED-KEY") ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |