Alpha Geek

(8)

$10/per page/Negotiable

About Alpha Geek

Levels Tought:
University

Expertise:
Accounting,Algebra See all
Accounting,Algebra,Architecture and Design,Art & Design,Biology,Business & Finance,Calculus,Chemistry,Communications,Computer Science,Environmental science,Essay writing,Programming,Social Science,Statistics Hide all
Teaching Since: Apr 2017
Last Sign in: 346 Weeks Ago
Questions Answered: 9562
Tutorials Posted: 9559

Education

  • bachelor in business administration
    Polytechnic State University Sanluis
    Jan-2006 - Nov-2010

  • CPA
    Polytechnic State University
    Jan-2012 - Nov-2016

Experience

  • Professor
    Harvard Square Academy (HS2)
    Mar-2012 - Present

Category > Programming Posted 28 May 2017 My Price 7.00

Write a program to model this temperature distribution for a grid with six rows

 

Write a program to model this temperature distribution for a grid with six rows and eight columns. Allow the user to enter the temperatures for the four sides. Use one array to store the temperatures. Thus, when a point is updated, its new value is used to update the next point. Continue updating the points, moving across the rows until the temperature differences for all updates are less than a user-entered tolerance value.

 

Temperature Distribution. The temperature distribution in a thin metal plate with constant (or isothermal) temperatures on each side can be modeled using a two-dimensional grid, as shown in Figure 5.10. Typically, the number of points in the grid are specified, as are the constant temperatures on the four sides. The temperatures of the interior points are usually initialized to zero, but they change according to the temperatures around them. Assume that the temperature of an interior point can be computed as the average of the four adjacent temperatures; the points shaded in Figure 5.10 represent the adjacent temperatures for the point labeled x in the grid. Each time that the temperature of an interior point changes, the temperatures of the points adjacent to it change. These changes continue until a thermal equilibrium is achieved and all temperatures become constant.

 

 

 
 

Answers

(8)
Status NEW Posted 28 May 2017 07:05 AM My Price 7.00

-----------

Attachments

1495957952-1865923_2_636314557854392448_sample-output.PNG
file 1495957971-Answer.docx preview (324 words )
#-----------inc-----------lud-----------e &-----------amp-----------;lt-----------;st-----------dio-----------.h&-----------amp-----------;gt-----------; -----------#in-----------clu-----------de -----------&am-----------p;l-----------t;m-----------ath-----------.h&-----------amp-----------;gt-----------; -----------#de-----------fin-----------e N-----------ROW-----------S 6----------- #-----------def-----------ine----------- NC-----------OLS----------- 8 ----------- in-----------t m-----------ain-----------(vo-----------id)----------- {----------- ----------- -----------dou-----------ble----------- le-----------ft_-----------t,r-----------igh-----------t_t-----------,to-----------p_t-----------,bo-----------t_t-----------,dt-----------max----------- = -----------0.0-----------,to-----------ler-----------anc-----------e; ----------- ----------- d-----------oub-----------le -----------pla-----------te1-----------[NR-----------OWS-----------][N-----------COL-----------S]=-----------{{0-----------}},-----------pla-----------te2-----------[NR-----------OWS-----------][N-----------COL-----------S]=-----------{{0-----------}};----------- ----------- -----------int----------- ro-----------w,c-----------ol;----------- ----------- -----------pri-----------ntf-----------(&q-----------uot-----------;En-----------ter----------- th-----------e t-----------emp-----------era-----------tur-----------es -----------of -----------the----------- le-----------ft,----------- ri-----------ght-----------, t-----------op,----------- an-----------d b-----------ott-----------om -----------edg-----------es -----------of -----------the----------- pl-----------ate-----------:\n-----------&qu-----------ot;-----------); ----------- ----------- s-----------can-----------f(&-----------quo-----------t;%-----------lf -----------%lf----------- %l-----------f %-----------lf&-----------quo-----------t;,-----------&am-----------p;a-----------mp;-----------lef-----------t_t-----------,&a-----------mp;-----------amp-----------;ri-----------ght-----------_t,-----------&am-----------p;a-----------mp;-----------top-----------_t,-----------&am-----------p;a-----------mp;-----------bot-----------_t)-----------;
Not Rated(0)