Questions
<HTML> <Head> </HEAD> <BODY> </BODY>    <CANVAS ID ="MyScreen" width="780" Height="640" alt="Your browser does not support...

<HTML>
<Head>


</HEAD>
<BODY>


</BODY>

   <CANVAS ID ="MyScreen" width="780" Height="640" alt="Your browser does not support canvas"></CANVAS>
  
  
   <SCRIPT>
  
   var vertexShaderText =
   [
   'precision mediump float;',
   '',
   'attribute vec2 vertPosition;',
   'attribute vec3 vertColor;',
   'varying vec3 fragColor;',
   'void main()',
   '{',
   'gl_pointsize = 10.0;',
   'fragColor = vertColor;',
   'gl_Position = vec4(vertPosition,0.0,1.0);',
   '}'
   ].join("\n");
  
   var fragmentShaderText =
   [
   'precision mediump float;',
   'varying vec3 fragColor;',
   'void main()',
   '{',
   'gl_FragColor = vec4(fragColor,1.0);',
   '}'
   ].join('\n');
  
   var c = document.getElementById("MyScreen");
   //var ctx = c.getContext("2d");
   //ctx.beginPath();
   //ctx.arc(95,50,40,0,2*Math.PI);
   //ctx.stroke();
  
   var gl = c.getContext("webgl")||c.getContext("experimental-webgl");
   if(!gl)
   {
       alert("WEBGL IS NOT AVAILABLE");
   }
   gl.viewport(0,0,c.width, c.height);
   gl.clearColor(.5,.5,1.0,1.0);
   gl.clear(gl.COLOR_BUFFER_BIT|gl.DEPTH_BUFFER_BIT);
  
   //Setup shaders
   var vertexShader = gl.createShader(gl.VERTEX_SHADER);
   var fragmentShader = gl.createShader(gl.FRAGMENT_SHADER);
  
   gl.shaderSource(vertexShader,vertexShaderText);
   gl.shaderSource(fragmentShader,fragmentShaderText);
   gl.compileShader(vertexShader);
   if(!gl.getShaderParameter(vertexShader,gl.COMPILE_STATUS))
   {
       console.log("ERROR: ",gl.getShaderInfoLog(vertexShader));
   }
   gl.compileShader(fragmentShader);
   if(!gl.getShaderParameter(fragmentShader,gl.COMPILE_STATUS))
   {
       console.log("ERROR: ",gl.getShaderInfoLog(fragmentShader));
   }
  
   //Setup program
   var program = gl.createProgram();
   gl.attachShader(program, vertexShader);
   gl.attachShader(program, fragmentShader);
   gl.linkProgram(program);
   if(!gl.getProgramParameter(program,gl.LINK_STATUS))
   {
       console.error('ERROR', gl.getShaderInfoLog(program));
   }
   gl.validateProgram(program);
   if(!gl.getProgramParameter(program,gl.VALIDATE_STATUS))
   {
       console.error('ERROR', gl.getShaderInfoLog(program));
   }
  

   //Create Buffer
   var triangleVertices =
   [//x and y       R, G, B
       0.0,0.5, 1.0,0.0,0.0,
       -0.5,-0.5, 0.0,1.0,0.0,
       0.5,-0.5, 0.0,0.0,1.0
   ];
  
   var triagnleVertexBufferObject = gl.createBuffer();
   gl.bindBuffer(gl.ARRAY_BUFFER,triagnleVertexBufferObject);
   gl.bufferData(gl.ARRAY_BUFFER, new Float32Array(triangleVertices),gl.STATIC_DRAW);
  
   var positionAttributeLcoation = gl.getAttribLocation(program,'vertPosition');
   var colorAttributeLcoation = gl.getAttribLocation(program,'vertColor');
   gl.vertexAttribPointer(
   positionAttributeLcoation, //ATTRIBUTE LOCATION
   2, //NUMBER of elements per attribute
   gl.FLOAT, //TYPES OF ELEMENTS
   gl.FALSE,
   5*Float32Array.BYTES_PER_ELEMENT, //SIZE OF AN INDIVIDUAL VERTEX
   0 //OFFSET
   );
  
  
   gl.vertexAttribPointer(
   colorAttributeLcoation, //ATTRIBUTE LOCATION
   3, //NUMBER of elements per attribute
   gl.FLOAT, //TYPES OF ELEMENTS
   gl.FALSE,
   5*Float32Array.BYTES_PER_ELEMENT, //SIZE OF AN INDIVIDUAL VERTEX
   2*Float32Array.BYTES_PER_ELEMENT //OFFSET
   );
  
   gl.enableVertexAttribArray(positionAttributeLcoation);
   gl.enableVertexAttribArray(colorAttributeLcoation);
   //Main Loop
   gl.useProgram(program);
   gl.drawArrays(gl.TRIANGLES,0,3);
   </SCRIPT>
  
  
