Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.help > #2607 > unrolled thread
| Started by | alex rodriguez <dralex73@gmail.com> |
|---|---|
| First post | 2013-03-20 10:34 -0700 |
| Last post | 2013-03-22 13:44 -0700 |
| Articles | 6 — 3 participants |
Back to article view | Back to comp.lang.java.help
How do you print to standard output letters letters of 9 lines tall using characters of your choosing? alex rodriguez <dralex73@gmail.com> - 2013-03-20 10:34 -0700
Re: How do you print to standard output letters letters of 9 lines tall using characters of your choosing? Lew <lewbloch@gmail.com> - 2013-03-20 12:18 -0700
Re: How do you print to standard output letters letters of 9 lines tall using characters of your choosing? Roedy Green <see_website@mindprod.com.invalid> - 2013-03-20 20:23 -0700
Re: How do you print to standard output letters letters of 9 lines tall using characters of your choosing? alex rodriguez <dralex73@gmail.com> - 2013-03-22 03:49 -0700
Re: How do you print to standard output letters letters of 9 lines tall using characters of your choosing? alex rodriguez <dralex73@gmail.com> - 2013-03-22 03:58 -0700
Re: How do you print to standard output letters letters of 9 lines tall using characters of your choosing? Lew <lewbloch@gmail.com> - 2013-03-22 13:44 -0700
| From | alex rodriguez <dralex73@gmail.com> |
|---|---|
| Date | 2013-03-20 10:34 -0700 |
| Subject | How do you print to standard output letters letters of 9 lines tall using characters of your choosing? |
| Message-ID | <760ab6c0-6f23-424d-9b6f-c8bf30c65a6a@googlegroups.com> |
Hi, I am trying to solve the following problem. I would like to use the following program which takes an input of initials of somebody's name and displays them to standard output and extend this to output the initials to nine lines tall using characters of my choosing an example character could be "*". Does Java have a function that performs the operation of enlarging the standard output using characters of a persons choosing? Or Can someone write some simple code that a novice could understand to perform a similar function?
----------------------------------------------------------
/**
* This program will print your initials to standard output that are nine
*lines tall. Each letter will be made up of *'s. This file requires the
*TextIO file to work. The TextIO file is available for viewing here:
*http://math.hws.edu/eck/cs124/javanotes4/source/TextIO.java
*/
public class Initials {
static String userInput; //string declaration
public static void main(String[] args) {
System.out.print("Please type in your Initials: ");
userInput = TextIO.getWord();
System.out.print("Your initials are ");
System.out.print(userInput);
} // end of main()
} // end of class Initials
-----------------------------------------------------------
Cheers,
Alex
[toc] | [next] | [standalone]
| From | Lew <lewbloch@gmail.com> |
|---|---|
| Date | 2013-03-20 12:18 -0700 |
| Message-ID | <fa2a200c-f2e5-49a0-bbc6-2ec4280a31e9@googlegroups.com> |
| In reply to | #2607 |
On Wednesday, March 20, 2013 10:34:56 AM UTC-7, alex rodriguez wrote: > Hi, I am trying to solve the following problem. I would like to use the following program which takes > an input of initials of somebody's name and displays them to standard output and extend this to output > the initials to nine lines tall using characters of my choosing an example character could be "*". Does > Java have a function that performs the operation of enlarging the standard output using characters of a > persons choosing? Or Can someone write some simple code that a novice could understand to perform > a similar function? No, the point of the homework assignment is for you to solve that exact part of the problem. Read this: http://www.patriciashanahan.com/beginner.html -- Lew
[toc] | [prev] | [next] | [standalone]
| From | Roedy Green <see_website@mindprod.com.invalid> |
|---|---|
| Date | 2013-03-20 20:23 -0700 |
| Message-ID | <n9vkk8h8t6lcgf1avmd842epommoti26fr@4ax.com> |
| In reply to | #2607 |
On Wed, 20 Mar 2013 10:34:56 -0700 (PDT), alex rodriguez <dralex73@gmail.com> wrote, quoted or indirectly quoted someone who said : >Hi, I am trying to solve the following problem. I would like to use the fol= >lowing program which takes an input of initials of somebody's name and disp= >lays them to standard output and extend this to output the initials to nine= > lines tall using characters of my choosing an example character could be "= >*". Does Java have a function that performs the operation of enlarging the = >standard output using characters of a persons choosing? Or Can someone writ= >e some simple code that a novice could understand to perform a similar func= >tion? see http://mindprod.com/jgloss/printing.html -- Roedy Green Canadian Mind Products http://mindprod.com Every method you use to prevent or find bugs leaves a residue of subtler bugs against which those methods are ineffectual. ~ Bruce Beizer Pesticide Paradox
[toc] | [prev] | [next] | [standalone]
| From | alex rodriguez <dralex73@gmail.com> |
|---|---|
| Date | 2013-03-22 03:49 -0700 |
| Message-ID | <8847e74b-ef7c-4c46-9079-23b809713be2@googlegroups.com> |
| In reply to | #2607 |
On Thursday, March 21, 2013 4:34:56 AM UTC+11, alex rodriguez wrote:
> Hi, I am trying to solve the following problem. I would like to use the following program which takes an input of initials of somebody's name and displays them to standard output and extend this to output the initials to nine lines tall using characters of my choosing an example character could be "*". Does Java have a function that performs the operation of enlarging the standard output using characters of a persons choosing? Or Can someone write some simple code that a novice could understand to perform a similar function?
>
>
>
> ----------------------------------------------------------
>
To Lew, I am not doing a particular course this is just for my own experimentation and learning. Though you help is noted. Cheers, Alex.
> /**
>
> * This program will print your initials to standard output that are nine
>
> *lines tall. Each letter will be made up of *'s. This file requires the
>
> *TextIO file to work. The TextIO file is available for viewing here:
>
> *http://math.hws.edu/eck/cs124/javanotes4/source/TextIO.java
>
> */
>
>
>
>
>
>
>
> public class Initials {
>
>
>
>
>
> static String userInput; //string declaration
>
>
>
> public static void main(String[] args) {
>
>
>
> System.out.print("Please type in your Initials: ");
>
> userInput = TextIO.getWord();
>
> System.out.print("Your initials are ");
>
> System.out.print(userInput);
>
>
>
>
>
>
>
> } // end of main()
>
>
>
> } // end of class Initials
>
> -----------------------------------------------------------
>
>
>
> Cheers,
>
>
>
> Alex
[toc] | [prev] | [next] | [standalone]
| From | alex rodriguez <dralex73@gmail.com> |
|---|---|
| Date | 2013-03-22 03:58 -0700 |
| Message-ID | <0f08a9eb-abb1-4d61-98af-b11b7cd1a90a@googlegroups.com> |
| In reply to | #2607 |
On Thursday, March 21, 2013 4:34:56 AM UTC+11, alex rodriguez wrote:
> Hi, I am trying to solve the following problem. I would like to use the following program which takes an input of initials of somebody's name and displays them to standard output and extend this to output the initials to nine lines tall using characters of my choosing an example character could be "*". Does Java have a function that performs the operation of enlarging the standard output using characters of a persons choosing? Or Can someone write some simple code that a novice could understand to perform a similar function?
>
>
>
> ----------------------------------------------------------
>
> /**
>
> * This program will print your initials to standard output that are nine
>
> *lines tall. Each letter will be made up of *'s. This file requires the
>
> *TextIO file to work. The TextIO file is available for viewing here:
>
> *http://math.hws.edu/eck/cs124/javanotes4/source/TextIO.java
>
> */
>
>
>
>
>
>
>
> public class Initials {
>
>
>
>
>
> static String userInput; //string declaration
>
>
>
> public static void main(String[] args) {
>
>
>
> System.out.print("Please type in your Initials: ");
>
> userInput = TextIO.getWord();
>
> System.out.print("Your initials are ");
>
> System.out.print(userInput);
>
>
>
>
>
>
>
> } // end of main()
>
>
>
> } // end of class Initials
>
> -----------------------------------------------------------
>
>
>
> Cheers,
>
>
>
> Alex
Thanks Lew, I am not doing homework this is for my own experimentation and learning. Though your help is noted. I will read that link.
Thanks Roedy, I will look at that link.
[toc] | [prev] | [next] | [standalone]
| From | Lew <lewbloch@gmail.com> |
|---|---|
| Date | 2013-03-22 13:44 -0700 |
| Message-ID | <815f3c51-d219-4704-a57a-eec169e0112f@googlegroups.com> |
| In reply to | #2617 |
alex rodriguez wrote: > alex rodriguez wrote: >> Hi, I am trying to solve the following problem. I would like to use the following program which takes an input of initials of somebody's name and displays them to standard output and extend this to output the initials to nine lines tall using characters of my choosing an example character could be "*". Does Java have a function that performs the operation of enlarging the standard output using characters of a persons choosing? Or Can someone write some simple code that a novice could understand to perform a similar function? > ... > > *http://math.hws.edu/eck/cs124/javanotes4/source/TextIO.java It was the above link that made me believe your question pertained to the CS-124 course curriculum. > Thanks Lew, I am not doing homework this is for my own experimentation and learning. Though your help is noted. I will read that link. Regardless of that, the exercise is clearly constructed as a homework exercise. You should understand it in those terms, under which it is not going to ask you something that is in the standard library because, as I said, the entire point of the exercise is to have you work it out for yourself. The fact that you personally were not assigned that homework assignment by a teacher in a university has not a jot of impact on what the designers of the problem had in mind. So, no, you aren't going to find the answer already coded for you in the java.** or javax.** hierarchies. The whole point is for you to reason through the problem using what is in the standard library. The link at Patricia Shanahan's site holds thoughtful and useful advice on how you would go about reasoning through such a problem. -- Lew
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.java.help
csiph-web