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
Come up with “trigger words” in a problem statement that would tell you when it would be appropriate to use if, if-else, or switch statements
Matlab
2022-11-29
Answers
30
Question
40
Followers
30
0
1
494
When would you use just an if statement and not an if-else?
Matlab
2022-11-29
Answers
30
Question
40
Followers
30
0
1
218
The speed of a sound wave is affected by the temperature of the air. At 0° C, the speed of a sound wave is 331 m/sec. The speed increases
Matlab
2022-11-29
Answers
30
Question
40
Followers
30
0
1
478
Write a function nexthour that receives one integer argument, which is an hour of the day, and returns the next hour. This assumes a 12- hour clock; so, for example, the next hour after 12 would be 1. Here are two examples of calling this function
Matlab
2022-11-29
Answers
30
Question
40
Followers
30
0
1
177
Write a script that tests whether the user can follow instructions. It prompts the user to enter an ‘x’. If the user enters anything other than an ‘x’, it prints an error message – otherwise, the script does nothing
Matlab
2022-11-29
Answers
30
Question
40
Followers
30
0
1
429
Many mathematical models in engineering use the exponential function. The general form of the exponential decay function is:
Matlab
2022-11-29
Answers
30
Question
40
Followers
30
0
1
197
In thermodynamics, the Carnot efficiency is the maximum possible efficiency of a heat engine operating between two reservoirs at different temperatures. The Carnot efficiency is given as
Matlab
2022-11-29
Answers
30
Question
40
Followers
30
0
1
227
The conversion depends on the temperature and other factors, but an approximation is that 1 inch of rain is equivalent to 6.5 inches of snow. W
Matlab
2022-11-29
Answers
30
Question
40
Followers
30
0
1
198
Write a function called pickone, which will receive one input argument x, which is a vector, and will return one random element from the vector. For example,
Matlab
2022-11-29
Answers
30
Question
40
Followers
30
0
1
209
A function can return a vector as a result. Write a function vecout that will receive one integer argument and will return a vector that increments from the value of the input argument to its value plus 5, using the colon operator. For example
Matlab
2022-11-29
Answers
30
Question
40
Followers
30
0
1
180
A Pythagorean triple is a set of positive integers (a,b,c) such that a2 + b2 = c2 . Write a function ispythag that will receive three positive integers (a, b, c in that order) and will return logical 1 for true if they form a Pythagorean triple, or 0 for false if not
Matlab
2022-11-29
Answers
30
Question
40
Followers
30
0
1
269
Write a function isint that will receive a number input argument innum, and will return 1 for true if this number is an integer, or 0 for false if not. Use the fact that innum should be equal to int32(innum) if it is an integer
Matlab
2022-11-29
Answers
30
Question
40
Followers
30
0
1
242
Write a function isdivby4 that will receive an integer input argument, and will return logical 1 for true if the input argument is divisible by 4, or logical false if it is not
Matlab
2022-11-29
Answers
30
Question
40
Followers
30
0
1
234
Total:
2249
Previous
25
26
27
28
29
Next
Go