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
Write a function that receives a count as an input argument, and prints the value of the count in a sentence that would read “It happened 1 time.” if the value of the count is 1, or “It happened xx times.” if the value of count (xx) is greater than 1
Matlab
2022-11-29
Answers
30
Question
40
Followers
30
0
1
258
Write a function that receives a matrix as an input argument, and prints a random row from the matrix
Matlab
2022-11-29
Answers
30
Question
40
Followers
30
0
1
178
Write a function that will receive an integer n and a character as input arguments, and will print the character n times
Matlab
2022-11-29
Answers
30
Question
40
Followers
30
0
1
158
Write a function that prints the area and circumference of a circle for a given radius. Only the radius is passed to the function. The function does not return any values. The area is given by π r2 and the circumference is 2 π r
Matlab
2022-11-29
Answers
30
Question
40
Followers
30
0
1
222
Given the following function header: function doit(a, b) Which of the following function calls would be valid – and why?
Matlab
2022-11-29
Answers
30
Question
40
Followers
30
0
1
417
The geographic coordinate system is used to represent any location on Earth as a combination of latitude and longitude values. These values are angles that can be written in the decimal degrees (DD) form or the degrees, minutes, seconds (DMS) form just like time
Matlab
2022-11-29
Answers
30
Question
40
Followers
30
0
1
237
Write a function to calculate the volume and surface area of a hollow cylinder. It receives as input arguments the radius of the cylinder base and the height of the cylinder. The volume is given by r2 h, and the surface area is 2 r h
Matlab
2022-11-29
Answers
30
Question
40
Followers
30
0
1
162
Write a function “splitem” that will receive one vector of numbers as an input argument, and will return two vectors: one with the positive (>=0) numbers from the original vector, and the second the negative numbers from the original vector. Use vectorized code (no loops) in your function
Matlab
2022-11-29
Answers
30
Question
40
Followers
30
0
1
250
Write a function that will receive as an input argument a number of kilometers (K). The function will convert the kilometers to miles and to U.S. nautical miles, and return both results. The conversions are: 1K = 0.621 miles and 1 US nautical mile = 1.852 K
Matlab
2022-11-29
Answers
30
Question
40
Followers
30
0
1
182
Given the following function header: function [x, y] = calcem(a, b, c) Which of the following function calls would be valid – and why?
Matlab
2022-11-29
Answers
30
Question
40
Followers
30
0
1
398
Write your own code to perform matrix multiplication. Recall that to multiply two matrices, the inner dimensions must be the same
Matlab
2022-11-29
Answers
30
Question
40
Followers
30
0
1
176
A CD changer allows you to load more than one CD. Many of these have random buttons, which allow you to play random tracks from a specified CD, or play random tracks from random CDs
Matlab
2022-11-29
Answers
30
Question
40
Followers
30
0
1
167
Write a “Guess My Number Game” program. The program generates a random integer in a specified range, and the user (the player) has to guess the number
Matlab
2022-11-29
Answers
30
Question
40
Followers
30
0
1
409
Total:
2249
Previous
19
20
21
22
23
Next
Go