Questions
Determine the mg of aspirin in a commercial aspirin tablet labeled to contain 5 grains using...

Determine the mg of aspirin in a commercial aspirin tablet labeled to contain 5 grains using the following data: 800.0 mg of pure aspirin was treated as the experiment called for and diluted to exactly 1000.0 mL. A reagent blank was prepared and set to read 0.00 absorbance. Exactly 10.00 and 5.00 mL of the standard aspirin solution were each treated with 10 mL of Fe 3+ solution, diluted to exactly 100.0 mL and found to have absorbances of 0.837 and 0.410 respectively. A 374.5 mg commercial aspirin tablet was treated as the experiment called for and diluted to exactly 500.0 mL. Exactly 10.00 and 5.00 mL of the sample solution were each treated with 10 mL of Fe 3+ solution, diluted to exactly 100.0 mL and found to have absorbances of 0.694 and 0.336 respectively. Comment

In: Chemistry

Steam distillation. ANSWER IN DETAIL AND I WILL REWARD FIVE STARS TO FIRST PERSON TO ANSWER!!!!!!...

Steam distillation. ANSWER IN DETAIL AND I WILL REWARD FIVE STARS TO FIRST PERSON TO ANSWER!!!!!!

A student steam distilled a mixtrue of toluene (bp 110.8 degrees Celsius) and water and noticed that distillate contained a larger volume of touleune than water. The student said to the professor, "I know there is something wrong with my experiment. I should have more water than toleune because water has a lowerboiling point. Should I redo the experiment?" The professor replied "do whatever you need to do" A classmate then said, "No, you dont need to redo it you DO have more water."

Explain in detail why the classmate is correct. Use calculations to support your explanation. Label all quantities used. Include all units.

In: Chemistry

Suppose an experiment is conducted where 100 students at BU are measured and their average height...

Suppose an experiment is conducted where 100 students at BU are measured and their average height is found to be 67.45 inches, and the (sample) standard deviation to be 2.93 inches. Since 100 is a large sample, we use the sample standard deviation as an estimate of the population standard deviation. We may assume that heights are normally distributed.

(a) Suppose that you want to report the 95.45...% confidence interval (i.e., exactly 2 standard deviations). Give the results of this experiment.

(b) Repeat (a) but for the 99.73... % (exactly 3 standard deviations) confidence interval.

(c) Now suppose you want to report the precisely 95.0% confidence interval (which will be slightly less than 2 standard deviations -- find out the exact figure) Repeat (a) using this confidence interval.

(d) Repeat (c) but for the precisely 99.0% confidence interval.

In: Math

A. According to Equation 20.7, an ac voltage V is given as a function of time t by V = Vo sin 2ft, where Vo is the peak voltage and f is the frequency (in hertz).

 

A. According to Equation 20.7, an ac voltage V is given as a function of time t by V = Vo sin 2ft, where Vo is the peak voltage and f is the frequency (in hertz). For a frequency of 56.0 Hz, what is the smallest value of the time at which the voltage equals one-half of the peak-value?

B. The rms current in a copy machine is 7.36 A, and the resistance of the machine is 19.8Ω. What are (a) the average power and (b) the peak power delivered to the machine?

C. A portable electric heater uses 21.8 A of current. The manufacturer recommends that an extension cord attached to the heater receive no more than 2.64 W of power per meter of length. What is the smallest radius of copper (resistivity 1.72 x 10-8 Ω·m) wire that can be used in the extension cord? (Note: An extension cord contains two wires.)   of about 12A

D. The average power used by a stereo speaker is 65 W. Assuming that the speaker can be treated as a 4.3-Ω resistance, find the peak value of the ac voltage applied to the speaker.

 

In: Physics

Assignment Implement Conway’s Game of Life. The Game of Life is a simple simulation that takes...

Assignment

Implement Conway’s Game of Life.

The Game of Life is a simple simulation that takes place in a grid of cells. Each cell can be either alive or dead, and it interacts with its neighbors (horizontally, vertically, or diagonally). In each iteration, a decision will be made to see if living cells stay alive, or if dead cells become alive. The algorithm is as follows:

If a cell is alive:

  • If it has less than two living neighbors, it dies due to loneliness.

  • If it has two or three living neighbors, it lives to the next generation

  • If it has more than three living neighbors, it dies due to overpopulation.

If a cell is dead:

  • and, if it has exactly three live neighbors, it becomes alive due to reproduction.

After each simulation round, your program must print the updated game board to screen.

Functional Requirements

  • MUST correctly play the Game of Life
  • You MUST use this life.h header file to find definitions
  • You MUST use this life.c file as a starting point for your implementation
  • You MUST assume a grid of 15x15
  • The grid size MUST be square
  • Your program MUST start with an initial grid in which cells (5,5) (5,6) (5,7) and (6,6) are alive and all others one are not
  • Your program MUST let the game run for 15 rounds
  • Your program MUST print the game board after each round

