Ascii Help Pls Fast ! :( - ASCII HELP PLS FAST !! :(

free web hosting
Open Discussion > CONTRIBUTE > Computers > Programming Languages > Java, Java Servlets, Java Script, & JSP

Ascii Help Pls Fast ! :( - ASCII HELP PLS FAST !! :(

scan06disk
hi guys,

i really want to know how to make a ASCII table like this.

QUOTE
0 1 2 3 4 5 6 7 8 9
30 ! " # $ % & '
40 ( ) * + , - . / 0 1
50 2 3 4 5 6 7 8 9 : ;
60 < = > ? @ A B C D E
70 F G H I J K L M N O
80 P Q R S T U V W X Y
90 Z [ \ ]^ _ ` a b c
100 d e f g h i j k l m
110 n o p q r s t u v w
120 x y z { | } ~ ? ?


rows and cloumns.



this is what i have done so far

CODE
public class DisplayChars {

    public static void main(String[] args) {
        int value;
        for (int j=0; j<= 9; j += 1)
        System.out.print("\t" + j);

         for (int i = 30; i <= 120; i+= 10) {
         value = ((char)i);
         System.out.print("\n" + i + "\t" +(char)i);                                                                                        
         }
    }

}


and i cant get the ASCII characters to line up. sad.gif

Notice from truefusion:
Please use edit feature instead of double posting. Thank you.

 

 

 


Reply

hitmanblood
Well you should explain it better or at least provide the assignments statement here.

But you haven't so I tried to firgure out what actually you want to do and I wrote small code it would be cool if you would explain what is wrong so I could help you further if this is not satisfactory also I would like to say that you may contact me via personal message if I am not fast enough to answer your inquiry and please include link to the topic.

Here is the code:

CODE
public class displayChars {

    public static void main(String[] args) {

        int counter = 0;
        int starter = 32;

        for(int i = 0; i <= 9; i++){

            System.out.print(i + "0" + " ");

            for(int j = 0; j < 10; j++){

                System.out.print((char)(counter + starter) + " ");
                counter++;

            }

            System.out.println();

        }


    }

}

 

 

 


Reply

scan06disk
oh thank you very much but i left it for the last minute hehe, so what i wanted to do was to align it as follows
i wanted to align each value for example 33 is ! so 0 1 2 3 is top row and side is the well you probably get it hehe, Thank you very much biggrin.gif
eg.

0 1 2 3
30 !
40
50

Cheers
Scan biggrin.gif

Reply

hitmanblood
QUOTE(scan06disk @ May 14 2007, 11:40 AM) *
oh thank you very much but i left it for the last minute hehe, so what i wanted to do was to align it as follows
i wanted to align each value for example 33 is ! so 0 1 2 3 is top row and side is the well you probably get it hehe, Thank you very much biggrin.gif
eg.

0 1 2 3
30 !
40
50


I am sorry to say that I don't see correlation between 33 and 0123456789 because every character in ascii table has it sown place and by that every character has his uniqe number following that no numbers are correlated to the 33 except only one.

But if you wanted to do it like the in the first raw numbers from 0 till nine and in the first column numbers from the 30 till 120 then write in each of these intersections related number I will do it for you in some hour time because now I have training which I have to attend.

Reply

scan06disk
Hi hitman,

hmm... well its like a table with all multiples of ten in the left column and the preceding numbers on the top row

30
40
50
0 1 2 3

means 0 =30 u know like multiplication tables this multi that but in this case 0 = to that left column number (30, 40,50...)
as for 0123 1=31,41,51...... so the table in between displays the ASCII value of 31 32 33 below 0 1 2 3 in line with 30 left column.

THANK YOU VERY VERY MUCH for all your help!!
scan biggrin.gif

Reply

hitmanblood
OK here is your solution I will explain it firstly in few words.

I declared first two variables which will be used in the program later on in the code then I added several blank spaces so that table looks nice so that it would have ordered columns and raws.

Then I printed the first raw in the first for loop. And later on moved pointer to the new line. Then I used two for loops one in the other which made one for the columns that is the first one and second for the raws. So first loop is looping trough columns pointer is switched to the new line at the end of each cycle. Then there are if statements that is only one if else statemnet which determines whther it is three decimal number or two and if it is two then it adds one more blank space and if it is three decimal then it adds only one. I did this to keep the order of the raws and columns.

Then there is second or inner for loop which loops trough the raws and by making this it is in fact writing out characters.

I also had in mind to correct it so you wouldn't see the last two question marks but as you had them in your example table I though that this is not needed.

Good luck with your project hopefully I was helpful.

CODE
public class helptest {

    public static void main(String[] args) {

        int counter = 0;
        int starter = 30;

        System.out.print("    ");

        for(int i = 0; i <= 9; i++){

            System.out.print(i + " ");

        }

        System.out.println();

        for(int i = 3; i <= 12; i++){

            if(i >= 10){

                System.out.print(i + "0 ");

            }else{

                System.out.print(i + "0  ");

            }

            for(int j = 0; j < 10; j++){

                System.out.print((char)(starter + counter) + " ");

                counter++;

            }

            System.out.println();

        }


    }

}

Reply

scan06disk
Hi hitmanblood,


AWE MAN thx for taking your time just to do this, ITS PERFECT JUST WHAT I WANTED biggrin.gif biggrin.gif

Have a Great Day !

Cheers !!
Scan

Reply

v36rox
QUOTE(scan06disk @ May 15 2007, 09:37 AM) *
Hi hitmanblood,
AWE MAN thx for taking your time just to do this, ITS PERFECT JUST WHAT I WANTED biggrin.gif biggrin.gif

Have a Great Day !

Cheers !!
Scan


hey just to let you know there is a really neet program that converts any picture to ascii.
right here if u want http://www.lennybacon.com/image2ascii/
i converted some huge pictures and impressed my friends lol
one actually believed i made it all manually lol smile.gif smile.gif
sad.gif smile.gif mad.gif rolleyes.gif dry.gif laugh.gif biggrin.gif wink.gif ohmy.gif huh.gif tongue.gif

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.

Similar Topics

Keywords : ascii, pls, fast, ascii, pls, fast,

  1. Cash Lagoon
    Fast & Easy Money Online! (2)
  2. Suspended Account
    I need help and fast (1)
    My account was recently suspended because my hosting credits went below 0.00 days, this was totally
    unintentional because i was away and didn't have access to a computer. It was a family issue.
    Anyways i posted in the forums and my hosting credits are now 6.34 days, but when i try to log into
    the c-panel it doesn't want to enter. It doesn't say anything about an error, the page
    simply doesn't load. I don't know what the problem is and i want to use the same sub domain.
    what should i do. do my credit have to go up to a certain number or what exactly is....
  3. Speedtest - How Fast Do You Think Your Network Is
    ISP Battle Royal! (10)
    We can all say "Oh my ISP is the fastest", but lets let Speedtest prove that, shall we? Simple go
    to Speedtest.net and click a location to link to. Best to do the recommended server(Yellow
    Pyramid). Wait a few seconds while it tests your connect upload/download speeds. And you should come
    up with a result like this; Lets see who can beat THAT! /smile.gif"
    style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />.....
  4. How To Get Skin Like A Japanese Girl.
    How to get rid of acne fast and natural! :wub: (10)
    You can get skin smooth as... as... well, I don't know how smooth but it'll make your skin
    nice and acne-free! /tongue.gif" style="vertical-align:middle" emoid=":P" border="0"
    alt="tongue.gif" /> OK! So I bet YOU are wondering how all Japanese girls never in their
    whole life get a pimple. Well, it is not really their genetics that much. Its.... (Drumroll)
    Camellia Oil! No, not Cammomile! Camellia. Most people have not heard of it. It is a secret
    passed down generation to generation by Japanese Women. I should know. I'm a Japanese Girl. ....
  5. How To Keep Your Pc Fast And Safe
    (3)
    Well guys, this is maybe a really basic tutorial that everybody knows, but I just thinking to share
    it here as maybe not everybody in this forum know about it (correct me if I'm wrong LOL). Ok,
    lets start it out. Defrag Your Harddisk(s) Frequency : weekly/monthly Defragging your harddisk
    makes access to files faster. Do regular defrag to get maximum performance of your harddisk.
    Personally, I don't recommend defragging using Windows' default disk defragmenter, try using
    program such as Defraggler, JKDefrag, or etc. (Defraggler is my favourite!) Tweak....
  6. How Fast Is Your Internet?
    Please let me know how fast is your connection (25)
    Hi, I just want to know how fast is your current connection speed, please provide your country or
    city you are resided to and price you pay per month or per year (if per month is not applicable).
    To start it, I'll share mine. I'm on 768 kbps download and around 100-120 kbps upload. I
    live in Indonesia, Jakarta. I pay around $32 per month (converted currency from IDR to USD).
    Please share yours, thank you. /rolleyes.gif" style="vertical-align:middle" emoid=":rolleyes:"
    border="0" alt="rolleyes.gif" />....
  7. Html Ascii Codes - A Complete List
    downloadable php file (3)
    I was often frustrated at how, despite there being thousands of ASCII "special characters" such as
    &8659; , websites that claimed to list them all only listed the first 256. To combat this issue,
    I have created a table which lists the first 10,001 - from &#000; to &10000; I am sure
    there are many more but it is simply not feasible to create a table with many more rows as viewing
    it would put terrific strain on the browser.! You can download the file in two forms. One uses
    PHP to dynamically create the table (1KB), the other has it ready-made in pure HT....
  8. Points Went Down Really Fast.
    (4)
    I logged back on today, and it said I had almost -5 points, and my account was suspended. I
    remember that the last time I posted, I had about 5 points, and I just checked, and my last post was
    two days ago. I stopped when I only had about 5 points because it was late and I was starting to get
    tired. It should have only gone down to 3 by today, and I should have been able to post to get my
    points back up. How did my points go down by almost 10 in two days? I think it might be possible
    that when it got below 4 it automatically went negative, and started counting down fr....
  9. Google Adsense
    Easy To use yet fast growing online PPC network (6)
    ou have probably heard a lot about Google Adsense but you may not know what it is. Well, one thing
    for sure, it’s one of the hottest way to make money online if you own a website. You can add Google
    Adsense to your blog. Google Adsense is a fast and absolutely easy way for people with websites of
    all types and sizes to put up and display relevant ads on the content pages of their sites and make
    money online. Because Google Adsense ads relates to what your visitors came to your site to read
    about, or because the ads match up to the interest and the characteristics to th....
  10. Fast Food Secrets
    Things you probably dont what to know (13)
    QUOTE More than 60% of the restaurants had what experts refer to as "critical violations," which
    are benchmarks for judging a restaurant's cleanliness. Critical violations can fuel food-borne
    illnesses (such as salmonella) and, aside from that, are just nasty. The most common violations in
    fast-food chains? Employees not washing their hands (in some chains, there was no soap in the
    bathrooms), improper food holding temperatures, undercooked meat, and employees handling food with
    their bare hands. Fast-food meals contain common food allergy ingredients, but they....
  11. Fast Windows Fixes For Windows Xp And Vista
    (2)
    Well if thought hte software portion of getting a faster computer wasn't challanging enough how
    about getting your hands and keyboard dirty with these fixes that actually get to the root of the
    operating system. WARNING: Make sure you know what you doing or you might end up
    reinstalling your operating system if you do something wrong by not following the directions they
    give for these tweaks. Situation Starting windows: QUOTE Fast Fix 1: Your computer
    could be loading device drivers for hardware you no longer use. To save on system reso....
  12. Getting Listed On Google Fast
    (2)
    This is my own experience on how to get listed on google.First you must know is that you will need a
    free directory list where you will choose the best PR rated Directory.I have beed using PR5-PR6
    Directories.Make a list of Keywords for you website.Try to find the best keyword because it is very
    important to have good keyword if you want to become first on google and other search engine
    secondly, you will make a brief description of you website of about 40 word and thirdly you will
    need some place on your website so as to put reciprocal link.Now here we are, You gather a....
  13. Advice On Falling In Love Fast And Then Ending It
    I need help. (6)
    Hey, I need a bit of advice/help.... Im dating this girl.. but we barely ever see eachother, Last
    time i seen her was about 2 and a half weeks ago. She lives on the other side of town, obviously
    goes to a different school than me, and weve only hung out one time in 3 weeks of dating. Im
    supposed to hang out with her this weekend, with people... But im not sure. This is were it really
    gets stupid.. Ive only known this girl for a month. And a week after knowing her i asked her out.
    Love at first sight kinda thing? /tongue.gif" style="vertical-align:middle" emoid=":P" bo....
  14. Fast Cars
    (3)
    this is what the mclarean has QUOTE The McLaren F1 is capable of 0 to 60 mph in 3.2 seconds and
    a top speed in excess of 240 mph. This makes it the fastest production car in the world. During
    development work, McLaren driver Jonathan Palmer drove F1 prototype XP3 around Italy's 7.5 mile
    Nardo test track at 231 mph. But for the tight nature of the track, the car could have gone even
    faster. Early in 1998 this record was broken at Volkswagen's test track with a recorded speed of
    241 mph. Powering the McLaren is a quad cam, 48-valve, 6.1-litre BMW V12 engine ....
  15. Going On Vacation! Need Credits Fast!
    I'm not sure if I should be doing this, but I totally forgot I' (3)
    I'm going for my summer vacation tomorrow and totally forgot that I don't have sufficent
    credits to keep my account up. I will be leaving tomorrow, but I will try to get a amount of credits
    before I leave. I will be gone for about a month, about 28 days or something. I should have got a
    lot of credits before I left, I know, but I forgot that I didn't have many left. I may not get
    access to Internet to where I'm going and thats why it is a problem. Any help, by giving me some
    credits, would be appreciated. Thanks!....
  16. How To Use Fast User Switching In Windows Xp
    I Cant Log In Normally (7)
    When I try to switch it to normally logging in on the Control Panal a popup says Client Services
    from NetWare has disabled fast and normal user switching you must uninstall to enable these options.
    How do I fix this. I cant seem to find the file to delete it Topic title must be very specific.
    Modified and moved to OS section. ....
  17. What Is An Ascii Artist?
    (20)
    Well I was looking at my bullitens on myspace, and I found someone posted something pretty
    impressive. It was an ASCII Jesus. Here is what it looked like: QUOTE
    ********************************* *?????????¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶????? *???????1¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶????
    *??????¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶??? *?????o¶¶¶¶¶¶¶$???????ø¶¶¶¶¶¶?? *?????¶¶¶¶¶¶?????????????ø¶¶¶¶?
    *????¶¶¶¶¶¶???????????????o¶¶¶? *???¶¶¶¶¶¶¢????????????????$¶¶?
    *???¶¶¶¶¶ø?ø¶$¶¶¶ø?????????1¶¶1 *??o¶¶¶¶¶?1o¶¶¶¶¶???1¶¶ø¢o$?¶¶¶
    *??¶¶¶¶¶?????7o71???¶¶øø$1?¶¶¶ø *?$¶¶¶¶¶o???????????¶....
  18. Way Of The Samurai
    fast growing runescape pure clan (6)
    RE-OPENING!!!!! JOIN NOW Welcome to Way of the Samurai. We are a new pure
    clan that wants to be a fun and very active environment that everyone will want to be a part of. Our
    main goal is to have A LOT OF FUN and become ranked in the top 5 pure clans along the way. To do
    this we must have very active members. WOTS FORUM ( Runehead coming soon ) We want members
    that will be very active and respectful. Being active doesn't just mean on runescape, but on the
    forums too. We are an F2P based clan,(may be becoming P2P also) with most of the ....
  19. Fdm Are Great Download Manager...
    Free Download Manager great and fast ... (0)
    Are you find a best download manager....there are many choice for us but Free download manager is
    best...why ??? as example we compare it with DAM-download Acceletor manager << it contain bad
    advertisement pop up on the program..it also make conection slowly...compare with FDM ...the
    interfaces are cleaned..and it realy powerful.......
  20. Which Is The Best Browser, That Downloads Stuff Fast And Surfs Fast?
    (11)
    Which is the BEST browser, That downloads stuff fast and surfs fast? Casue I HATE FIREFOX AND IE7....
  21. Wow Power Leveling
    How some people get level 30 soo fast?? You can find here (7)
    QUOTE Hello WoW Freaks If you wnat to know how some peoples get level 30 soo fast, i can tell
    you that here Read informations and you will be level 30 very quick...
    ---------------------------------------------------------------------------------- First get level
    21, it is easy, you just need to do few starting quests. Chapter I (21-30) - Journey from the
    Barrens to the Thousand Needles Introduction This guide starts at level 21. However I strongly
    recommend you follow Hosho's Barrens leveling guide as soon as you hit level 13. That's one
    level higher th....
  22. Ascii-o-matic
    Convert any picture into Ascii art! (2)
    I found this cool site while surfing around the internet today! Converts any picture of a
    suitable size into ascii art. I'm thinking of putting it in my signature, will make for a
    really unique one. http://www.typorganism.com/asciiomatic/ ....
  23. Speed Up Your Internet Explorer Fast As Firefox
    Internet Explorer isn't slow (17)
    This is s little tip that you can make your Internet Explorer browser can run fast as Firefox
    browser. You can make it by following the step by step below step 1: first you go to start menu
    and then choose run. step2: After you choose run,it appears a little box,then you can type regedit.
    step3:Find the key that you need by following this HKEY_CURRENT_USER \ Software \
    Microsoft \ Windows \ CurrentVersion \ InternetSettings step4:On the right box,right
    click and choose new ,then continue choose DWORD Value step5:type into the box : MaxConnec....
  24. How Do I Make Gold Fast In Runescape/
    (127)
    OK i have been playin for liken 4 years and i still can't get alot of gp. the mosti have had in
    that time is like 10k and i have googled cheat codes and all that stuff and nothing works so any
    ideas are welcome.....
  25. Super-fast Start And Shutdown Windows (within Seconds)
    hibernate instead of shut down (25)
    I just wanted to share this tip for all those guyz who hate to wait for windows to boot up and load
    into memory.. And not only that, after booting, it starts loading all the startup programs into
    memory. If you are also fed up doing this, You can use the HIBERNATE option. :-) All you have
    to do is, configure your PC to use HIBERNATE instead of SHUTDOWN. About Hibernation, QUOTE
    Hibernation is a state in which your computer shuts down to save power but first saves everything in
    memory on your hard disk. When you restart the computer, your desktop is restore....
  26. How To Make Your Pc Work Faster
    get your pc working unbelievably fast in 5 minutes !! (16)
    Here you can find useful tips you can do to make your pc work faster in a few minutes , just follow
    these tips and you will definitely have a much faster and more reliable PC! QUOTE 1.
    Wallpapers: They slow your whole system down, so if you're willing to compromise, have a basic
    plain one instead! 2. Minimizing: If you want to use several programs at the same time then
    minimize those you are not using. This helps reduce the overload on RAM. 3. Boot Faster: The
    'starting Windows 9x , xp' message on startup can delay your booting for a couple ....
  27. How Fast Can You Type The Alphabet?
    Warning: addictive. (64)
    http://www.morpheme.co.uk/frenzy/ - This game is very addictive for me, but it is good practice
    for knowing where all the letters are if you are not that great at typing. Also if you have a chance
    check out the video section they have, there are 3 videos I think but the people are really fast at
    typing the alphabet. - My record was 4.207 I could probaly get faster but I put alot of time doing
    this nd dont want to get too addicted to it. - Post your times heres.....
  28. ----> Boot Winxp Fast <----
    Fast booting winXP (12)
    So here we go follow the steps below. CODE 1. Open notepad.exe, type "del
    c:\windows\prefetch\ntosboot-*.* /q" (without the quotes) & save as
    "ntosboot.bat" in c:\ 2. From the Start menu, select "Run..." & type
    "gpedit.msc". 3. Double click "Windows Settings" under "Computer
    Configuration" and double click again on "Shutdown" in the right window. 4. In the new
    window, click "add", "Browse", locate your "ntosboot.bat" file & click
    "Open". 5. C....
  29. How Can I Make Some Many Fast?
    Into my PayPal account. (17)
    Alright, so I'm 14 and I don't have much money. My mother refused to purchase me anything
    else, so I'm stuck in a hole. I need money to pay for my domain (subzer0.net) and I plan on
    buying a new domain because I am currently working on a message board source code that I want to
    host there. With this domain, I want some Bihira hosting. The total yearly cost would be 39
    dollars, which isn't that much, however I don't have any money in my PayPal account. How
    can I make some money fast?....
  30. How Fast Is Your Internet Connection?
    (182)
    I live in Taiwan My internet connection is ADLS(8M/640K) what is your internet connection....

    1. Looking for ascii, pls, fast, ascii, pls, fast,

*RANDOM STUFF*





*SIMILAR VIDEOS*
Searching Video's for ascii, pls, fast, ascii, pls, fast,

*MORE FROM TRAP17.COM*
Similar
Cash Lagoon - Fast & Easy Money Online!
Suspended Account - I need help and fast
Speedtest - How Fast Do You Think Your Network Is - ISP Battle Royal!
How To Get Skin Like A Japanese Girl. - How to get rid of acne fast and natural! :wub:
How To Keep Your Pc Fast And Safe
How Fast Is Your Internet? - Please let me know how fast is your connection
Html Ascii Codes - A Complete List - downloadable php file
Points Went Down Really Fast.
Google Adsense - Easy To use yet fast growing online PPC network
Fast Food Secrets - Things you probably dont what to know
Fast Windows Fixes For Windows Xp And Vista
Getting Listed On Google Fast
Advice On Falling In Love Fast And Then Ending It - I need help.
Fast Cars
Going On Vacation! Need Credits Fast! - I'm not sure if I should be doing this, but I totally forgot I'
How To Use Fast User Switching In Windows Xp - I Cant Log In Normally
What Is An Ascii Artist?
Way Of The Samurai - fast growing runescape pure clan
Fdm Are Great Download Manager... - Free Download Manager great and fast ...
Which Is The Best Browser, That Downloads Stuff Fast And Surfs Fast?
Wow Power Leveling - How some people get level 30 soo fast?? You can find here
Ascii-o-matic - Convert any picture into Ascii art!
Speed Up Your Internet Explorer Fast As Firefox - Internet Explorer isn't slow
How Do I Make Gold Fast In Runescape/
Super-fast Start And Shutdown Windows (within Seconds) - hibernate instead of shut down
How To Make Your Pc Work Faster - get your pc working unbelievably fast in 5 minutes !!
How Fast Can You Type The Alphabet? - Warning: addictive.
----> Boot Winxp Fast <---- - Fast booting winXP
How Can I Make Some Many Fast? - Into my PayPal account.
How Fast Is Your Internet Connection?
advertisement



Ascii Help Pls Fast ! :( - ASCII HELP PLS FAST !! :(



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute your information that might help someone here.
Ask your Doubts & Queries to get answers.. "Together, We enlight each other!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE