Question

Need help using the for loop

Test case Check if AdjustMinValue(4, [2, 12, 9, 20], 10) returns [4, 12, 18, 20]

3 months ago | 1 answer | 0

Question

Using nested loop to check for whole numbers inside a matrix

Im trying to find any values that are not whole numbers inside a 3x3 matrix, but i have to used nested loops This my code x=[1...

3 months ago | 1 answer | 0

Question

Locate any decimal value inside a matrix?

Im trying to find any values that are not whole numbers inside a 3x3 matrix x=[1 2.5 4;5 3 3.2;4 9 2] I want to use the for ...

3 months ago | 1 answer | 0

Question

How to locate a decimal in a matrix?

How would i locate a decimal value inside a square matrix? For example x=[1 2.5 3;5 7 1;2 6 4.2] Would i used functions ...

3 months ago | 1 answer | 0

Question

Integers without repeating consecutively

A pincode consists of N integers between 1 and 9. In a valid pincode, no integer is allowed to repeat consecutively. For example...

3 months ago | 2 answers | 0

Question

How do i write a polynomial and take the derivative?

I want to take the derivative of a polynomial, but Im not sure how to write the polynomial in the script T(A)=A^3 - A^2 - A -1. ...

4 months ago | 1 answer | 0

Question

Using the while loop function

How do i make a while loop to loop five times if the user does not enter the correct input?

4 months ago | 1 answer | 0

Question

Produce an error and terminate program

How would i produce an error that states that the user did not select a value in the menu and terminate the program if user ex...

4 months ago | 0 answers | 0

Question

How do i produce a warning and an error for the user

The task is to promt the user to enter an input between 0 and 200.I have to produce a warning and take the asbolute value. If th...

4 months ago | 1 answer | 0