Questions
Write a short reflection paper (1-2 paragraphs) explaining why having (and enforcing) a code of conduct...

Write a short reflection paper (1-2 paragraphs) explaining why having (and enforcing) a code of conduct is important in the accounting career field. Make this a scholarly paper, properly formatted, spell checked, etc. This must be more than a "in my opinion" type of analysis.  

In: Accounting

Please write queries based on the following requirements using DML In-Class Data Set. For each question,...

Please write queries based on the following requirements using DML In-Class Data Set. For each question, you are required to submit 1) SQL query code; 2) a screen shot of your query result.You should copy and paste your SQL query code to the word document instead of taking a screenshot of your code. Missing either part for each question will result in 0 for this question.

8.List the warehouse number and the average unit price for warehouses other than number 2.

9.List the stored part information for SG parts stored in warehouse 2 or 3.

10.List the part number and part description for each part with letter D(or d) in the part_description. Rank your results in ascending order on itemclass and then descending order on units_on_hand.

11.List the average unit price among all the parts. Rename the column as AVG_UNIT_PRICE

12.List the part number and part description for each part with nine characters or ten characters in the part_description. Rank your results in ascending order on part number.

13.Find the itemclasses and the number of parts under each class. Only show those classes with at least3 types of parts.

14.List the stored part information for SG parts or parts with more than 60 units stored in warehouse 3.

15.List the number of different part stored in each warehouse, only include those warehouse with at most3parts.

In: Computer Science

Part 2. Monty Hall problem: Given below is the description of the problem. Suppose you're on...

Part 2. Monty Hall problem:

Given below is the description of the problem.

Suppose you're on a game show and you're given the choice of three doors.

Behind one door is a car; behind the others, goats. The car and the goats were placed randomly behind the doors before the show.

The rules are:

After you have chosen a door, the door remains closed for the time being. The game show host, Monty Hall, who knows what is behind the doors, now has to open one of the two remaining doors, and the door he opens must have a goat behind it. If both remaining doors have goats behind them, he chooses one randomly.

After Monty opens a door with a goat, he will ask you to decide whether you want to stay with your first choice or to switch to the last remaining door. Imagine that you chose Door 1 and the host opens Door 3, which has a goat. He then asks you "Do you want to switch to Door Number 2?" Is it to your advantage to change your choice?

NOTES:

  1. The player may initially choose any of the three doors (not just Door 1).
  2. The host opens a different door revealing a goat (not necessarily Door 3).
  3. The host gives the player a second choice between the two remaining unopened doors.
  • Write Python code to solve the Monty Hall problem. Simulate at least a thousand games using three doors for each strategy and show the results in such a way as to make it easy to compare the effects of each strategy.

In: Computer Science

10.13 LAB*: Warm up: Online shopping cart (Part 1) (1) Create three files to submit: ItemToPurchase.h...

10.13 LAB*: Warm up: Online shopping cart (Part 1)

(1) Create three files to submit:

  • ItemToPurchase.h - Class declaration
  • ItemToPurchase.cpp - Class definition
  • main.cpp - main() function

Build the ItemToPurchase class with the following specifications:

  • Default constructor
  • Public class functions (mutators & accessors)
  • SetName() & GetName() (2 pts)
  • SetPrice() & GetPrice() (2 pts)
  • SetQuantity() & GetQuantity() (2 pts)
  • Private data members
  • string itemName - Initialized in default constructor to "none"
  • int itemPrice - Initialized in default constructor to 0
  • int itemQuantity - Initialized in default constructor to 0

(2) In main(), prompt the user for two items and create two objects of the ItemToPurchase class. Before prompting for the second item, call cin.ignore() to allow the user to input a new string. (2 pts)

Ex:

Item 1
Enter the item name:
Chocolate Chips
Enter the item price:
3
Enter the item quantity:
1

Item 2
Enter the item name:
Bottled Water
Enter the item price:
1
Enter the item quantity:
10


(3) Add the costs of the two items together and output the total cost. (2 pts)

Ex:

TOTAL COST
Chocolate Chips 1 @ $3 = $3
Bottled Water 10 @ $1 = $10

Total: $13

code ---------------------------------------------------------

#include <iostream>
using namespace std;

#include "ItemToPurchase.h"

int main() {

/* Type your code here */

return 0;
}

In: Computer Science

A piston-cylinder device contains 0.5 m3 air at 100 kPa and 1000 K. Because the outside...

A piston-cylinder device contains 0.5 m3 air at 100 kPa and 1000 K. Because the outside is cooler (at 300 K), the hot air starts losing heat to the surroundings and the volume of air starts decreasing. Over a certain period of time the volume is observed to shrink by 50%.

The final temperature is lower or higher?

Determine the boundary work transfer (absolute value). in KJ

Mark the correct statement that takes into account the sign of heat and work transfer.
W pos Q neg only W neg only Q pos W neg Q pos one negative both negative only W pos both positive

In: Physics

Two capacitors C1 = 4.6 ?F, C2 = 18.6 ?F are charged individually to V1 =...

Two capacitors C1 = 4.6 ?F, C2 = 18.6 ?F are charged individually to V1 = 15.3 V, V2 = 4.4 V. The two capacitors are then connected together in parallel with the positive plates together and the negative plates together.
Calculate the final potential difference across the plates of the capacitors once they are connected.


Calculate the amount of charge (absolute value) that flows from one capacitor to the other when the capacitors are connected together.


By how much (absolute value) is the total stored energy reduced when the two capacitors are connected?

In: Physics

Q1 In a flowering plant, the eggs are produced by meiosis in the _____ and the...

Q1

In a flowering plant, the eggs are produced by meiosis in the _____ and the male gametophyte is produced by the _____.

