Create a flow chart and identify a list of modules

Assignment Help JAVA Programming
Reference no: EM132077734

Need help make a flow chart for Magic square in Java.(if not on computer than anything hand drawn which kind of gives an idea pls)

An n x n matrix that is filled with the whole numbers 1, 2, 3, .. n2 is a magic square if the sum of the elements in each row, in each column, and in the two diagonals is the same value. Here is a magic square where n = 3:

8 1 6

3 5 7

4 9 2

Need a flow chart for program that reads n2 numbers from standard input and tests whether they form a magic square when put into matrix form. The value of n is NOT an input to the program; n must be determined from the number of inputs.

For example, the input that creates the example matrix above is 8 1 6 3 5 7 4 9 2.

The output is a single word, "true" if the input produces a magic square, "false" otherwise. Your program may assume that each input token is a whole number. The program must verify:

1. The proper number of input values was provided.

2. Each of the numbers between 1 and n2 occurs exactly once in the input.

3. When the numbers are arranged in a matrix, • the sum of the rows, • columns, • and diagonals must be the same value.

Create a flow chart and identify a list of modules/functions/methods and data structures required for implementation in Java.

Reference no: EM132077734

Questions Cloud

Why does monthly payment plan have less total cash outflow : Sam Hinds, a local dentist, is going to remodel the dental reception area and add two new workstations. He has contacted A-Dec, and the new equipment.
Population will be decreasing at a rate : The world's population1 is about f(t) = 6.91e^0.011t billion, where t is time in years since 2010. Find f(0), f ' (0), f(8), and f ' (8). Using units
Write a script called project4 in which you assign : Write a script called project4 in which you assign an integer number to a variable. Assign the value of that number multiplied by itself to a variable.
How do you find the initial cash flows : Sambuka, Inc., can issue bonds either in U.S dollars or in Swiss francs. Dollar- denominated bonds would have a coupon rate of 15 percent.
Create a flow chart and identify a list of modules : Create a flow chart and identify a list of modules/functions/methods and data structures required for implementation in Java.
Find a connected graph that has two spanning trees : Find a connected graph G(V, E) that has two spanning trees T1 and T2 such that any sequence of swaps of edges which transform T1 into T2
Determining the appropriate information and points : Sketch the graph of the given function by determining the appropriate information and points from the first and second derivatives. Use a graphing
What elements must sam prove for security fraud : Sam wants to sue Resolute Inc for securities fraud. What elements must Sam prove in order to establish a case for security fraud? The response must be typed.
How much would the value of samsung increase : Samsung currently has no debt and a cost of equity of 25%. They are thinking about issuing debt to buy back some of their equity.

Reviews

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd