RSS

Lab 5

09 Nov

The Scenario

It recently occurred to the founder of Incorporeal Incorporated that creating a completely unsecured, fully web-based payroll application with third-semester students in a course that’s not about web programming is, for lack of a better term, stupid. However, to get with the times and allow his application to be used on systems with different resolutions he’s asked that we consider re-creating the payroll application as WPF.

This Lab is a new implementation of Lab 3. It would be helpful to be familiar with the Lab 3 requirements prior to reading and attempting this Lab.

Design Specifications

  • Re-develop the piecework payroll application from Lab 3 as an WPF application using VB or C#
  • This Lab is nearly entirely about getting used to XAML for form design for a WPF application; if your piecework worker class and calculations have been perfect – or nearly perfect – on previous labs you will not need to do very much coding

The Piecework Payroll Form

  • Although you will be re-creating this from scratch, the required features are unchanged
  • There should be:
    • A textbox to enter a worker’s name, and an accompanying label
    • A textbox to enter a worker’s number of messages, and an accompanying label
    • A label that will display the individual worker’s pay, and an accompanying label
    • A label that will display a message when a worker achieves a certain level of productivity
    • A button to create the worker and run the calculation
    • A button to clear the form
    • A button to show the Summary form
  • This window should be able to be resized without disrupting the use of the application – consider use of the MinWidth and MinHeight XAML attributes
  • Be prepared to add more controls to this form in our next lab

The Summary Form

  • Although you will be re-creating this from scratch, the required features are unchanged
  • There should be:
    • A label that will display the overall total number of messages, and an accompanying label
    • A label that will display the overall total pay, and an accompanying label
    • A label that will display the overall average pay, and an accompanying label
    • A button to close the form

The Piecework Worker Class

  • If things have been done correctly, changes are required at all
  • The pay scale is the same as it was in Lab 2 and 3, with the bonus pay from Lab 3 added
  • This class should have properties to access an individual worker’s name, number of messages and calculated pay, as well as shared properties to access the total number of workers, total number of messages, and total calculated pay
  • In a parametrized constructor, this class should, at a minimum, set the worker’s name and number of messages
  • Validation for the worker’s name and number of messages should take place within the piecework worker class
  • It may make sense, but is not required, to calculate the worker’s pay using arrays

Additional Considerations

  • Pay attention to when your labels are cleared, and ensure no incorrect information is ever on-screen
  • The program must be adequately documented:
    • functions should all have block comments
    • calculations, decisions and iteration should be explained with brief comments
    • there should be a header at the top of the file including your name, the last modified date, and a description
  • Consider an approved style guide and ensure your variable names and other elements are properly cased and adequately descriptive
  • Consider accessibility; this application must be easily usable with keyboard only and any fields the user interacts with must have useful tooltips

Enhancements for Stock:

  • You earn 1 bonus stock if the string validation successfully checks that the worker has a first and last name each consisting of at least two letters
  • You earn 1 bonus stock if the productivity messages are implemented using a user-defined event created in the business logic tier and handled at the presentation tier with an event handler
  • You earn 3 bonus stock if you include a set of two radio buttons that will toggle the currency displayed on all forms back and forth between Canadian dollars and Swiss Francs
 
Leave a comment

Posted by on November 9, 2016 in academic writing, Uncategorized

 

Tags: , , ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: