Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

A Discovery One fine day while ploughing the fields, Farmer Arepo found a stone tablet with symbols carved on it... he knew such artifacts may

image text in transcribed

A Discovery One fine day while ploughing the fields, Farmer Arepo found a stone tablet with symbols carved on it... he knew such artifacts may show a message in four directions, so he wisely kept it and resumed turning the soil. He found more tablets, but with crops to sow he had no time to decipher them. Your Task Please help Farmer Arepo by inspecting each tablet to discern whether or not it shows a Sator Square! The Square - is a two-dimentional palindrome (made from words of equal length) - observes four symmetries: identity, 180-degree rotation, and two diagonal reflections - can be read: - left-to-right (across) - top-to-bottom (down) - bottom-to-top (up) - right-to-left (reverse) - can be rotated 180 degrees and all words still read in all directions - is exemplified here in how to read a word ("TUBA") in the four ways: Some Details - tablet (square) dimensions range should be at least 22 - characters range from ascii ordinals/code 33 to 126 inclusive See more reference: https://en.wikipedia.org/wiki/Sator_Square Please write a class SatorSquare and create necessary methods to complete the task. Member Variables int n// length of each word (2

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

Pro PowerShell For Database Developers

Authors: Bryan P Cafferky

1st Edition

1484205413, 9781484205419

More Books

Students also viewed these Databases questions

Question

=+7 How has the COVID-19 pandemic impacted the operations of IHRM?

Answered: 1 week ago