Assignment title: Information


nment 1 Faculty of Business, Hospitality and Personal Services Business Degrees Faculty of Business, Hospitality and Primary Industries BIT104 Programming Concepts Assignment 1 Project Report Weight: 40% Due: 16/05/2016 Week 12 The program: Using the Case Study supplied, you are to create a program which meets the requirements then write a report which describes in detail how the program works. Your program, at a

minimum, must demonstrate the use of variables, arrays, strings, control logic, file input/output and a simple GUI. To achieve maximum marks, you will also need to make use of a user-defined class with methods or special methods to perform needed calculations or other necessary actions.

Assignment Progress Most of the components for this program will be dealt with in workshops, but it is expected that students will spend 4 hours per week outside of normal class time to work on this assignment and study for the exam. You will need to integrate many of the exercises from

your workshop into a single working unit which matches the design proposed. (See assignment 2 for details on how workshops will be assessed.) The report:

Your report must describe the requirements of the application, outline the design of the solution, and provide a testing procedure to prove the application works. In your report, yo

will be expected to use flow charts to show control logic and assist with your description of the source code. USE OF SCREEN OR CODE GENERATORS IS NOT PERMITTED. BIT104 Assignment 1 Report marking rubric. Student:

ID: NA Attempt Poor Good Very Good Excel Application Design

i) Description of application 5 ii) Application requirements 5 iii) Outline of program design 5 Testing

i) Input validation 5 ii) Output tested 5 iii) Test data 5

Description of program i) Identifies variables and use. 5 ii) Describes purpose of each method 5 iii) Flowcharts of all logic 5 iv) Grammatical expression is satisfactory. 5 NO MARKS AWARDED TO THIS

SECTION IF SCREEN OR CODE GENERATOR IS USED. Program Components

i) Settings Mode 5 ii) Operation Mode 10 iii) Sensor simulator 10 iv) GUI implementation 5 v) Logic structures 5 vi) Data file 5

vii) Array use 5 viii) Naming and standards 5

Gross Result:

Late submission deduction Total Result (Max 100) nment 1 Faculty of Business, Hospitality and Personal Services Business Degrees Faculty of Business, Hospitality and Primary Industries BIT104 Programming Concepts

Students may work together on the program, but each student must write their own report. All submissions must list the name, student id and contribution all participants in preparing the program.

Case Study: Advanced personal temperature and humidity control. Recently, clothing fabric has been developed that allows its insulation and porosity properties to be controlled with small electric currents applied to the fabric. Passing a current through the horizontal fibres causes the insulation properties to increase significantly and in proportion to the current applied. The rate that the cloth allows moisture to pass through is in proportion to the current through the vertical fibres. Clothing made with this fabric would be extremely useful for sports attire and people

working in extreme temperature environments. However to gain full advantage of this fabric, a device similar to a smart watch is needed to control the insulation and porosity

properties of the fabric. This device will use sensors to determine the best settings for the fabric. Your job as a new programmer is to develop software which will simulate the control of

the fabric properties to match the needs of the wearer. (Make sure you understand the term 'simulate').

The wearer will set the desired insulation factor and porosity index based on their exercise activity, heart rate and air temperature. This information will be stored so that the wearer can select from their saved settings. Your first task is to prepare a drawing, using pen and paper, a proposed user interface that

includes the sensor simulator. A description of what the program does is to be included. After this is approved by your tutor, you may start programming parts of the control program. Program and test in small steps! Perhaps start by just collecting the data inputs and display them. Only build the controls for insulation and when those are working correctly, add in porosity controls. Your workshops will assist with preparing code needed for this

project. THIS IS NOT AN EASY PROBLEM. YOU MUST SPEND SOME TIME AND

EFFORT UNDERSTANDING WHAT THE PROGRAM MUST DO. nment 1 Faculty of Business, Hospitality and Personal Services

Business Degrees Faculty of Business, Hospitality and Primary Industries BIT104 Programming Concepts

Table 1. User settings examples Activity Insulation factor (%) Porosity index

(%) Marathon Cycling

Basketball Soccer These values are set and saved by the user on the 'wearable controller'. Your display will need input fields for these.

Table 2. Fabric Coefficients Air Temp (celcius) Insulation coefficient

Porosity coefficient 0- but < 10 10 5 10- but < 20 15 6

20- but < 30 20 8 30 or above 25 10 This data will be set as constants in your code.

Table 3. Fabric current calculations Insulation current InsC = IF*(60-Temp)*IC*HR/1000 Porosity current PorC=PI*Temp*PC*(HR-60)/1000

IF = Insulation Factor, IC = Insulation coefficient, HR = Heart Rate PI = Porosity index, PC = Porosity coefficient InsC = Insulation current (ma), PorC = Porosity current (ma) Temp = air temperature

These formulas are used to determine the current settings for the fabric. In your simulation, you need to display these outputs on the fabric status portion of your display.

You display will need some data entry fields to simulate the sensors: Heart rate, Air Temperature