Describe a simple algorithm which swaps the values in two variables, x and y:

Programming Assignment #1 

1.Swapping *:

 

The following pseudocode describes a simple algorithm which swaps the values in two variables, x and y:

 

1  print “Enter initial value of x: ”

2  input x

3  print “Enter initial value of y: ”

4  input y

5  set temp to x

6  set x to y

7  set y to temp

8  print “x = ” x“, y = ” y

 

  1. a) Trace the above pseudocode for x input of 8 and y input of 3, using the following header:

 

Use a separate row for each line of pseudocode.

 

Briefly summary describing the issue and possible resolutions.

You are to engage with a real organisation and assist them with understanding a Data Resource Management (DRM) Issue.

 

Alternatively you are to deploy a comprehensive case study that discusses a DRM issue in an organisation and use this as your practical reference.

 

(Note: You may use the same DRM Issue as used in the Group Project if desired.)

(Case studies are to be used as a reference point for data and not to be used as normal case analysis and discussion study)

 

 

You are to use the Zachman framework to structure your context.

The deliverables will include:

  • A brief summary describing the issue and possible resolutions (or ways forward);
  • An academic paper containing:
    • Title
    • Abstract
    • Introduction
      • Overview of the business issue
      • Research Approach
    • Literature review
    • Results
    • Discussion
      • Suggestions for further work
    • References
    • Appendix: Complete case study (if applicable)

 

Identify and explain any discrepancies in the numbers.

Student will choose at least 2 athletes from the same sport

2. Student will access their statistics from the past 6 years

3. Student will make a chart of each player, year, and at least 6 different statistics

4. Student will graph the results on the same graph for each stat, using a different color to differentiate between the two players

5. Student will calculate the measures of central tendency

6. Student will calculate the range for each player’s stats for that period of time

7. Student will gather all their information and upload into canvas using Google docs.  Topics should include a) the players they chose and references used, b) the statistics, c) the charts and graphs, d) the calculations of central tendency and range e) a conclusion and prediction about the future statistics of these players f) identify and explain any discrepancies in the numbers

 

Discuss onDensity of ethanol and water mixtures (20°C)

Density of ethanol and water mixtures (20°C)

Ethanol

(%)

Density

(g/cm3)

Ethanol

(%)

Density

(g/cm3)

Ethanol

(%)

Density

(g/cm3)

0 0.998 34 0.947 68 0.872
2 0.995 36 0.943 70 0.868
4 0.991 38 0.939 72 0.863
6 0.988 40 0.935 74 0.858
8 0.985 42 0.931 76 0.853
10 0.982 44 0.927 78 0.848
12 0.979 46 0.923 80 0.843
14 0.977 48 0.918 82 0.839
16 0.974 50 0.913 84 0.834
18 0.971 52 0.909 86 0.828
20 0.969 54 0.905 88 0.823
22 0.966 56 0.900 90 0.818
24 0.964 58 0.896 92 0.813
26 0.960 60 0.891 94 0.807
28 0.957 62 0.887 96 0.801
30 0.954 64 0.882 98 0.795
32 0.950 66 0.877 100 0.789

 

 

PROCESSING THE DATA

  1. After finding the mass of the distillate by subtracting the mass of the graduated cylinder from the mass of the graduated cylinder + distillate, calculate the density of each fraction using the formula: density = mass/volume.
  2. Using the density table above, determine the % ethanol corresponding to the density of each fraction. Record these values.
  3. Using the values of % ethanol obtained in the previous step, determine the % water for each fraction.
  4. What is the primary component of the first fraction you collected? Explain why it is not pure.
  5. Did the density of the fractions increase or decrease as the experiment progressed? Explain.
  6. What happened to the % of ethanol in the collected fractions as the experiment progressed? What happened to the % of water?

 

  1. What could be done to subsequently increase the purity of the ethanol (reduce the water) in the first fraction? Explain.

Discuss on apply the consequential theory analysis.

This assignment will be graded on a 3 point scale and is limited to two double spaced pages.  Points earned on this assignment will be added to points earned on all your other assignments and could potentially raise your final grade form B- to a B; from B to B+; from B+ to an A- etc)

Situation:

Disney ® Resort Parks offer an alternative entrance points, often bypassing the line to almost all of its rides and attractions to individuals with physical, behavioral, and mental disabilities based on the letter drafted by a visitor’s medical doctor.

