Devam Ediyor

484717 java

STEP 1: Largest (10 points)

Write a Java application program called [url removed, login to view] that inputs a series of 10 single-digit numbers and determines and prints the largest of the numbers. Except main() method, no other user-defined method is required. Your program should use at least the following three variables:

a) counter: A counter to count to 10 (that is, to keep track of how many numbers have been input and to determine when all 10 numbers have been processed);

b) number: The current digit input to the program;

c) largest: The largest number found so far.

STEP 2: Palindrome (15 points)

A palindrome is a sequence of characters that reads the same backward as forward. For example, each of the following five-digit integers is a palindrome: 12321, 55555, 45554 and 11611. Write an application called [url removed, login to view] that reads in a five-digit integer and determines whether it is a palindrome. If the number is not five digits long, display an error message dialog indicating the problem to the user. When the user dismisses the error dialog, allow the user to enter a new value.

Your program will have the following four methods:

main() method, which controls the execution of the program

retrieveInput() method, which prompts and retrieves the input values

check() method, which determines whether it is a palindrome

display() method, which displays the result.

STEP 3: Diamond (15 points)

Write a program called [url removed, login to view] that uses a method diamondOfAsterisks() that displays a diamond (the row number of a diamond must be odd) of asterisks whose row is specified in an integer parameter row. For example, if row is 7, the method displays the pattern of asterisks at the top of the next page.

*

***

*****

*******

*****

***

*

Beceriler: Her şey Kabul, Java

Daha fazlasını görün: series 7 application, largest number, integers and, row b, problem in java, palindrome, java problem, palindrome java, java count, problem parameter, check processed, methods java program, enter numbers prints, prompts user enter numbers prints, java program count integer, java example, diamond pattern, check palindrome java, java palindrome methods, check pattern pattern, java method, forward number application, program use program java, diamond program java, java digit display

İşveren Hakkında:
( 8 değerlendirme )

Proje NO: #2230627

Seçilen:

dilipmathi

I can help you right now please check pmb

0 gün içinde 15$ USD
(0 Değerlendirme)
0.0