# Build me Positive Markov Matrix in Java

Positive Markov Matrix

An n x n matrix is a positive Markov Matrix if each element is positive and the sum of the elements in each column is 1.

Write a program that prompts the user to enter values for a 3 x 3 matrix. The program should then output the numbers in a matrix format and use a method to determine if it is a positive markov matrix. The method should return true if it is a positive markov matrix and return false if it is not.

You will need:

Scanner class for input

A 2 dimensional array that can hold 9 values

Nested for loops that do the following:

Input the values into the array

Print the values from the array in a 3 x 3 matrix format

An if else statement that uses the returned value from the method to report that the matrix is a positive markov matrix or not

A method that does the following:

Accepts a 2 dimensional array as a format parameter

Checks each element to see if it is positive

If an element is negative, return false

Finds the sum of values in each column

Don’t forget to initialize/reset your sum to 0!

If the sum is equal to 1, return true; otherwise return false.

Samples of the output is shown below:

Sample 1:

(Note that the user can enter the 9 values in a row, but the results are still output in a 3 x 3 matrix)

Enter a 3 by 3 matrix row by row:

0.15 0.875 0.375 0.55 0.005 0.225 0.3 0.12 0.4

The matrix you entered is:

0.15 0.875 0.375

0.55 0.005 0.225

0.3 0.12 0.4

It is a Markov matrix

Sample 2:

Here the values are entered in a matrix format by pressing enter after each 3rd value:

Enter a 3 by 3 matrix row by row:

0.15 0.875 0.375

0.55 0.005 0.225

0.30 0.120 0.400

The matrix you entered is:

0.15 0.875 0.375

0.55 0.005 0.225

0.3 0.12 0.4

It is a Markov matrix

Sample 3:

Enter a 3 by 3 matrix row by row:

0.5 0 0 -0.5 0.5 0 0 -0.5 1

The matrix you entered is:

0.5 0.0 0.0

-0.5 0.5 0.0

0.0 -0.5 1.0

It is not a Markov matrix

Sample 4:

Enter a 3 by 3 matrix row by row:

4 5 6

7 8 9

1 2 3

The matrix you entered is:

4.0 5.0 6.0

7.0 8.0 9.0

1.0 2.0 3.0

It is not a Markov matrix

Evner: Java

Om arbejdsgiveren:
( 1 bedømmelse ) Tampa, United States

Projekt ID: #16474916

## 19 freelancere byder i gennemsnit \$22 på dette job

wangbeizou

Hello. How are you . I have read and understood this task. I have strong knowledge in Data structures, Algorithms Design, Computer Architecture, Probability&Statistics. And I'm expert in Java, JavaFX etc. I Flere

\$50 USD in 2 dage
(108 bedømmelser)
6.0
usman1493

Hey A Java expert developer is here I have good advanced expertise in Java and Javafx I can write a program for you in Java as per your need Feel Free to message me Regards

\$25 USD in 0 dage
(117 bedømmelser)
6.1
Javagurupk

We are expert in Java and J2EE technologies and have completed numerous web/desktop projects and assignments. We have a total experience of more than eleven years in Java. Our skills and some of our completed projects Flere

\$20 USD in 0 dage
(62 bedømmelser)
5.5
mhortis

Hello, I am a senior Full-Stack Java developer and I have coped with several projects, both small and more complex ones. I have a very strong academic background in algorithms and complexity, information systems a Flere

\$30 USD på 1 dag
(25 bedømmelser)
5.6
devetar

As a full time java developer since 2010 I can help you with your project. It would be done in 24 hours.

\$30 USD på 1 dag
(51 bedømmelser)
5.0
ciastsamson

Hello, client. You project is very simple for me. I can develop it in 30 min. If you select me, I will send the result after 1 hour. Best regards.

\$15 USD på 1 dag
(14 bedømmelser)
4.2
micbassa75

I'm an expert java developer. I've been working with java for 15 years. I can do it quickly.

\$19 USD in 0 dage
(34 bedømmelser)
4.4
panjvirsingh

I would like to offer myself as a probable candidate for this assignment as I am confident of delivering a quality output. I have excellent expertise in this area. I have total 7 years or experience in web developme Flere

\$35 USD på 1 dag
(18 bedømmelser)
4.0
mehfuza

Dear Client, I have read and understood your project requirements and I'm very interested to work on it. I have implemented different types of programs in Java including file input output, data structure, algorithm and Flere

\$20 USD på 1 dag
(15 bedømmelser)
4.3

Having experience of java, I can do what you want. Java is my primary programming language. Let us discuss details in chat.

\$30 USD på 1 dag
(19 bedømmelser)
3.7
\$19 USD på 1 dag
(11 bedømmelser)
3.8
VnNorthStar

A proposal has not yet been provided

\$10 USD in 2 dage
(23 bedømmelser)
3.7
ksab

I can do the program as you have specified as a Java application run from the terminal using scanner as input. I AM sun Java certified and have done similar Java programs. Thanks

\$15 USD in 2 dage
(1 bedømmelse)
0.8
\$15 USD på 1 dag
(0 bedømmelser)
0.0
jimmycool

See i have worked on hidden markov models extensively and i can help you in your task.I am very thorough with operations research and java

\$25 USD på 1 dag
(0 bedømmelser)
0.0
andreimesi

Hello, I have great experience writing algorithms and desktop applications using Java SE so I am looking forward to the project you posted. I already started working on it and it should be done in about 15 minutes o Flere

\$10 USD in 0 dage
(0 bedømmelser)
0.0
navinlak

I am interested . please start chat with me. I am already having this program. please start chat with me

\$20 USD in 2 dage
(0 bedømmelser)
0.0
shandoo

Hi, I can do this fast as I have done similar project at faculty. I have experience in developing apps for mathematics purposes. Regards

\$20 USD på 1 dag
(0 bedømmelser)
0.0
cfischera

This is a pretty straightforward project. I am a new freelancer trying to get some CS experience under my belt. I would appreciate being awarded this project as an intro into work on this website. Feel free to contact Flere

\$10 USD på 1 dag
(0 bedømmelser)
0.0