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...
2개월 전
문제를 풀었습니다
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...
2개월 전
문제를 풀었습니다
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 = ...
2개월 전
문제를 풀었습니다
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.
2개월 전
문제를 풀었습니다
NOT
If a not equal to zero, b = true, else, b = false.
2개월 전
문제를 풀었습니다
OR
If a greater than zero or c less than 10, b = true, else, b = false.
2개월 전
문제를 풀었습니다
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...
2개월 전
문제를 풀었습니다
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.
2개월 전
문제를 풀었습니다
If-Elseif-Else
If a more than zero, b = true, if a = zero , b = zero, else, b = false.
2개월 전
문제를 풀었습니다
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...
2개월 전
문제를 풀었습니다
Engine Thermal Efficiency
The thermal efficiency of an ideal Otto cycle engine depends only on the compression ratio. A higher compression ratio yields gr...