Generally, what communication skills does it appear you would need to develop to get better at...

Generally, what communication skills does it appear you would need to develop to get better at a) participating in and b) facilitating a mediation?

In: Economics

In a Sodium Borohydride reduction of 9-fluorenone to 9-fluorenol, methanol is used as the solvent because...

In a Sodium Borohydride reduction of 9-fluorenone to 9-fluorenol, methanol is used as the solvent because it will not react with the products and reactants and because the products and reactants are very sluble in methanol. Would 2-propanone also be a suitable solvent for this reaction? Why/Why not?

In: Chemistry

What is known about the mechanism of infection by SARs–CoV-2, in particular, what do we know...

What is known about the mechanism of infection by SARs–CoV-2, in particular, what do we know about the cellular proteins involved? Focus on protein biochemistry. Need a good answer

In: Biology

Greedy algorithm for the minimum coin change problem (the number of required coins is given) function...

Greedy algorithm for the minimum coin change problem (the number of required coins is given)

function parameters :

- int amount = 20

- int Coins[] = [1, 5, 11, 25]

- int requiredCoins = 4

Expected result = 5,5,5,5,

****algorithm should be greedy, and find optimal solution***

You can provide the program or the algorithm

In: Computer Science

PYTHON COADING In this homework, we are mostly going to work with and manipulate pre-written code....

PYTHON COADING In this homework, we are mostly going to work with and manipulate pre-written code. But first, let’s practice writing a few lines of code ourselves.

(a) Create a function that raises any number to the power of 3 and fully annotate in the code itself what each line is doing. Check that your function is operating correctly (this may seem trivial now, but is good practice going forward as your programs become more complicated).

(b) Create three objects, which represent one of each of the following: a list, an array, and a tuple, each with three items.

(c) Multiply each of these three objects by three. What are the results, and why?
(d) Replace the third item in the array with the number 23. Do the same for the tuple. Show what happens. Why do you get this result?

(e) Create a range from 0 to 42 that includes every third number.

(f) Create a table with three rows and three columns, containing any kind of data (made up or real) that you like using pandas and a dictionary. Show the table, and describe the contents of the rows and columns.

In: Computer Science

How many asterisks does the following code fragment print? a = 0 while a < 100:...

  1. How many asterisks does the following code fragment print?

a = 0

while a < 100:

b = 0

while b<55:

   print('*', end='')

   b += 1

  print()

a += 1

In: Computer Science

what would you expect the vapor temperature to be after collecting 5ml of distillate in a...

what would you expect the vapor temperature to be after collecting 5ml of distillate in a mixture containing 10ml of acetone (bp 56C) and 10ml of water (bp 100C) for a fractional distillation? What would the vapor temperature be in a simple distillation?

In: Chemistry

Imagine that you have just purchased a coffee in a cup, with a lid. You place...

Imagine that you have just purchased a coffee in a cup, with a lid. You place your coffee cup on a table and it starts to cool down. We are going to model this cooling process. Choose whatever type of coffee cup you are most familiar with.

2. Do a Ninja Physics estimate of how long it will take for the sides of the cup to warm up.

The specific heat capacity of water (and coffee) is around 4200 J Kg-1 K-1. Cardboard has a thermal conductivity of around k ~ 0.025 W m-2 K-1 , a density of around 700 kg m-3 and a specific heat capacity of around 1400 J kg-1 K-1. Glass has a thermal conductivity of around k ~ 1 W m-2 K-1, a density of around 2500 kg m-3 and a specific heat capacity of around 700 J kg-1 K-1. Styrofoam (foamed plastic) has a thermal conductivity similar to air and a density of around 50 kg m-3, while hard plastics have thermal conductivities of k ~ 0.025 W m-2 K-1 and densities similar to water: both have specific heat capacities of around 1500 J Kg-1 K-1.

In: Physics

Main Program's grading: Student's main program will be used to generate output files. These output files...

Main Program's grading:

Student's main program will be used to generate output files. These output files will be compared to the solution output files and also to output files generated through instructor code, i.e., C++ code that will call the appropriate members of the Board class with the appropriate command line arguments. Students are free to impliment their main program however they like but the output must be correct (according to the solution) and must match the output using student's Board class. Pseudocode for generating the output files from the instructor's end is shown below

#include "Cell.hpp"
#include "Board.hpp"
#include "Gary.hpp"

