Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please using Vector and command line to input the file We consider only square puzzles. Puzzles that have a number of entries that is a

Please using Vector and command line to input the file
We consider only square puzzles. Puzzles that have a number of entries that is a perfect square
are processed and displayed; puzzles that do not have a number of entries that is a perfect square
are rejected. Pro tip: read the entire file into a vector of characters, then check the size. If its a
perfect square, create your square table (a two-dimensional array) and copy the values
(converting from char to the associated integer value) from the vector into the table.
For example, the input file to the left would be displayed as the puzzle to the right.
A 3 B -10311
12341234
C A F E 12101514
0-2 C 0212
This conversion of char to int will be of great use to us in the next unit, when we explore how
recursion can be used to solve number puzzles such as Sudoku and Numbrix and Magic Square.
For the purposes of the homework, any value can be used in any size (but still square) puzzle.
DELIVERABLES:
Your Java source code

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Making Databases Work The Pragmatic Wisdom Of Michael Stonebraker

Authors: Michael L. Brodie

1st Edition

1947487167, 978-1947487161

More Books

Students also viewed these Databases questions