Design debug and test a java program that estimates safety

Assignment Help JAVA Programming
Reference no: EM131427650

Assignment -

The purpose of this assignment is: 

  • Data types, variables, constants
  • Expressions, Math methods, Executable statements
  • Input/Output
  • Comments

OBJECTIVE - Design, debug and test a Java program that estimates safety of industrial blasts and displays reports.

BACKGROUND - Industrial blasting is widely used in the recovery of mineral resources, both in surface mining and quarrying for rock fragmentation and displacement of the broken rock. However, if the blasting process is not organized properly, the rock fragments may be thrown beyond the clearance zone which may result in accidents. Due to the vital importance of industrial blast safety, the major blast parameters and factors affecting maximum projection range have to be estimated to establish a blast safety zone.

A commonly used equation to calculate the safe distance from a blast is:

Safe Distance = FOS × 11 × sdob-2.167 × d0.667

where

FOS is a factor of safety that is currently equal to 1.5 (may be changed due to government regulations)

d is a borehole diameter (millimeters)

sdob is the depth of burial (m/kg1/3)

The sdob is calculated as

sdob = (sl + 0.0005 × cclf × d )/( 0.00923 × (cclf × d3 × ED)0.333)

where 

sl is a stemming length (meters)

d is a borehole diameter (millimeters)

ED is explosive density (grams/centimeter3)

cclf is contributing charge length factor

The cclf is calculated as

cclf = 1000 × cl / d

where 

cl is a charge length (meters)

d is a borehole diameter (millimeters)

When cclf is greater than 10, it is limited to 10.

282_Figure.png

The company always uses the same type of industrial explosive with density ED = 1.4 grams/centimeter3 and currently is not planning to use other explosives. However, it may be changed in future if they change the supplier.

CODING REQUIREMENTS 

Your program shall be implemented using material covered in lectures 1-4. 

Your program shall be compliable by JDK SE 7

Your program shall have only one class that contains only one method main(). 

Your program shall define symbolic constants for all values which have a physical

meaning, are currently fixed, but there is a chance that they may be changed in future.

However, there is no need to define symbolic constants for those values which are permanently built into formulas and will never be changed.

In this assignment you can presume that the user input always correct (input verification is not required). Your program shall input blast parameters in the following order:

-  charge length (cl)

-  stemming length (sl)

-  borehole diameter (d)

The program shall perform all calculations with double precision. The safe distance shall be displayed as an integer value.

An example with two test cases is shown below. Your program must take the input parameters in exactly the same order and produce output in exactly the same format.

Assignment Files -

https://www.dropbox.com/s/45lqn2qptffckil/Java%20Programming%20Assignment.zip?dl=0

Reference no: EM131427650

Questions Cloud

Discuss about the labor market and organizations : The United States has a very free labor market, and organizations both small and large have the freedom to produce, buy, and sell products as long as it is in compliance with the law. Every organization has their rules and policies that all employ..
Important step in detecting and preventing such practice : Analyzing why and how insider fraud occurs is an important step in detecting and preventing such practice. Describe fraud risk management.
Identify three new principles or theories of management : MNGT 5000: Early in the course we discussed bureaucracy. We said this form of organization was the starting point for understanding all modern organizations. Based on the text and other class readings develop an essay that begins with a brief def..
Workplace with a diverse workforce : 1. In a workplace with a diverse workforce, how could an English-only rule create lower morale, poorer communication, and lower productivity. Explain and provide example(s).
Design debug and test a java program that estimates safety : CSIT811 Assignment. OBJECTIVE - Design, debug and test a Java program that estimates safety of industrial blasts and displays reports
Compute the probability of the top event : a. What equation should you use to compute the probability of the top event? b. Using the equation, what numerical value do you get for the top event probability?
Appropriate appraisal of the ethical nature of the situation : Pretend Payless shoesourse is considering selling customer data gained through their Facebook page to a 3rd party as a way to increase revenue. What other information or reference points would help you to make an appropriate appraisal of the ethical ..
What issues need to be considered when implementing : You are tasked with developing an ethics policy for a jewelry company. After meeting with the CEO, you both agree the policy must cover the following: gifts from vendors, use of confidential information, and conflicts of interest. You take your ch..
Measure the readiness of the healthcare system : One of the major feature of evaluation is to measure the readiness of the healthcare system and ensure that it will not incorporate any risk to patients or organization. Discuss the risk assessment and provide example of health or public informati..

