Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
All:
I have had an idea since my sophmore year in highschool that I have never been able to get very far with. The idea is to graphically see similarities in numbers. The idea is to create a square spiral outward where you either print the number if the number has a given property or leave it empty if it doesn't. You can do this on transparencies so that you can overlap different properties to see similarities.

For instance even numbers where A=10, B=11, C=12:

789A
612B
543C

will yield

 x x
x x 
 x x

You can do this for all sorts of properties (prime, even, odd, square, triangular number, etc). My problem is figuring out how to be able to go very high with my numbers. I want to be able for the program to be able to figure out how many rectangular pieces of paper/transparencies are needed to have a square centered in it and what to print on each page so that they can be taped together after.

I only have very poorly written QBasic code that shows how I created the spiral back then and I don't have the first clue as to how to convert QBasic's locate to Perl or how to be able to spread the output correctly onto multiple pages.

Any ideas would be greatly appreciated.

Cheers - L~R


In reply to Formatting output for multi-page print by Limbic~Region

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2024-04-25 12:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found