Hint

  • When doing a simulation run, define a second two-dimensional array. For each cell in the existing array, count the number of neighbors it has, and decide what its fate will be on the new board. After having done this for all cells, copy the value of your new board over the old one

source code:

life.h
/*
 * life.h
 *
 *  Created on: Sep 13, 2016
 *      Author: leune
 */

#ifndef LIFE_H_
#define LIFE_H_

#define XSIZE   15
#define YSIZE   15
#define DEFAULTROUNDS 15
#define ALIVE   1
#define DEAD    0

// initialize the board to all dead cells
void initBoard(int vBoard[][YSIZE]);

// play a round; updates the cells on the board
void playRound(int vBoard[][YSIZE]);

// print the board
void printBoard(int vBoard[][YSIZE]);

// determine the number of neighbors
int neighbors(int vBoard[][YSIZE], int x, int y);

/* determine if the given coordinates are within bounds
 * returns 0 if the cell is out of bounds; returns 1 if
 * the cell is in bounds
 */
int onBoard(int x, int y);

#endif /* LIFE_H_ */

life.c

/*
 * life.c
 *
 *  Created on: Sep 13, 2016
 *      Author: leune
 */
#include <stdio.h>
#include <unistd.h>
#include "life.h"

int main(int argc, char *argv[]) {
        int board[XSIZE][YSIZE];
        int rounds = DEFAULTROUNDS;

        initBoard(board);
        board[5][5] = ALIVE;
        board[5][6] = ALIVE;
        board[5][7] = ALIVE;
        board[6][6] = ALIVE;

        printf("Playing %d rounds.\n\n", rounds);
        for (int i=0; i<rounds; i++) {
                printf("Round: %d\n", i+1);
                printBoard(board);
                playRound(board);

                sleep(1);
        }

        return 0;
}


void initBoard(int vBoard[][YSIZE]) {
    /* write this function */
}

void playRound(int vBoard[][YSIZE]) {
        int tmpBoard[XSIZE][YSIZE];
        initBoard(tmpBoard);

        // perform the algorithm on vBoard, but update tmpBoard
        // with the new state
        
        /* write this fragment */

    // copy tmpBoard over vBoard
        for (int y=0; y < YSIZE; y++) {
                for (int x=0; x < XSIZE; x++) {
                        vBoard[x][y] = tmpBoard[x][y];
                }
        }
}

int onBoard(int x, int y) {
        if (x < 0 || x >= XSIZE)
                return 0;
        else
                if (y < 0 || y >= YSIZE) return 0;
        else
                return 1;
}

int neighbors(int vBoard[][YSIZE], int x, int y) {
        int n=0;

        int xp1 = x + 1;
        int xm1 = x - 1;
        int yp1 = y + 1;
        int ym1 = y - 1;

        if (onBoard(xm1, y) && vBoard[xm1][y] == ALIVE) n++;
        if (onBoard(xm1, yp1) && vBoard[xm1][yp1] == ALIVE) n++;
        if (onBoard(x, yp1) && vBoard[x][yp1] == ALIVE) n++;
        if (onBoard(xp1, yp1) && vBoard[xp1][yp1] == ALIVE) n++;
        if (onBoard(xp1, y) && vBoard[xp1][y] == ALIVE) n++;
        if (onBoard(xp1, ym1) && vBoard[xp1][ym1] == ALIVE) n++;
        if (onBoard(x, ym1) && vBoard[x][ym1] == ALIVE) n++;
        if (onBoard(xm1, ym1) && vBoard[xm1][ym1] == ALIVE) n++;

        return n;
}

void printBoard(int vBoard[XSIZE][YSIZE]) {
        /* write this fragment */
}

In: Computer Science

q(L,K)=L+2K=100w=30v=40find, graph, and explain cost-minimizing solution (L*,K*)

q(L,K)=L+2K=100

w=30

v=40

find, graph, and explain cost-minimizing solution (L*,K*)

In: Economics

Magnese v phosphate reacts with 9.6 x 10^13 grams iron VII carbonate. calculate the mass of...

Magnese v phosphate reacts with 9.6 x 10^13 grams iron VII carbonate. calculate the mass of the each product produced in the process

In: Chemistry

Explain the significance of the case of Salomon v Salomon and Co Ltd [1897] AC 22....

Explain the significance of the case of Salomon v Salomon and Co Ltd [1897] AC 22. (600 words please without plagiarism due in 12h)

In: Accounting

A 9.0 V potential difference is applied between the ends of a 0.60-mm diameter, 80-cm long...

A 9.0 V potential difference is applied between the ends of a 0.60-mm diameter, 80-cm long nichrome wire. What is the current in the wire?

In: Physics

South Dakota v. Wayfair has been called the "tax case of the millennium." Explain why this...

South Dakota v. Wayfair has been called the "tax case of the millennium." Explain why this SCOTUS decision is so important for nexus purposes.

In: Accounting