BIT104 Programming Concepts Hospitality and Personal Services Business Degrees Assignment 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, you 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. CODE 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) BIT104 Programming Concepts Hospitality and Personal Services Business Degrees 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: Biological Agents Alert System A pharmaceutical company has genetically altered various yeasts and bacteria to produce materials that are used to make a number of different drugs. These are grown in growth vats which must have both the light intensity and temperature carefully controlled. Loss of any vats contents would be very expensive. Though the growth vats have controllers designed to keep the environment in the vat correct, a separate system is needed to constantly monitor the status of the lighting and temperature in case the controllers fail. The company that you work for has decided to develop an emergency warning system in case the vat environment fails or is out of specification. You are asked to develop a program that will run on a variety of platforms that will simulate how the warning system will work. Your simulation will be used by designers to assist with product development and to determine system requirements. The program’s main purpose is to send a warning message to the plant manager and supervisors in the event of either a complete failure of the growth environment or a serious deviation from the required growth environment. The system must also be capable of a current status report for supervisors. Since this is a simulation, the program will run entirely on a small computer and will use data entry fields in the place of real sensors and use disk files as a substitute for messages. (The final system would send emails and read sensors as well as store records of the systems status through time. You are only asked to develop a first cut of the program). The system will need to support several growth vats. The environmental conditions of each vat needs to be checked at regular intervals – but in a simulation, a data entry field will be used for set sensor values and a button (or change in value) can be used to cause the system to check the values. If any of the vats show they are no longer within range, the system will need to send a warning message that includes the status of all the units (overall health, temperature, and illumination). An information message should be sent if any of the sensors fail (sensor failure is detected when the value returned is outside of the sensor range. Since this is a simulation, this information would be written to a disk file as well as displayed on screen. The user should also be able to get a current status report on request. On initial use, and when either a new vat is added or its environmental values change a supervisor will need to enter the systems setup mode to add or delete vats or set the operating values for each vat. These values should be stored in a disk file and reloaded whenever the system is restarted. For each vat, the desired maximum and minimum temperature and the maximum and minimum illumination levels need to be set. Temperatures in operating vats vary depending on their contents, but are never outside the range of -10 to 40 degrees Celsius. Illumination is expressed as a percentage from 0 – 100%. The contents of the vat are also recorded. After the settings are configured and saved, the program should enter operation mode. In operation mode, the program must display a list of vats their contents and current temperature and illumination status. A data entry field is needed for each vat sensor and to turn a vat on/off. The status values for each vat should show GOOD, WARNING (used if temperature is less than 1 degree out of range or illumination is out of range by less than 5%), ALARM, OFF, and NA (failed sensor). (A button can be used to indicate that the sensor values have change and the program will then recheck each unit to determine it’s status). BIT104 Programming Concepts Hospitality and Personal Services Business Degrees Table 1. User settings examples VAT Contents Max Temp Min Temp Max Illum Min Illum 1 Yeast 128 24 20 95 50 2 Bacteria 100X 20 15 75 10 3 Yeast 100 32 27 83 62 These values are set and saved by the user on initial setup and may be changed at a later date.