Discover
Questions library
Collections library
Find online teacher
login
Discover
questions library
Find online teacher
login
Popular searches:
if-else
class-diagram
flowchart
Polymorphism
Home
Questions
Questions
Study lists
roba younis Questions
2249 Questions
What would be the output from the following program? Think about it, write down your answer, and then type it in to verify
Matlab
2022-11-29
Answers
30
Question
40
Followers
30
0
1
154
Write a function per2 that receives one number as an input argument. The function has a persistent variable that sums the values passed to it. Here are the first two times the function is called:
Matlab
2022-11-29
Answers
30
Question
40
Followers
30
0
1
196
Modify the function func2 from Section 6.4.1 that has a persistent variable count. Instead of having the function print the value of count, the value should be returned
Matlab
2022-11-29
Answers
30
Question
40
Followers
30
0
1
247
Write a program to write a temperature conversion chart to a file. The main script will:
Matlab
2022-11-29
Answers
30
Question
40
Followers
30
0
1
185
The distance between any two points (x1,y1) and (x2,y2) is given by: distance =
Matlab
2022-11-29
Answers
30
Question
40
Followers
30
0
1
161
Write a program to write a length conversion chart to a file. It will print lengths in feet, from 1 to an integer specified by the user, in one column and the corresponding length in meters ( 1 foot = 0.3048 m) in a second column
Matlab
2022-11-29
Answers
30
Question
40
Followers
30
0
1
158
The script circscript loops n times to prompt the user for the circumference of a circle (where n is a random integer). Error-checking is ignored to focus on functions in this program
Matlab
2022-11-29
Answers
30
Question
40
Followers
30
0
1
185
The lump sum S to be paid when interest on a loan is compounded annually is given by S = P(1 + i)n where P is the principal invested, i is the interest rate, and n is the number of years. Write a program that will plot the amount S as it increases through the years from 1 to n
Matlab
2022-11-29
Answers
30
Question
40
Followers
30
0
1
232
In 3D space, the Cartesian coordinates (x,y,z) can be converted to spherical coordinates
Matlab
2022-11-29
Answers
30
Question
40
Followers
30
0
1
175
Modify the program in Exercise 13 so that the function to calculate the angle is a subfunction to the function that prints
Matlab
2022-11-29
Answers
30
Question
40
Followers
30
0
1
161
Write a script that will:
Matlab
2022-11-29
Answers
30
Question
40
Followers
30
0
1
183
Write a function that prompts the user for a value of an integer n, and returns the value of n. No input arguments are passed to this function. Error-check to make sure that an integer is entered
Matlab
2022-11-29
Answers
30
Question
40
Followers
30
0
1
171
Write a function that receives an x vector, a minimum value, and a maximum value, and plots sin(x) from the specified minimum to the specified maximum
Matlab
2022-11-29
Answers
30
Question
40
Followers
30
0
1
177
Total:
2249
Previous
18
19
20
21
22
Next
Go