BSc in EEE, Bangladesh University of Engineering and Technology.

PhD Student Deakin University.

Solved

Find the last digit

FInd the last digit of a given number. Given number is the input and output should be the last digit of that number.

mer än ett år ago

Solved

Determine whether the input is divisible by 3 as well as 5

If the input is divisible by 3 as well as 5 then the output should be 'true' otherwise 'false'

mer än ett år ago

Solved

Sum of Two Numbers

Given two integer numbers x and y, calculate their sum and put it in z. Examples: Inputs x = 2, y = 4 Output z is 6 ...

mer än ett år ago

Solved

Number of Even Elements in Fibonacci Sequence

Find how many even Fibonacci numbers are available in the first d numbers. Consider the following first 14 numbers 1 1 2...

mer än ett år ago

Solved

Find the nearest prime number

Happy 5th birthday, Cody! Since 5 is a prime number, let's have some fun looking for other prime numbers. Given a positive in...

mer än ett år ago

Solved

Extra safe primes

Did you know that the number 5 is the first safe prime? A safe prime is a prime number that can be expressed as 2p+1, where p is...

mer än ett år ago

Solved

Is this is a Tic Tac Toe X Win?

For the game of <https://en.wikipedia.org/wiki/Tic-tac-toe Tic Tac Toe> we will be storing the state of the game in a matrix M. ...

mer än ett år ago

Solved

I Plead the Fifth

Write a function to provide a yes or no answer to the input string. However, it must plead the 5th amendment (return an empty st...

mer än ett år ago

Solved

Spot the First Occurrence of 5

This problem series invites you to solve two simple problems related to the integer NUMBER FIVE, in order to celebrate <https://...

mer än ett år ago

Solved

Tick. Tock. Tick. Tock. Tick. Tock. Tick. Tock. Tick. Tock.

Submit your answer to this problem a multiple of 5 seconds after the hour. Your answer is irrelevant; the only thing that matte...

mer än ett år ago

Solved

Predicting life and death of a memory-less light bulb

*💡 💡 💡 💡 💡 💡 💡 💡 💡 💡 💡 💡 💡 💡 &...

mer än ett år ago

Solved

A Simple Tide Gauge with MATLAB

*∿ ∿ ∿ ∿ ∿ ∿ ∿ ∿* You are standing in a few inches of sea water on a beach. You a...

mer än ett år ago

Solved

5 Prime Numbers

Your function will be given lower and upper integer bounds. Your task is to return a vector containing the first five prime numb...

mer än ett år ago

Solved

Pernicious Anniversary Problem

Since Cody is 5 years old, it's pernicious. A <http://rosettacode.org/wiki/Pernicious_numbers Pernicious number> is an integer w...

mer än ett år ago

Solved

How to subtract?

*± ± ± ± ± ± ± ± ± ± ±* * Imagine you need to subtract one...

mer än ett år ago

Solved

Energy of a photon

*⚛ ☢ ⚛ ☢ ⚛ ☢ ⚛* Given the frequency F of a photon in giga hertz. Find energy E of this...

mer än ett år ago

Solved

Basic electricity in a dry situation

⚡ ⚡ ⚡ ⚡ ⚡ ⚡ ⚡ ⚡ ⚡ ⚡ ⚡ ⚡ ⚡ ⚡ ⚡ ⚡ ⚡ ⚡ &#...

nästan 3 år ago

Solved

Vector indexing: lower than mean

Find all values in a vector lower than the mean of the vector

nästan 3 år ago

Solved

Matrix element wise multiplication

Take two incoming vectors, and multiply them element wise

nästan 3 år ago

Solved

Matrix multiplication

Multiply two incoming matrices via matrix multiplication

nästan 3 år ago

Solved

Find the index of the lowest number in a matrix

Take a matrix, and find the [row cal] index of the lowest number

nästan 3 år ago

Solved

Replace 0 indices in array with 1's

Take a incoming vector, and replace 0's with ones

nästan 3 år ago

Solved

Make one vector from two others

You are given two vectors of equal length. Your task is to create a MATLAB script that will repeat all of the values in the fir...

nästan 3 år ago

Solved

Component area

Find the area of the component below, all measurements are in mm <<https://image.ibb.co/hocruF/Component.png>>

nästan 3 år ago

Solved

Find the sum of the largest two elements in a vector

With this one, you have to find the two largest elements in a vector and output the sum of those numbers.

nästan 3 år ago

Solved

Check if inputted variable is a string or a number

Check if a inputted variable is a number or a string, given a string input (i.e. '1' is 1 and thus a number, 'a' is a string).

nästan 3 år ago