Reviews

len1427650

3/15/2017 12:51:50 AM

Submit your assignment before the due date. You can resubmit later if necessary. Only the latest submission will be tested and marked providing that you have submitted at least one meaningful solution before the due date. Otherwise, resubmitted assignments will not be assessed. Submission via email is not acceptable. Assignments without properly filled assignment headers will not be marked. Enquiries about the marks can only be made within a maximum of 1 week after the assignment results are published. After 1 week the marks cannot be changed.

len1427650

3/15/2017 12:50:46 AM

Read the assignment specification carefully, and make sure that you follow whatever directed in this assignment. In every assignment that you will submit in this subject, you must put the following information in the header of your assignment.

len1427650

3/15/2017 12:50:38 AM

Australian student, this is java assignment, please read all the instructions carefully and please check the lecture pdf attachments also. Lecture attachments are for your help. I hope I will get best. Try to prepare it in notepad++. Please make sure no errors...must be compiling because I have to submit it online in the tutorial lab. For more information’s please ask me at any time by email.

Write a Review

JAVA Programming Questions & Answers

  Part-1prepare a program that teaches arithmetic to a young

part-1prepare a program that teaches arithmetic to a young child. the program tests subtraction and addition. in level

  Graphics program that draws 12 strings

Write a graphics program that draws 12 strings, one each for the 12 standard colors, besides Color.WHITE, each in its own color. Provide a class ColorNameViewer and a class ColorNameComponent.

  Create a java gui app implement inside a main method

Create a Java GUI app, implement the following criteria inside a main method 1) set up a visible frame with width 500, height 300; 2) frame title is "CSE205 Frame app"; and 3) setDefaultCloseOperation to EXIT_ON_CLOSE.

  Once getting into student information menu

Once getting into student information menu, you should be able to see a full list of students' information (first name, last name, SSN, DOB, year and major).

  Create a graphical application stackdemogui

Create a graphical application StackDemoGUI that provides a button for push and pop from a stack, a text field to accept a string as input for push, and a text area to show the contents of the stack after each operation.

  Develop a similar class hierarchy for animals

Develop a similar class hierarchy for Animals. You can have whatever subclasses you think would be useful. Your hierarchy should have at least three levels (the top class, Animals, counts as the first level).

  Test plan for both unit testing and integration testing

Do a test plan for both unit testing and integration testing, justification why you need this test creating the test case for each individual test must use java language in netbeans IDE to perform each test, screen capture one example to run the ..

  Briefly explain the code in sort inventory

Draw a UML diagram of the Shoe class using the code that has been provided - Briefly explain the code in sort Inventory. What is the inventory being sorted by? What is the sort algorithm that is being used. Explain in words how it works. Why do you..

  Display the total annual compensation

The application should ask the user to enter annual sales, and it should display the total annual compensation

  Run on ethanol and gas

Suppose a car can run on ethanol and gas and you have a 15 gallons tank to fill. You can buy fuel that is either 30 percent ethanol or 80 percent ethanol. How much of each type of fuel should you mix so that the mixture is 40 percent ethanol?

  Create menu-based programs using guis

You will learn how to create menu-based programs using GUIs. Please respond to all of the following prompts with 1-2 paragraphs of original content: Discuss GUI components, explain how to handle key and mouse events, and state how they relate to GU..

  Pass in the number of gallons on board

public float usefulLoad() // this is the grossWeight - emptyWeight public float usefulLoadWithFuel( in gallons ) // this is the useful load - gallons x 6. The programmer user will pass in the number of gallons on board.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd