Nehal R.

asked • 11/01/20

Computer Program

1.1 Problem Statement

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

Inputs:

The input file called IncomeRecord.txt contains a list of Annual income records of employees in a firm. Each record is on a single line and the fields are separated by spaces. The names of the fields are:

 Employee ID number - Integer

 Employee Last name - String

 Employee First Name - String

 Annual Income - Double

An example record may have the following form:

10001 Smith Will 30000

10002 Sivo Maika 100000

10003 Deo Amit 25000

Note: This is just sample data, there will be more records for the other employees.

1.2 Program Specifications:

Your program should be able to process the following commands. i.e. Program should provide user with the following menu.

I. Read employee data. (from file IncomeRecord.txt)

II. Print all employees’ data. (on a new Window/Form)

III. Calculate the income tax for all and store it in an array.

IV. Display the employee data including the income tax. (on a new Window/Form)

V. Exit program.

1.2.1 Explanation of each menu item.

1. Read employee data

You must create and use appropriate arrays to retrieve all the information about employees from the file IncomeRecord.txt . You may use dialogue box to choose file for reading.

2. Print all employees’ data.

This menu item should open a new window/form and simply print the contents of the arrays created in suitable format on the screen. You must display all fields and records.

3. Calculate the income tax for all and store it in an array.

For this assignment, to calculate income tax, a 5% tax rate applies across the board to all income amount. A message should be displayed at the end to indicate that the calculation was completed successfully.

4. Display employee data including Income Tax.

Display the ID, last name, first name, annual income, and the income tax calculated for all employees. This information should be displayed in a new window/form.

Sample output based on the data provided above:

10001 Smith Will 30000 1500

10002 Sivo Maika 100000 5000

10003 Deo Amit 25000 1250

5. Exit program

This is when program should end.

1.2.2 Use of Procedures and Structures in Assignment:

It is necessary that you implement this assignment using sub and function procedures. To obtain the maximum score you must demonstrate the ability to create and use procedures of your own making.

1.3 Important Note:

 In all your program constructs you must write comments where necessary. Don’t write comments for obvious code, but segments of code which seem complex. Also include both members’ name, student ID#, and tutorial group as comments at the top of your program code.

 All input should be validated wherever necessary

 This assignment is to be done using Microsoft Visual Basic 2010 Express Edition

Part 2: Assignment Rules and Submission Instruction

2.1 Assignment Teams

This is a group assignment where you work in pairs. At most two students can work together. You have to find a partner for the assignment yourself. You can seek help from your tutors in the lab if you need assistance in finding an assignment partner.

2.2 Submit before the Deadline

You have to submit your work before the deadline mentioned above. Lab computers are scarce, so the trick is to start EARLY. Also when you finish don’t hold on to your assignment till the last moment. Submit as soon as you are satisfied with it.

2.2.1 Submitting late:

If you think that you will not be able to submit the assignment on time due to circumstances which are beyond your control, then you will need to seek approval from the course coordinator prior to the due date.

This means you have to ask for an extension, explaining the reasons, before the deadline, and not after. A late submission will be penalized by 20% for each 24-hour period it is late. Where possible, it is better to hand in your work early and get credit for partial work than handing in late. A partial work may earn more points than a working assignment which is submitted late.

2.3 Submission

 You will have to submit a program for this assignment.

 Only one member of the team has to submit the assignment.

Note:

Be sure to submit a zipped/compressed copy of your project files only. Name your program file as A2_YourIdNumber_YourPartnersIDNumber.zip, where YourIdNumber is your student id number and YourPartnersIDNumber is your partner’s ID number (e.g. A2_S01234561_S12345687.zip).

Be sure to remove the executable versions of your program by deleting the bin and obj folders in your project. Also be sure that you submit the assignment only once you are totally satisfied. We will not accept “corrected versions” submitted through other channels after the due date. However, you can submit the assignment as many times as you like on Moodle before the due date!

2.4 Plagiarism

For this and other work in IS122, it is essential that you avoid plagiarism. Not only do you expose yourself to possibly serious disciplinary consequences, but you will also cheat yourself of a proper understanding of the concepts emphasized in the project. You will almost certainly fail the final exam which will test your understanding of the project. It is not plagiarism to discuss the assignment with your friends and consider solutions to the problems together. However, it is plagiarism for you to copy all or part of each other’s programs. If you find somebody has stolen your assignment and produced it as their own, it will be considered plagiarism. We are using automated tools to assist with the detection of plagiarism.

They will highlight any unusual code that is similar between students. All cases that are flagged as potential plagiarism will be checked by hand. So do not leave your flash drives around. Be careful with them. And make sure you log out of the lab machines when you are finished working with them. Don’t copy part of someone solutions, and do not give somebody else an electronic copy of your solution. If you give someone your program it is almost guaranteed that part of it will end up in their program, no matter whether you ask them not to copy.

Any student posting code for this project on Moodle will be considered to be committing plagiarism. Do not submit your code to any discussion group or mail it to anyone except the lecturers or tutors.

Do not be concerned if Moodle tells you that a file cannot be checked by TurnItIn for plagiarism. This will be your submission file. We will check programs separately once submitted.

2.5 Support

If you have a problem with the assignment, with Visual Basic and other exercises, and questions in this assignment, lecture notes, the book, please ask. First use the forum for your questions. This will also help other students with the same questions. Then ask your tutor for help, or otherwise the course coordinator.

All contact information is on Moo

1 Expert Answer

By:

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.