CS 1181
Assignment 4
Reading
Liang Chapter 4 (Section 4.6 - Formatting Console Output)
Liang Chapter 5
Java Application - DiamondDigits
Create a java application to use nested loops to display digits in the pattern shown here: [login to view URL]
Hints:
Consider splitting the problem into two parts: One set of loops for the top half of the diamond, and another set for the bottom part of the diamond
An outer loop can be used to control the printing for each row
The outer loop can contain two inner loops: one to control printing the leading spaces, and another to control the printing of the digits
Use printf statements to control the spacing in the digit display
Name the Java Class: DiamondDigits
Grading Rubric
[login to view URL]
Correct File Name ([login to view URL]) - case sensitive
Correct Class Name (DiamondDigits) - case sensitive
Correct Style - comments
Correct Style - indentation
Correct Style - White Space
Free of syntax errors
Variable to hold the digit counter
Outer for loop to display the rows
Inner for loop to display the columns
Aligned correctly
Hi there,
I'm really interested in doing this project. Would you please initiate a chat for further discussion? So really hope to have chance to work with you, thanks for your consideration!
Regards.
$20 USD in 0 day
5.0 (17 reviews)
3.7
3.7
2 freelancers are bidding on average $23 USD for this job
Hi sir, thank you for your project. I am a senior JAVA developer and I could help you to do this task. Please contact me via private message box. THanks