Answered step by step
Verified Expert Solution
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
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started