</HTML>

2.3At the lowest level of processing, we manipulate bits in the framebuffer. In WebGL, we can create a virtual framebuffer in our application as a two- dimensional array. You can experiment with simple raster algorithms, such as drawing lines or circles, through a function that generates a single value in the array. Write a small library that will allow you to work in a virtual frame- buffer that you create in memory. The core functions should be WritePixel and ReadPixel. Your library should allow you to set up and display your vir- tual framebuffer and to run a user program that reads and writes pixels using gl.POINTS in gl.drawArrays.

2.4 Turtle graphics is an alternative positioning system that is based on the concept of a turtle moving around the screen with a pen attached to the bottom of its shell. The turtle’s position can be described by a triplet (x, y, θ), giving the location of the center and the orientation of the turtle. A typical API for such a system includes functions such as the following: init(x,y,theta); // initialize position and orientation of turtle forward(distance); right(angle); left(angle); pen(up_down); Implement a turtle graphics library using WebGL. All this using Html file below and editing it

In: Computer Science

Case 11–3 Carmichael Corporation Amanda Tellford, purchasing manager for Carmichael Corporation, became increasingly concerned about the...

Case 11–3 Carmichael Corporation

Amanda Tellford, purchasing manager for Carmichael Corporation, became increasingly concerned about the purchase of MS-7, a special ingredient used in Stimgro, one of her company’s new products. It appeared that a major cost increase might threaten the product’s profit- ability, and Amanda was anxious to explore any alternatives that promised at least some cost relief.

CARMICHAEL CORPORATION

Carmichael Corporation was the U.S. subsidiary of Carmichael International, a UK-based producer of veterinary products and feed additives. Total U.S. sales were expected to be about $20 million with profits before taxes of about $1.2 million. Carmichael occupied a special niche in the market, offering small-volume specialty products that the bigger producers considered uneconomical. However, if sales of these products grew, the possibility existed that a larger producer might become interested. Carmichael had an exclusive distribution agreement with three distributors who covered all parts of the United States. Each distributor sold Carmichael products to feed stores, cooperatives,

and farm supply stores, which, in turn, sold to the farmer. For Stimgro the pricing structure through the distribution chain was approximately as follows:

(Stimgro) Carmichael ->$360 -> Distributor -> $520 -> Feed Store - >$780 - > Farmer

The Carmichael plant located in Chicago employed about 70 hourly rated people. The premises were leased and primary activities involved the mixing of ingredients and the bottling and packing of finished products. About half of the $8 million worth of ingredients was imported from the UK parent; the remainder and all packaging were purchased in the United States. The executive team consisted of Tim Paterson, president and treasurer; Charles Godfrey, sales manager; Amanda Tellford, manager of accounting and purchasing; and Andrew Hartwick, plant manager.

Carmichael Corporation concentrated on poultry medicines and feed additives. Three years earlier, Carmichael had introduced Stimgro, a feed additive for young turkeys, which had shown unusual promise in promoting rapid, healthy development in birds less than one month old. Shortly there

