A GUI interface needs to be utilized asking for input data a

A GUI interface needs to be utilized asking for input data and displaying results.
F to K= (5/9)(F+459.67)
C to K=C+273.15
After input is changed to Kelvin (if not already given Kelvin), need to find the intrinsic carrier concentration ni with we below.

T is the temperature in Kelvin, k=(86*(10^(-6)))
The other constants are found below

Solution

%clears screen and deletes all the variables in the workspace

clc;

clear;

%Ask for input the temperature

temp = input(\'Temperature in F or C or K: \', \'s\' );

vtemp=input(\'Enter value for temperature: \');

%converting temperature to K

switch(temp)

case \'F\'

K = (5/9) * (vtemp + 459.67);

case \'C\'

K = vtemp + 273.15;

case \'K\'

K = vtemp;

otherwise

fprintf(\'Invalid temp\');

end

%Calculating intrinsic carrier concentration ni

y = ( 2 * K * 86 * (10^(-6) );

nSi = ( 5.23 * (10^15) ) * ( x ) * ( 2.71828 ^ ( (-1.1) / y ) ) ;

disp(nSi)

nGaAs = ( 2.10 * (10^14) ) * ( x ) * ( 2.71828 ^ ( (-1.4) / y ) ) ;

disp(nGaAs)

nGe = ( 1.66 * (10^15) ) * ( x ) * ( 2.71828 ^ ( (-0.66) / y ) ) ;

disp(nGe)

temp = F

vtemp = 110

*********

Here the calcuation of intrinsic carrier concentration can also be written as follows

%Calculating intrinsic carrier concentration ni

nSi = ( 5.23 * (10^15) ) * ( ( 86 * (10^(-6) ) ^(3/2) ) ) * ( 2.71828 ^ ( (-1.1) / ( 2 * K * 86 * (10^(-6) ) ) ) ) ;

disp(nSi)

nGaAs = ( 2.10 * (10^14) ) * ( ( 86 * (10^(-6) ) ^(3/2) ) ) * ( 2.71828 ^ ( (-1.4) / ( 2 * K * 86 * (10^(-6) ) ) ) ) ;

disp(nGaAs)

nGe = ( 1.66 * (10^15) ) * ( ( 86 * (10^(-6) ) ^(3/2) ) ) * ( 2.71828 ^ ( (-0.66) / ( 2 * K * 86 * (10^(-6) ) ) ) ) ;

disp(nGe)

nSi = ( 5.23 * (10^15) ) * ( ( 86 * (10^(-6) ) ^(3/2) ) * ( 2.71828 ^ ( (-1.1) / ( 2 * K * 86 * (10^(-6) ) ) ) ) ;

A GUI interface needs to be utilized asking for input data and displaying results. F to K= (5/9)(F+459.67) C to K=C+273.15 After input is changed to Kelvin (if
A GUI interface needs to be utilized asking for input data and displaying results. F to K= (5/9)(F+459.67) C to K=C+273.15 After input is changed to Kelvin (if

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site