[Solved] COMP1210-Project Introduction to Java

$25

File Name: COMP1210-Project_Introduction_to_Java.zip
File Size: 348.54 KB

SKU: [Solved] COMP1210-Project Introduction to Java Category: Tag:
5/5 - (1 vote)

: Write the application MyLifeGoals that prints your name, your short-term, medium-term and long-term life goals.

Design: Your program should contain a main method that prints the information listed under Output (i.e., your output should replace the text in Italics).

Output:
Your first and last name (separated by a space) (The second line should be blank) Describe your short-term life goals.(in one line)Describe your medium-term life goals. (in one line) Describe your long-term life goals. (in one line)

Describe your life goals (if you have never thought about them, this is a good chance to think about them carefully). The actual output for each line of goals should be at least 100 characters not including spaces. Page 1 of Activity 1 shows how to break up a String literal in your program (where lines cannot exceed 80 characters) in order to print a longer line.

Code and Test: The expected output for the program will vary from student to student, but it is important to follow output pattern described above, formatting requirements, and minimum character requirements. If you are not sure how many characters (no spaces) are in your output, you can copy your output into Microsoft Word then select the line (paragraph) of output. Then select the Word Review tab and click Word Count in the Proofing group on the far left.

Project: Introduction to Java

  • JLetter.java

Requirements: Write the application JLetter that displays letter J as a large block letter composed of the characters J, A, V, A arranged in a pattern with a width of 12 characters and a height of 10 lines. Each line should begin in column 1 with appropriate leading spaces in lines 3, 4, 5, and 6. Trailing spaces at the end of each line should be avoided.

Design: Your program should contain a main method that prints exact the same pattern as shown in Figure 1. You should have 10 lines of output with each line in the pattern indicated.

JAVAJAVAJAVAJAVAJAVAJAVAJAVAJAVAJAVAJAVAJ JAVAJA JAVAJAVAJAVAJAVAJA
Figure 1. Output from JLetter program

Code and Test: The expected output contains 10 lines of letters in the specified order. Note that the first line of output has no leading spaces. Make sure that you print the pattern exactly as it appears above.

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[Solved] COMP1210-Project Introduction to Java
$25