after, a competitor, Brisson, introduced a similar product. Because Brisson, like Carmichael, had its own exclusive distributors, Brisson’s entry into the market did not result in lower Stimgro sales for Carmichael. Small specialty producers like Carmichael and Brisson did not compete on price or manufacturing cost. Their big concern was finding new products to sell and making sufficient profit before the prod- uct was taken over by a larger company or lost its market appeal. Carmichael and Brisson had about equal shares in the Stimgro market with annual sales of about $1.4 million each.

Carmichael imported the two primary ingredients for Stimgro from its UK parent and mixed and packaged them in the Chicago plant. The manufacturing cost for Stimgro is shown in Exhibit 1. Carmichael’s selling price of Stimgro was $360 per kilogram. Amanda Tellford had tried to find a North American source for MS-7 over the past few years but had found that all potential sources, pharmaceutical, and specialty chemical firms had declined serious interest. They claimed the volume was far too low, and the price would have to be at least $800 per kilogram before they could be persuaded to manufacture MS-7.

Exhibit 1

(cost/kg)

MS-7 (500 grams) - $100

Other ingrediants (500 grams) - $48

Packaging – 4

Labor – 8

Overhead – 20

Total - $180

BRISSON

Brisson Corporation was a U.S.-owned manufacturer of products similar to those marketed by Carmichael. Brisson’s range of products was greater than Carmichael’s, and its annual sales volume was about $24 million. Brisson had originally obtained its MS-7 from a UK competitor of Carmichael International, but in the spring of the current year it had placed orders for equipment to manufacture its own MS-7. This action had surprised Amanda Tellford because, like Carmichael, Brisson had been relatively poorly prepared to take this step. For example, the North American market demand for MS-7 was limited to its use by Carmichael and Brisson. Although future growth might show a healthy increase, total current market demand certainly did not warrant the $1 million investment Brisson had to make.

Moreover, MS-7 was tricky to produce, requiring very careful temperature, pressure, and timing control. The main equipment item was a large glass-lined autoclave ingeniously instrumented and constructed to deal with the unusual demands of MS-7 production. The autoclave was normally a fairly general-purpose type of equipment in the chemical industry. However, the special conditions required for the manufacture of MS-7 made this reactor a special-purpose tool, certainly overdesigned and overengineered for the other uses to which Brisson might apply it. MS-7 manufacture was a batch production process, and the expected capacity of the equipment was about 40,000 kilograms per year based on two-shift operation.

In Amanda Tellford’s eyes, Brisson’s action affected her own purchases of MS-7, which up to this point had been at an advantageous transfer price from the UK parent. Although the exact impact was still not entirely clear, she expected at least a 40 percent increase in her laid-down cost. Amanda had no doubt that Brisson would aggressively seek customs protection from undervalued MS-7 imports and that at least a 20 percent duty would be applied on the American selling price.

Amanda Tellford, therefore, requested information from the parent company concerning manufacturing costs of MS-7. She added several other data from her own knowledge and prepared the following summary:

Summary of MS-7 cost and price data :

Minimum equipment outlay installed; $1 million

Delivery on equipment : 9–12 months

UK normal market price : $224/kg

Our laid-down current cost from Carmichael, UK : $200/kg

Carmichael (UK) out-of-pocket cost (material, labor, and variable overhead) : $160/kg

Estimated minimum laid-down cost in Chicago after Brisson starts production : $280/kg

Amanda Tellford went to see Charles Godfrey, Carmichael’s sales manager, to discuss possible sales requirements for the future. Charles said, “It’s really anybody’s guess. First, it depends on the popularity of turkeys. We are banking on continued growth there. Second, as soon as the feed compa- nies can develop a suitable substitute for our product, they will go for it. We appear to be very expensive on a weight basis, although research and actual results show we represent excellent value. It takes such tiny quantities of Stimgro to improve the overall quality of a mix that it is difficult to believe it could have any impact. More competition can enter this market any day. We are just not large enough in the U.S. market to have any strong promotional impact. Each of our product lines is specialized, of relatively small volume, in an area where the big firms choose not to operate. Should a larger firm enter this market, they could flat- ten us. Now you tell me how to turn this into a reasonable forecast.”

