A Five Introduction
Write a function that takes a number x as an input and returns the same value as y, unless x = 5, in which case the function sho...
1 month ago
Solved
Problem Set 2
Make a calculator by the four main operators (op):
+
-
*
/
And the two numbers (n1, n2).
Don't forget to check to divisio...
1 month ago
Solved
Problem Set 1
You will get the vector "v", you should put it's length in a variable called "lngth", then...
If it's length from 1 to 5, sz = ...
1 month ago
Solved
Switch-Case-Otherwise
You should make random numbers to 10, by 3 rows and 3 columns.
Cases from 1 to 3, b = true.
Otherwise, b = false.
1 month ago
Solved
NOT
If a not equal to zero, b = true, else, b = false.
1 month ago
Solved
OR
If a greater than zero or c less than 10, b = true, else, b = false.
1 month ago
Solved
AND
If a greater than 0 and n less than 10, b = true, else, b = false.
(Checking a should be in one line by AND special sign in MAT...
1 month ago
Solved
Nested If(s)
If a greater than zero, then check, if a = greater that 1 and less than 10, then b = true, else, b = false.
1 month ago
Solved
If-Elseif-Else
If a more than zero, b = true, if a = zero , b = zero, else, b = false.
1 month ago
Solved
If-Else
If a more than zero, b = true, else, b = false.
Engine torque and RPM
Torque and power are related through rotational speed. Knowing brake power and engine RPM, you can back-calculate the torque del...
1 month ago
Solved
Engine Thermal Efficiency
The thermal efficiency of an ideal Otto cycle engine depends only on the compression ratio. A higher compression ratio yields gr...