Wednesday, June 10, 2020

Writing Papers on Ethical Dilemmas

Writing Papers on Ethical DilemmasGood write-ups about ethics in life and in the corporate world are among the most important factor that will help you improve your rating for term papers on ethical dilemmas. The ultimate aim of such paper is to prepare one for a career in legal practice. Having prepared a write-up, one can apply for any job that requires law degrees.A law degree is among the most sought after degrees in the corporate world. This shows that in case of a company, the law is considered as a major priority. One must learn all the ethical codes in order to avoid problems in their lives. This is the basis of the term papers on ethical dilemmas.The first point of these papers will be an explanation of the concept of ethics and the need for one to be prepared to the last point of writing a paper on ethical dilemmas. It is the duty of the corporation to adhere to all the ethical code that has been laid down by the courts. At the same time, an employee is expected to show res ponsibility and ethics as well. Both the employees and the companies must abide by these laws.One can find a number of sources on ethical dilemmas. There are many books and journals published by both government and private sectors. These are widely available for purchase through libraries and bookstores. The book on ethics should always come with some source references that one can consult during the writing process. While looking for such reference material, one must also look out for the opinions of people who have written a good paper on ethical dilemmas.An example of a well-written paper on ethical dilemmas would be the one that has been prepared by a lawyer working in a law firm. This will clearly highlight the need for a good knowledge of ethical codes in the corporate sector. Another thing that will help students prepare such papers is to get access to legal reference materials from the National Law Journal. A thorough study of the articles from this source will enable one to understand what legal code is applicable in a particular situation.Another source of writing papers on ethical dilemmas is by keeping the points of view of other experts in the same field. There are many sources available on ethical codes available online that can help one in preparing a useful paper on ethical dilemmas. One can have the option of getting a book from the library or a form from the library where such reference material will be available for one to use.At the same time, a good ethical code will not only provide the necessary knowledge to its readers but also give them a clear idea of what is going on in a particular situation. Some papers on ethical dilemmas will also outline the specific circumstances under which the code has been put into practice.The student must be ready to elaborate their thoughts on issues which concern specific groups of legal professionals and even specific sections of the general public. In doing so, one can improve their writing skills and make the paper a very well-written one.

Monday, June 1, 2020

Introduction to java programming Coursework - 550 Words

Introduction to java programming (Coursework Sample) Content: Introduction to java programmingData validation requirement First we define the code for entering data which is as displayed as below. package newmethods;import java.beans.*;// good for doing the data validationsimport java.io.* //reading data streamspublic class BusinesObject { public static void main(String[] args) { // TODO Auto-generated method stub class BusinessObject { private int numericValue; public void setNumericValue(int newNumericValue) { numericValue = newNumericValue; } public int getNumericValue() { return numericValue; } } }}Code for data validation We will use the constraint object code which is used to delegate an object data entry. It will also assign the validation responsibilities to a component called the link validator. The code is as displayed below:package newmethods;public class ConstraintObject { public static void main(String[] args) { // TODO Auto-generated method stub public class ConstrainedObject { private VetoableChangeSupport vetoab leSupport = new VetoableChangeSupport(this); /** * this will create a new object with generic property validator */ public ConstrainedObject() { vetoableSupport.addVetoableChangeListener(new Validator()); } protected void validate(String propertyName, int oldValue, int newValue) throws PropertyVetoException { vetoableSupport.fireVetoableChange(propertyName, new Integer(oldValue), new Integer(newValue)); } } }}We will then be required to integrate the two classes of code. To intergrate the two modules of the application. The following code will be used. This will then validate the data and give a go ahead for data entry and storage in the database. public class BusinessObject extends ConstrainedObject { private int numericValue; public void setNumericValue(int newNumericValue) throws PropertyVetoException { // validate proposed value validate("numericValue", numericValue, newNumericValue); // the new value is approved, since no exceptions were thrown numericValue = newNumericValue; } public int getNumericValue() { return numericValue; } public class Validator implements VetoableChangeListener { public void vetoableChange(PropertyChangeEvent evt) throws PropertyVetoException { // you will do the validation here } }We are then required to create a code that reads the data in the database and give calculations of average sales and the shipping sales.The code for calculating average sales in as written below. package newmethods;public class culculate { public static void main(String[] args) { // TODO Auto-generated method stub package org.myorg; import java.io.IOException; import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.BufferedWriter; import java.io.OutputStreamWriter; import java.util.*; import org.apache.hadoop.fs.*; import org.apache.hadoop.conf.*; import org.apache.hadoop.io.*; import org.apache.hadoop.mapred.*; import org.apache.hadoop.util.*; public class calcAll { public static class Map extends MapReduceBase implements Mappe r { public void map(LongWritable key, Text value, OutputCollector output, Reporter reporter) throws IOException { // this will work even if we receive more than 1 line Scanner scanner = new Scanner(value.toString()); String line; String[] tokens; double observation; while (scanner.hasNext()) { line = scanner.nextLine(); tokens = line.split("\\s+"); observation = Double.parseDouble(tokens[1]); output.collect(new Text("values"), new DoubleWritable(observation)); } } } public static class Combine extends MapReduceBase implements Reducer { public void reduce(Text key, Iterator values, OutputCollector output, Reporter reporter) throws IOException { double count = 0d; // should be an int, but anyway... double sum = 0d; double value; while (values.hasNext()) { ++count; value = values.next().get(); sum += value; } // keep in alphabetical order or KABOOM! ...