You are a director of operations for Magical Kingdom® and it has come to your attention that many guests have complained about this perceived “line cutting” especially in cases where the person utilizing a special access points has no apparent impairment.  Many, also have complained that it has become too easy to obtain such a special pass as doctors now write “Disney Letters” as a matter of course for any patient diagnosed with ADHD or any other Autism Spectrum Disorder.

What do you do?

Assignment:

Please analyze this case from an ethical perspective applying Eight Steps to Sound Ethical Decision Making.

  1. Apply the consequential theory analysis
  2. Apply Deontological theory analysis
  3. Apply Virtue Ethics analysis
  4. Conclude by stating the theory you feel will produce the most desirable outcome.

Please substantiate your reasoning with examples and quotations from the text whenever appropriate.

 

Explain the import java.util.Scanner;

import java.util.Scanner;

import javax.swing.JOptionPane;

 

public class TestAverage

{

public static void main(String []args)

{

double score1;

double score2;

double score3;

double score123;

double scoreAvg;

 

//create a scanner object to read input 1

Scanner keyboard1 = new Scanner(System.in);

 

//get test score 1

System.out.println(“First test score:”);

score1 = keyboard1.nextDouble();

 

//create a scanner object to read input 2

Scanner keyboard2 = new Scanner(System.in);

 

//get test score 2

System.out.println(“Second test score:”);

score2 = keyboard2.nextDouble();

 

//create a scanner object to read input 3

Scanner keyboard3 = new Scanner(System.in);

 

//get test score 3

System.out.prinln(“Third test score:”);

score3 = keyboard3.nextDouble();

 

//display the three test scores

System.out.println(“First test score:   ” + score1 + “%”);

System.out.println(“Second test score:  ” + score2 + “%”);

System.out.println(“Third test score:   ” + score3 + “%”);

 

//add three scores together and then divide by 3

score123 = score1 + score2 + score3;

scoreAvg = score123 / 3;

 

//display test score average

System.out.println(“Test score average: ” + scoreAvg + “%”);

}

 

What is the probability that a given individual has more than one hookup.

There are n people signed up for a dating website.  For every pair of people, the website independently flips a coin that comes up head with probability p. If the coin comes up heads, the website creates a match between this pair of people. (Being a scam, the site does not actually use any specific information about the people in deciding who to hook up.) In this setting, it is perfectly possible that the website randomly creates a love triangle:

three people who are all mutually hooked up.

  1. What is the expected number of hookups a given individual has at once?
  2. What is the probability that a given individual has more than one hookup?
  3. What is the expected number of love triangles on the entire site?

Describe in lecture, integrated circuits can be extremely complex systems built up from many basic logic gates.

As described in lecture, integrated circuits can be extremely complex systems built up from many basic logic gates. They are capable of performing a variety of operations, among them being simple mathematics such as addition and subtraction. To gain an appreciation for circuit design you will utilize the logic gates and truth tables discussed in lecture in order to ascertain the function f represented in the circuit below, where two binary sequences A=A0 A1, and B=B0 B1 are inputed into the circuit, which outputs the result of f as a 4-bit sequence C=C0 C1 C2 C3. That is f(A,B) = C.

To further verify your deduced f, provide some example numerical calculations (i.e., let A and B be decimal numbers, that are converted to binary input for the circuit. The output of the circuit is binary, but can be conver

Figure 1: What function f does this circuit compute? A note concerning wire crossings: only wire intersections that are clearly indicated with a • have signal transfer. For example, B1 directly feeds into AND1 and AND3, but even though it crosses a wire from A1 to AND1, the lack of • means there is no interference at the intersection point.

ted to decimal).

Briefly described in lecture, integrated circuits can be extremely complex systems built up from many basic logic gates.

As described in lecture, integrated circuits can be extremely complex systems built up from many basic logic gates. They are capable of performing a variety of operations, among them being simple mathematics such as addition and subtraction. To gain an appreciation for circuit design you will utilize the logic gates and truth tables discussed in lecture in order to ascertain the function f represented in the circuit below, where two binary sequences A=A0 A1, and B=B0 B1 are inputed into the circuit, which outputs the result of f as a 4-bit sequence C=C0 C1 C2 C3. That is f(A,B) = C.

To further verify your deduced f, provide some example numerical calculations (i.e., let A and B be decimal numbers, that are converted to binary input for the circuit. The output of the circuit is binary, but can be conver

Figure 1: What function f does this circuit compute? A note concerning wire crossings: only wire intersections that are clearly indicated with a • have signal transfer. For example, B1 directly feeds into AND1 and AND3, but even though it crosses a wire from A1 to AND1, the lack of • means there is no interference at the intersection point.

ted to decimal).