int main(int argc, char** argv){
        unsigned int boardSize = (from command line arguments)
        unsigned int numberSteps = (from command line arguments)
        std::string outputFilename = (from optional command line argument)
        
        Board B(boardSize);
        if (an output filename is given){
                B.setOutputFilename(outputFilename);
        }
        
        B.move_gary(numberSteps);

        return 0;
}

and student code must be capable of generating the correct output in the correct location when calling these member functions of the Board class. Please note that the only "pseudo" above is the parsing of command line arguments and the if statement - the member functions and construction of variable B of type Board is valid C++ syntax that is used during testing.

Board Class:

Note that there are no structural requirements for the Board class beyond the member functions called via the above psuedo-main program. These include:

(1) The Board class shall be constructed given an unsigned integer parameter that defines the number of rows and columns, i.e., 'N' in the N by N board. Note that N must be odd. If N is given as even, students shall display a message stating "Board dimension must be an odd number!! Got {N} and adding 1 to equal {N+1}" (note that parameters within { } must be printed as their values) and shall add 1 to N to satisfy the requirement that N must be odd. Note that this message must be printed only to the console, i.e., should not be printed to the output file. (2) Gary shall move around the board when the move_gary(steps) function is called. Each step shall be one step of Langton's ant as defined above, i.e., change Gary's orientation based on the Cell input, change the cell color, and move Gary forward one unit. The board class shall print the state of the board at every step. See the below example with a boardSize input of 5 for 10 steps:

[Gary Location] {2, 2} [Gary Orientation] up [Row 0] 0 0 0 0 0 [Row 1] 0 0 0 0 0 [Row 2] 0 0 0 0 0 [Row 3] 0 0 0 0 0 [Row 4] 0 0 0 0 0
[Gary Location] {2, 3} [Gary Orientation] right [Row 0] 0 0 0 0 0 [Row 1] 0 0 0 0 0 [Row 2] 0 0 1 0 0 [Row 3] 0 0 0 0 0 [Row 4] 0 0 0 0 0
[Gary Location] {3, 3} [Gary Orientation] down [Row 0] 0 0 0 0 0 [Row 1] 0 0 0 0 0 [Row 2] 0 0 1 1 0 [Row 3] 0 0 0 0 0 [Row 4] 0 0 0 0 0
[Gary Location] {3, 2} [Gary Orientation] left [Row 0] 0 0 0 0 0 [Row 1] 0 0 0 0 0 [Row 2] 0 0 1 1 0 [Row 3] 0 0 0 1 0 [Row 4] 0 0 0 0 0
[Gary Location] {2, 2} [Gary Orientation] up [Row 0] 0 0 0 0 0 [Row 1] 0 0 0 0 0 [Row 2] 0 0 1 1 0 [Row 3] 0 0 1 1 0 [Row 4] 0 0 0 0 0
[Gary Location] {2, 1} [Gary Orientation] left [Row 0] 0 0 0 0 0 [Row 1] 0 0 0 0 0 [Row 2] 0 0 0 1 0 [Row 3] 0 0 1 1 0 [Row 4] 0 0 0 0 0
[Gary Location] {1, 1} [Gary Orientation] up [Row 0] 0 0 0 0 0 [Row 1] 0 0 0 0 0 [Row 2] 0 1 0 1 0 [Row 3] 0 0 1 1 0 [Row 4] 0 0 0 0 0
[Gary Location] {1, 2} [Gary Orientation] right [Row 0] 0 0 0 0 0 [Row 1] 0 1 0 0 0 [Row 2] 0 1 0 1 0 [Row 3] 0 0 1 1 0 [Row 4] 0 0 0 0 0
[Gary Location] {2, 2} [Gary Orientation] down [Row 0] 0 0 0 0 0 [Row 1] 0 1 1 0 0 [Row 2] 0 1 0 1 0 [Row 3] 0 0 1 1 0 [Row 4] 0 0 0 0 0
[Gary Location] {2, 1} [Gary Orientation] left [Row 0] 0 0 0 0 0 [Row 1] 0 1 1 0 0 [Row 2] 0 1 1 1 0 [Row 3] 0 0 1 1 0 [Row 4] 0 0 0 0 0
[Gary Location] {3, 1} [Gary Orientation] down [Row 0] 0 0 0 0 0 [Row 1] 0 1 1 0 0 [Row 2] 0 0 1 1 0 [Row 3] 0 0 1 1 0 [Row 4] 0 0 0 0 0

