Discover
Questions library
Collections library
Find online teacher
login
Discover
questions library
Find online teacher
login
MATLAB: A Practical Introduction to Programming and Problem Solving
by
Stormy Attaway
Edition:
Fourth Edition
ISBN13:
ISBN10:
459
Matlab
Home
Books
MATLAB: A Practical Introduction to Programming and Problem Solving
Similar Books
No books found
Title
Chapter: 6 /
Q: 12.6
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
Chapter: 6 /
Q: 13.6
Write a script that will:
Chapter: 6 /
Q: 14.6
Modify the program in Exercise 13 so that the function to calculate the angle is a subfunction to the function that prints
Chapter: 6 /
Q: 15.6
In 3D space, the Cartesian coordinates (x,y,z) can be converted to spherical coordinates
Chapter: 6 /
Q: 16.6
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
Chapter: 6 /
Q: 17.6
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
Chapter: 6 /
Q: 18.6
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
Chapter: 6 /
Q: 19.6
The distance between any two points (x1,y1) and (x2,y2) is given by: distance =
Chapter: 6 /
Q: 20.6
Write a program to write a temperature conversion chart to a file. The main script will:
Chapter: 6 /
Q: 21.6
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
total questions:
459
Previous
19
20
21
22
23
Next
Questions
459
Views
Best Answers
299
Points
5
×
Close
add reason
reason