Write a MATLAB code that simulates a throw of a die 10 times…

Write a MATLAB code that simulates a throw of a die 10 times. You must use a loop and condition(s). You are only allowed to use “rand”. The rand function without parentheses returns a random scalar drawn from the uniform distribution in the interval (0, 1).    

Debug the following program, so that the appropriate output…

Debug the following program, so that the appropriate output can be obtained.The current output is;1 : 1 : 2 : 4 : 8 : 16 : 32 : 64 : 128 : 256 :The appropriate out is;1 : 1 : 2 : 3 : 5 : 8 : 13 : 21 : 34 : 55 :// We want to display first 10 Fibonacci numbers.      for (i = 1; i

Please write a program that (1) Generates a random number b…

Please write a program that (1) Generates a random number between 0 ~ 999 as the target number. (2) Receive a user’ guess. (3) Your program returns if the entered number is either greater or less than the target number. (4) When a user guesses the target number, congratulate, and asks to play again. See the example #include #include using namespace std; int main() { // Write your program in the answer box. } GuessNum.jpg

Debug the following program, so that the appropriate output…

Debug the following program, so that the appropriate output can be obtained.The current output is;-858993460The appropriate out is;30// We want to show the fifth element of the array Ary.int Ary[5] = { 40, 20, 10, 50, 30 };          // Not allowed to modify.      cout