Docsity

Sales Reports - Assignment 4 - Application Programming for Information Systems | IST 256, Assignments of Information Technology

Toggle sidebar
bg1
IST 256
Assignment 4
SALES REPORTS
Assignment 4 due April 2, at the beginning of class
Write a program that performs the following:
• Read in a list of employees, gender, years with the company, and 6 monthly sales
figures from a file whose name is specified by the user in a text box.
• Calculate the number of bonus points each employee should get. One bonus point is
given for each month an employee sold over $5,000.
• Calculate the total sales for each employee from the sales figures.
• Reverse the names of the employees from First Name Last Name to Last Name,
First Name.
• Print the names and total sales of people with the company at least 10 years to one
multiline label or text box, with 5 to 9 years experience in another label or text
box, and with fewer that 5 years experience to a third label or text box.
• Print the number of females and the number of males to labels or text boxes.
• Prepare two separate reports, one for the people who get bonuses, and one for
those who do not
Each report should be in a file (with names specified by the user). The first
line of the file should be a title of the report. Skip 2 lines and then present the
data: Name, gender (written out: "Male" or "Female"), total sales, and bonus
($100 for each bonus point) which should be right aligned at column 40.
The format of the input file will be like the following example
Betty Boop, F, 2, 2000, 7000, 1500, 4000, 7500, 4200
Please make sure that you have several people that fit each of the three categories for
number of years of service, and for people who get bonuses or not.
pf2

Partial preview of the text

Download Sales Reports - Assignment 4 - Application Programming for Information Systems | IST 256 and more Assignments Information Technology in PDF only on Docsity!

IST 256 Assignment 4

SALES REPORTS

Assignment 4 due April 2, at the beginning of class

Write a program that performs the following:

  • Read in a list of employees, gender, years with the company, and 6 monthly sales figures from a file whose name is specified by the user in a text box.
  • Calculate the number of bonus points each employee should get. One bonus point is given for each month an employee sold over $5,000.
  • Calculate the total sales for each employee from the sales figures.
  • Reverse the names of the employees from First Name Last Name to Last Name, First Name.
  • Print the names and total sales of people with the company at least 10 years to one multiline label or text box, with 5 to 9 years experience in another label or text box, and with fewer that 5 years experience to a third label or text box.
  • Print the number of females and the number of males to labels or text boxes.
  • Prepare two separate reports, one for the people who get bonuses, and one for those who do not  Each report should be in a file (with names specified by the user). The first line of the file should be a title of the report. Skip 2 lines and then present the data: Name, gender (written out: "Male" or "Female"), total sales, and bonus ($100 for each bonus point) which should be right aligned at column 40.

The format of the input file will be like the following example

Betty Boop, F, 2, 2000, 7000, 1500, 4000, 7500, 4200

Please make sure that you have several people that fit each of the three categories for number of years of service, and for people who get bonuses or not.

GRADING

All programs should have comments that contain the name of the programmer and that explain the role of each procedure, including buttons. The form must have a Close button.

In order to get a maximum grade of

60 the program must run

75 the program must read in the data properly from a user-specified file and correctly compute the totals for each employee and display the three different categories

80 the program must correctly compute the number of males and females

90 the program must print out the bonus and non bonus people to two separate files, as specified by the user.

95 the program must format the data correctly on the output files, including reversing the order of the names.

100 the program must check for missing file names.