Discussion:
How do you print to standard output letters letters of 9 lines tall using characters of your choosing?
(too old to reply)
alex rodriguez
2013-03-20 17:34:56 UTC
Permalink
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
Lew
2013-03-20 19:18:11 UTC
Permalink
Post by alex rodriguez
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
Roedy Green
2013-03-21 03:23:45 UTC
Permalink
On Wed, 20 Mar 2013 10:34:56 -0700 (PDT), alex rodriguez
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
alex rodriguez
2013-03-22 10:49:12 UTC
Permalink
Post by alex rodriguez
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.
Post by alex rodriguez
/**
* 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
*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
alex rodriguez
2013-03-22 10:58:18 UTC
Permalink
Post by alex rodriguez
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
*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.
Lew
2013-03-22 20:44:05 UTC
Permalink
Post by alex rodriguez
Post by alex rodriguez
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?
...
Post by alex rodriguez
Post by alex rodriguez
*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.
Post by alex rodriguez
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
Loading...