Amanda Tellford replied, “I’m glad that’s your problem and not mine, Charles. Anytime you feel you’re ready to put some figures down, please let me know, because it may become very important for us in the near future.”

In looking over past figures, Amanda estimated that the second half of this year’s requirements would total about 1,000 kilograms of MS-7. Amanda decided that she had better think out the effect that Brisson’s decision to make MS-7 might have on her future purchasing strategy.

Case 11-3: Carmichael Corporation

Discussion Questions:

  1. What impact will Brisson’s decision to manufacture MS-7 have on the cost structure of Stimgro for Carmichael?
  2. Should Amanda Tellford do anything at this stage?
  3. What alternatives are open to Amanda Tellford?
  4. What are the advantages and disadvantages of each alternative?
  5. What is the cost structure for Stimgro and the margin?
  6. Since Stimgro is very profitable, with a good margin, why does it matter if the cost of MS-7 increases?

Main Question:

  1. As Amanda Tellford, what alternatives would you consider regarding MS-7? Which alternative would you pursue and how would you go about it?

In: Operations Management

Wally runs a fruit & vege stall Wally’s VegeRama -at the local Sunday market. He can...

Wally runs a fruit & vege stall Wally’s VegeRama -at the local Sunday market. He can buy watermelons from his supplier for $5 each. He can sell watermelons for $10 Each. On any particular Sunday, demand for watermelons follows a Poisson distribution with mean 5. Any watermelons that are not sold on Sunday go bad before the next weekend. Wally’s current policy is to stock 6 watermelons.

  1. How many watermelons should Wally stock to maximise his expected profit? expected profit is 3.0800

In: Math

Identify and describe how the environment affects organizations and how organizations adapt to their environment. Competitive...

  1. Identify and describe how the environment affects organizations and how organizations adapt to their environment. Competitive Forces "FOR HARDEE'S"

In: Operations Management

Using the following info and the standard enthalpy of formation for CO2(g) (-393.5KJ/mol), determine the standard...

Using the following info and the standard enthalpy of formation for CO2(g) (-393.5KJ/mol), determine the standard enthalpy of formation of tungsten carbide, WC(s):

WC(s)+ 5/2 O2(g) --> WO3(s) + CO2(g) ∆H° = -285.80Kcal

W(s) + 3/2 O2(g) --> WO3(s) ∆H° = -200.16Kcal

In: Chemistry

Selected data on inventory, purchases, and sales for Celebrity Tan Co. and Ranchworks Co. are as...

Selected data on inventory, purchases, and sales for Celebrity Tan Co. and Ranchworks Co. are as follows:

Cost

Retail

Celebrity Tan Co.
Inventory, August 1 $ 260,000 $ 595,000
Transactions during August:
Purchases (net) 2,263,400 3,475,000
Sales 3,275,000
Ranchworks Co.
Inventory, March 1 $870,000
Transactions during March through November:
Purchases (net) 9,260,000
Sales 15,050,000
Estimated gross profit rate 40%
Required:
1. Determine the estimated cost of the inventory of Celebrity Tan Co. on August 31 by the retail method.* Enter all ratios as percents, rounded to one decimal place.
2.
a. Estimate the cost of the inventory of Ranchworks Co. on November 30 by the gross profit method.*
b. Assume that Ranchworks Co. took a physical inventory on November 30 and discovered that $367,250 of inventory was on hand. What was the estimated loss of inventory due to theft or damage during March through November?
* Refer to the list of Amount Descriptions provided for the exact wording of the answer choices for text entries.

In: Accounting

MOST POPULAR : Business Analyst Interview Question: 1.Explain Traceability 2.Explain change Management 3.What is a change...

MOST POPULAR : Business Analyst Interview Question:

1.Explain Traceability

2.Explain change Management

3.What is a change Request

4.How will you handle a change request?