A stamen ... stigma

B ovule ... carpel

C ovule ... anther

D stigma ... sepal

Q2

The only difference between monocots and dicots is the number of cotyledons they produce.

True

False

Q3

How is the development of a female gametophyte similar to the development of the egg in a human female.

A they both begin with four cells but end with only one

B they are both necessary for pregnancy and birth

C they both require nine months to develop

D none of the responses are correct

Q4

Plants resemble humans in that they require some essential elements to maintain good health.

True / false

Cabbages are biennial plants that produce a head the first year and a flowering stalk the second. The growth of the stalk called "bolting" involves rapid elongation of an already formed stem. Which of the following substances is likely to be immediately responsible for inducing bolting?

A cytokinin

B gibberellin

C Abscisic acid

D phytochrome

In: Biology

V

V

In: Physics

Explain the OSI model with examples of each layer.

Explain the OSI model with examples of each layer.

In: Computer Science

Write a C++ program to test if a given array satisfies the constraints of min heap...

Write a C++ program to test if a given array satisfies the constraints of min heap and max heap.

      bool isMinHeap(int arr[],int size);

      bool isMaxHeap(int arr[],int size);


Also write code for this function:-

      int heapPlay(int arr[],int size);

The function returns an integer as follows:-

    1. If the array is a min heap return the minimum element

    2. If the array is a max heap return maximum element

    3. Return 0, if the array is a min heap and a max heap

    4. Return -1, if the array is neither a min heap nor a max heap

Ex.

Input - Contains size on line 1, an array on line 2.

Output - We will test your three methods

Input -

    3

1 2 3

Output -

isMinHeap ->   true

isMaxHeap ->   false

heapPlay ->    1

Sample Input 1:

1
5

Sample Output 1:

1 1 0

Sample Input 2:

3
9 8 7

Sample Output 2:

0 1 9

template:

bool isMinHeap(int arr[],int size)
{
//code here
}

bool isMaxHeap(int arr[],int size)
{
//code here
}

int heapPlay(int arr[],int size)
{
//code here
}

In: Computer Science

Scenario 4 A warehouse has a new leadership team and they wanted to prove their performance...

Scenario 4

A warehouse has a new leadership team and they wanted to prove their performance was as good or better than the previous leadership team. They measured on-time shipping and accurate order fulfillment. Their data showed a correlation value of 0.70 and a regression value of 0.49 between on-time shipping and accurate order fulfillment. The previous leadership teams’ corresponding numbers for on-time shipping and accurate order fulfillment were a correlation value of 0.80 and a regression value of 0.64.

1. What conclusions can you summarize from these numbers in plain English?

2. Based on this data what future course of action do you recommend for your client?

Scenario 5

The same warehouse leadership team in Scenario 4 measured damaged products and warehouse capacity. Their data showed a correlation value of -0.50 and a regression value of 0.25 between damaged products and warehouse capacity.

1. What conclusions can you summarize from these numbers in plain English?

2. Based on this data what future course of action do you recommend for your client?

In: Math

Write a C++ program, tictac.cpp, that repeatedly reads in tic-tac-toe boards and for each one indicates...

Write a C++ program, tictac.cpp, that repeatedly reads in tic-tac-toe boards and for each one indicates if there is a winner and who won.

The board will be read in as 3x3 array of characters (x, o or . for a blank spot).

You are required to write the following functions to help solve the problem:

// input prompts the user for a board and inputs it

// into the given array

void input (char board [3][3]);

// print prints the board in nice format

void print (char board [3][3]);

How it should look:

Enter your board as characters (x, o or .):

o.x

..o

.x.

The board is:

o |   | x

-----------

   |   | o

-----------

   | x |

No winner!

Would you like to do another (y or n)? y

Enter your board as characters (x, o or .):

oxo

ox.

.xo

The board is:

o | x | o

-----------

o | x |

-----------

   | x | o

X wins!

Would you like to do another (y or n)? y

Enter your board as characters (x, o or .):

xoo

xox

ox.

The board is:

x | o | o

-----------

x | o | x

-----------

o | x |

O wins!

Would you like to do another (y or n)? n

Thanks for playing!

// win returns true if the given player has won on the

// given board, else it returns false

bool win (char board [3][3], char player);

You are required to use nested loops to write the functions input and print.

The back of this page shows a sample run of the program (input in bold). Your output should look at least as nice as that shown. You may assume that the board will be legal and there will be at most one winner.

In: Computer Science

Please type! What is the most important think you learned about Green Buildings, Sprawl, and Sustainability...

Please type!

What is the most important think you learned about Green Buildings, Sprawl, and Sustainability Initiatives from the textbook? like a summary of it.

In: Other

I am wondering whether the five1 units of the natural unit system really is dictated by...

I am wondering whether the five1 units of the natural unit system really is dictated by nature, or invented to satisfy the limited mind of man? Is the number of linearly independent units a property of the nature, or can we use any number we like? If it truly is a property of nature, what is the number? -five? can we prove that there not is more?

In the answers please do not consider cgs units, as extensions really is needed to cover all phenomenon. - or atomic units where units only disappear out of convenience. - or SI units where e.g. the mole for substance amount is just as crazy as say some invented unit to measure amount of money.

In: Physics

Sound source A is located at x = 0, y = 0, and sound source B...

Sound source A is located at x = 0, y = 0, and sound source B is located at x = 0, y = 2.0 m. The two sources radiate coherently and in phase. An observer at x = 15.8 m, y = 0 notes that as he takes a few steps from y = 0 in either the +yor −y-direction, the sound intensity diminishes. What is the lowest frequency, and the next to the lowest frequency of the sources that can account for that observation? (Enter your answers from smallest to largest.)

kHz

kHz

In: Physics