the format is given by [Gary Location] {(row), (col)} (orientation) [Row 0] (col 0 color) (col 1 color) ... (col N-1 color) [Row 1] ... [Row (N-1)] ... (col N-1 color) where values within ( ) are to be filled in with program values. (col i color) shall be either "0" for "white" or "1" for "black". Note that students may want to call Cell::get_color_string( ) to print this value (or just Cell::get_color() as pointed out by a student in office hours!). This output will either be to standard output, i.e., std::cout, if a filename command line argument is not provided or will be printed to the filename given in the argument (students should use the ofstream object for file output. Note that C's fprintf will also be okay). The filename shall be set with the setOutputFilename member function.

Students are free to impliment the remaining functionality of the Board class as desired. The class should store a representation of the actual grid of cells which define the environment for Langon's ant, i.e., the Cell class created in Part A (Hint: I utilized a vector of vectors where each element of the outer vector stores a "row" or the grid represented by a vector of class Cell). The board class must also store a variable of type Gary that "walks" about the board. (More information on Gary is given below) At each step in the Gary::move_gary(Cell*) function the Board must pass a pointer to the Cell that Gary currently occupies so that Gary can alter his orientaiton, flip the color of that cell, i.e., call the change_color member function, and change his position, i.e., "walk" (find a tutorial for pointers to objects here).

The Gary class is subject to C++ unit testing and therefore has stricter requirements for composition. Each required member function will be denoted. (

1) Gary shall be constructed with a parameterized constructor accepting an unsigned integer input parameter representing the size of the board (denote here as BoardSize). Assume that BoardSize is odd! Gary shall initialize his position to be the middle cell of the board, e.g., if the BoardSize is given as 5 Gary would be initialized at index (2,2).

(2) Gary shall contain public member functions which return an unsigned integer type and accept no input named Gary::get_row() and Gary::get_col() which return Gary's row and column position on the board respectively.

(3) Gary shall contain a public member function which returns type void and accepts a Cell pointer called Gary::move(Cell*) which shall (a) alter Gary's orientation based on the Cell's color (b) change the Cell's color (c) move Gary one unit forward in the new orientation

(4) Gary shall contain a public member function which returns type orientation (defined as an enumeration enum orientation {up, right, down, left};) and accepts no input parameters called Gary::get_orientation()

In: Computer Science

Discuss and explain how important you think public relations are for each of the market segments....

Discuss and explain how important you think public relations are for each of the market segments. Provide specific examples.

Discuss and explain how important you think personal sales is for each of the market segments. Provide specific examples.

In: Operations Management

Evan Corporation’ charter authorized the following capital stock: Preferred stock: 8 percent, par $11, authorized 10,000...

Evan Corporation’ charter authorized the following capital stock: Preferred stock: 8 percent, par $11, authorized 10,000 shares. Common stock: par $2.3, authorized 50,000 shares. Since inception, Skyhawk sold 6,058 shares of the common stock at $3.4per share and 1,845 shares of the preferred stock at $15. The ending retained earnings was $81,790 On the statement of stockholders' equity, the total stockholders' equity would be reported as $_____

In: Accounting

Dinitrogen pentoxide (N2O5) decomposes in chloroform as a solvent to yield NO2 and O2. The decomposition...

Dinitrogen pentoxide (N2O5) decomposes in chloroform as a solvent to yield NO2 and O2. The decomposition is first order with a rate constant at 45 ∘C of 1.0×10−5s−1.

Calculate the partial pressure, in atm, of O2 produced from 1.15 L of 0.592 M N2O5 solution at 45 ∘C over a period of 24.3 h if the gas is collected in a 12.1-L container. (Assume that the products do not dissolve in chloroform.)

In: Chemistry

If someone with a gun holds it up to your head and says “Your money or...

If someone with a gun holds it up to your head and says “Your money or your life” then did you exercise free will when you gave her your money? What about if someone uses the threat of force against you? What if someone threatens to kill your family if you don’t cover for their crime? Are you responsible for covering for their crimes? Did you have the free will to do otherwise? What if they threatened to blackmail you at work if you didn’t cover up their stealing? Are you still responsible for your actions? Why or why not?

In: Psychology

2. In lieu of a risk assessment, what should a small company do to assess its...

2. In lieu of a risk assessment, what should a small company do to assess its security posture if a risk assessment is not financially practical?

In: Computer Science

A 420-N uniform rectangular sign 4.00 m wide and 3.00 m high is suspended from a...

A 420-N uniform rectangular sign 4.00 m wide and 3.00 m high is suspended from a horizontal, 6.00-m-long, uniform, 130-N rod as indicated in the figure below. The left end of the rod is supported by a hinge and the right end is supported by a thin cable making a 30.0

In: Physics