In: Operations Management

Christmas Corporation issued a 20% stock dividend on 40,000 outstanding shares of $10 par value common...

  1. Christmas Corporation issued a 20% stock dividend on 40,000 outstanding shares of $10 par value common stock. The distribution was made at the time the market value of the stock was $32 a share. How did this transaction affect the company's total stockholders' equity?


A. The total balances in equity accounts increased by $80,000.
B. The sum of the balances in equity accounts increased by $256,000.
C. The sum of the balances in equity accounts decreased by $256,000.
D. Total stockholders' equity was not affected by this transaction.

  1. During the year, Timberdale Company sold a truck at a loss of $20,000. On the Statement of Cash Flows,

  1. the loss from the sale of truck is added to net income in the cash flow from financing activities.
  2. the loss from the sale of truck is deducted from net income in the cash flow from operating activities.
  3. the loss from the sale of truck is deducted from net income in the cash flow from investing activities
  4. the loss from the sale of truck is added to net income in the cash flow from operating activities.
  1. Regarding the Statement of Cash Flows, which one of the following is false?

  1. If accounts receivable decreases, cash increases.
  2. If accounts payable decreases, cash increases.
  3. If inventory decreases, cash increases.
  4. If accounts payable decreases, cash decreases.

In: Accounting

EXPLAIN THE ADVANTAGES AND DISADVANTAGES OF EMPLOYING HOME COUNTRY, HOST COUNTRY, AND THIRD COUNTRY MANAGERS.

EXPLAIN THE ADVANTAGES AND DISADVANTAGES OF EMPLOYING HOME COUNTRY, HOST COUNTRY, AND THIRD COUNTRY MANAGERS.

In: Operations Management

The administration of the Kasoa Government hospital wants to improve its quality of service by reducing...

The administration of the Kasoa Government hospital wants to improve its quality of service by reducing the waiting time of travelers. For that purpose, they want to design what could be the best queuing strategy to have the minimum waiting time. You have been task to advice on the best queuing strategy in order to reduce the waiting time of patients before attended to. Discuss how you will address the problem

In: Computer Science

A reaction has a rate constant of 1.23×10−4 s−1 at 26  ∘C and 0.232 s−1 at 79  ∘C...

A reaction has a rate constant of 1.23×10−4 s−1 at 26  ∘C and 0.232 s−1 at 79  ∘C .

Part A

Determine the activation barrier for the reaction.

Express your answer in units of kilojoules per mole.

Part B

What is the value of the rate constant at 18  ∘C ?

Express your answer in units of inverse seconds.

In: Chemistry

