Question
Write a Scilab script named HW7_Prob_03.sce, that creates 2 tables. a.Table 1 will convert F to K 1. Request the user to input the number
Write a Scilab script named HW7_Prob_03.sce, that creates 2 tables.
a.Table 1 will convert F to K
1. Request the user to input the number of elements you want in a vector. Call this variable Increment1. (+1point)
2. Use the linspace function to create a vector from 0F to 200F and uses the number of elements input by the user in the following formula (200/increment1)+1. Name this variable F. (+2 points)
3. Use the formula (5/9)*(F +459.67) to create a vector of K values. Name this variable K. (+2 points)
4. Concatenate F and K into a 2 row matrix (such that F values are directly on top of K values). Name this variable A. (+1 point)
5. Display A (+1 point)
b. Table 2 will convert C to R
1. Request the user to input the starting temperature. Name this variable StartTemp. (+1 point)
2. Request the user to input the increment of the table (e.g., five degrees, 10 degrees, 20 degrees, etc between start temp and second value.) Name this variable increment2. (+1 point)
3. Use the linspace function to create a vector from StartTemp to (StartTemp+24)*increment2, with an increment equal to increment2. Name this Variable C. (+2 points)
4. Use the formula (9/5)*C+491.67 to create a vector of R values. Name this variable R. (+2 points)
5. Concatenate C and R into a 2 row matrix (such that C values are directly on top of R values). Name this variable B. (+1 point)
6. Display B (+1 point)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started