Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Java Expert


Home >> Java

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.

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.

Case Study: Greenhouse Humidity control

Growing food or plants in a greenhouse environment requires control of many aspects of the internal environment including temperature, humidity, soil ph, soil moisture, nutrient level, and lighting. You have been employed to develop software that will simulate the control of humidity and soil moisture in a greenhouse.

Your program will consist of two parts, one is the control system that will respond to sensor information to turn on/off a misting device, turn on/off a watering system and open/close ventilation windows. The second part of the program will act as simulated sensors allowing the user to simulate readings of a set of sensors (soil moisture, interior humidity, exterior humidity).

The greenhouse uses a misting system to increase the internal humidity and ventilation flaps to reduce the humidity. Soil moisture is increased through the use of irrigation soakers. The optimum values for these conditions vary depending on the requirements of the crops being grown in the greenhouse. These values will be determined and set by the farmer.

Table 1 Environmental Settings

 

Morning

Day

Evening

Night

Variance

Humidity

75

65

65

85

5%

Soil Moisture

20

20

25

30

10%

The range of values for any setting is between 0 and 100.  A setting of 0 for humidity turns off humidity control. For soil moisture, 0 turns off the soakers. A setting of 100 turns on the relevant devices.

The control system:

Humidity control: In all cases, if the internal humidity is within the allowed variance, the misters are turned off. If the greenhouse humidity is below the required setting, and the external humidity value is above the required value, the ventilation flaps are opened and the mist system is left off. Otherwise the ventilation is closed and the misters are turned on. If the internal humidity is too high and external humidity is either lower or equal to the internal humidity, the misting system is turned off and the ventilation system is opened.

Soil moisture: The soakers are turned on if the soil moisture is below the required setting and they stay on until the reading reaches the setting plus the variance. They then remain off until the level falls below the setting.

For the control system, a GUI needs to provide for the system to show the state of the misting system, soakers and ventilation windows. The user should have buttons which provide for turning off the system, closing the system, running the system, and adjusting the environmental values.

The simulation system:

This is a simple GUI that allows values to be set for the sensors by a user. The values always range between 0 and 100 for each sensor. The time of day also needs to be set to one of the 4 values. Usually a control systems checks the values of the sensors about once every minute, but for simulation purposes, the simulation system can send a signal to the control system that its value has changed.

The GUI for this system should be available whenever the control system is turned on. The 'default' values for sensors should match the environmental settings.

Java, Programming

  • Category:- Java
  • Reference No.:- M91263516

Have any Question?


Related Questions in Java

Overviewyou are required to use java se 80 and javafx to

Overview You are required to use Java SE 8.0 and JavaFX to develop a Graphical User Interface (GUI) for the FlexiRent rental property management program created in Assignment 1. This assignment is designed to help you: 1 ...

Can someone help me please with those question1what is the

Can someone help me please with those question 1:what is the best data type for student id datatime,currency,number,decimal 2:which relationshipis preferable? one to one,one to many,many to many 3:if you add table A's pr ...

Question slideshows or carousels are very popular in

Question : Slideshows (or carousels) are very popular in websites. They allow web developers to display news or images on the website in limited space. In this code challenge, you are required to complete the JavaScript ...

Operating systems assignment -problem 1 sharing the bridgea

Operating Systems Assignment - Problem 1: Sharing the Bridge A new single lane bridge is constructed to connect the North Island of New Zealand to the South Island of New Zealand. Farmers from each island use the bridge ...

Project descriptionwrite a java program to traverse a

Project Description: Write a java program to traverse a directory structure (DirWalker.java) of csv files that contain csv files with customer info. A simple sample in provided in with the sample code but you MUST will r ...

Assessment socket programmingtaskwrite a java gui program

Assessment: Socket Programming Task Write a JAVA GUI program that would facilitate text chatting/exchanging between two or multiple computers over the network/internet, using the concept of JAVA socket programming. If yo ...

Assignment game prototypeoverviewfor this assessment task

Assignment: Game Prototype Overview For this assessment task you are expected to construct a prototype level/area as a "proof of concept" for the game that you have designed in Assignment 1. The prototype should function ...

Part a specification - robot simulationpart a

PART A Specification - Robot Simulation PART A Requirements To complete this assignment you will use the supplied eclipse project Robot P1/. It is already set up to execute a simple arm movement loop which you will build ...

Assessment instructionsin this assessment you will design

Assessment Instructions In this assessment, you will design and code a simple Java application that defines a class, instantiate the class into a number of objects, and prints out the attributes of these objects in a spe ...

Overviewyou are required to use java se 80 and javafx to

Overview You are required to use Java SE 8.0 and JavaFX to develop a Graphical User Interface (GUI) for the FlexiRent rental property management program created in Assignment 1. This assignment is designed to help you: 1 ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As