Can someone just answer 8 A B C D and E please!!! Regression Analysis (Excel 2010...

Can someone just answer 8 A B C D and E please!!!

Regression Analysis (Excel 2010 & 2007)

1.         Open a new Excel worksheet (which will be saved as REGRESSION.xlsx).  In cell A1 type your name.  In cell A2 type the course and section number (i.e. ECON225-01).  In cell A3 type the date.  Skip cell A4.  In cell A5 type “Assignment: Regression Analysis”.  In cell A6 type “File: REGRESSION.xlsx”.

2.         Type X in cell B8 and type Yin cell C8.  Type Miles in cell B9 and type Minutes  in cell C9.

In cells B10 through B18 enter the following values:

11, 10, 15, 7, 3, 6, 9, 12, 5

                        In cells C10 through C18, enter the following data values:  

                        28, 27, 35, 15, 8, 14, 20, 29, 13  

            Center format cells B8 through C18 for a more professional appearance.

3.         Click on the Datatab in the toolbar, then select Data Analysis. Next, select   Regressionfrom the Analysis Tools and click on OK.  In the Regression dialog boxes type C10:C18in the Input Y Range dialog box, then type B10:B18in the Input X Range dialog box.  Under Output Options select Output Range and type A20:I40in the output range dialog box.  Click onOK. A Summary Output table will appear.

4.         Select cell D27 and type Forecast for Y when X = 13:  Next select cell G27, then click on the Formulas tabin the toolbar, then select More Functions. Under the Function category select Statistical.  Under the Function name select  FORECAST.  In the dialog boxes type 13in the X dialog box, type C10:C18in the Known Y’s dialog box, and type B10:B18in the Known X’s dialog box.  Click on OK. The forecasted value for Y when X=13 will appear in cell G27.

5.         Return to the Home tab in the toolbar.  Select the columns of X and Y data values from B10 through C18(do not select their headings).  Next, click on the Insert tabin the toolbar, under Charts select Scatter, then select the first choice of a scatter diagram graph.    Resize and reposition the scatter diagram to the location of cell E9 for the top left corner of the diagram, and cell I 22 for the bottom right corner of the diagram.  (This will allow everything to fit on one printed page.) Delete the “Series 1” label box. You can label the axes with the variable names (Miles and Minutes) by clicking on the outside corner of the graph, then select Axis Titles in the toolbar. Label both the X and Y axes of the graph with their appropriate variable names.

            (Instructions continue on the next page.)

6.         Next, click any place inside of the scatter diagram. Under the Analysis options, click on Trendline,thenselectLinear Trendline. Click on OK. A trend line will be added to the scatter diagram.  Do a Print Preview to make sure that your graph fits onto the printed page.

7.         Save your worksheet on a disk as REGRESSION.xlsx and print-out the worksheet to submit to the instructor.  

8.         In addition to submitting a print-out of the worksheet(s), also submit typed answers to the following questions, referencing the data in your print-out and your textbook or Notes:

(a)        What is the regression equation for this data set? (Write the printed “a” and “b” values into the equation.  Hint: Under the Coefficient column the value for the Intercept is the value for “a” and the X Variable value is the value for “b”.)

(b)       Interpret the printed value for “a” relative to its definition, the X and Y variable names, and its value.  

(c)        Interpret the printed value for “b” relative to its definition, the X and Y variable names, and its value.

(d)       Interpret the printed value for “r” relative to its definition, the X and Y variable names, and its value.  (**Hint: Under the Regression Statistics section the Multiple R value is the correlation coefficient and the R Square value is the Coefficient of Determination.  The printed table value for “r” does not always indicate direction (+ or -), therefore, check that the sign for your “r” value agrees with the sign for your “b” value.)  

(e)        Interpret the printed value for “r2” relative to its definition, the X and Y variable names, and its value.  

In: Math

A system has five workstations (A, B, C, D, and E) connected in sequence, with process...

A system has five workstations (A, B, C, D, and E) connected in sequence, with process times of 5, 10, 4, 9, and 8 seconds per unit each, respectively.  Each workstation contains a single machine.

1. which workstation is the bottleneck of the system:

          a.   Workstation A

          b.   Workstation B

          c.   Workstation C

          d.   Workstation D

2. the system process time of this process is:

          a.   5.1 seconds                                                                             

          b.   10 seconds

          c.   15 seconds

          d.   36 seconds

3. assume Workstation B now contains two machines, each of which can process a 1 unit every 10 seconds.  What is the throughput time of this process?

          a.   9 seconds                                                                                

          b.   10 seconds

          c.   36 seconds

          d.   46 seconds

In: Operations Management

MOST POPULAR : Business Analyst Interview Question 1. Describe A Time When You Improved A Business...

MOST POPULAR : Business Analyst Interview Question

1. Describe A Time When You Improved A Business Process

2.Six Ways To Manage Conflicts Between Stakeholders

3.How Do You Conduct A Gap Analysis?

4.What Is Business Process Mapping?

In: Operations Management

An electron collides elastically with a stationary hydrogen atom. The mass of the hydrogen atom is...

An electron collides elastically with a stationary hydrogen atom. The mass of the hydrogen atom is 1837 times that of the electron. Assume that all motion, before and after the collision, occurs along the same straight line. What is the ratio of the kinetic energy of the hydrogen atom after the collision to that of the electron before the collision?

In: Physics