subject

A pentagonal number is defined as n(3n – 1)/2 for n=1,2,..., and so on. Therefore, the first few numbersare 1,5,12,22,... . Write a method with the following header that returns a pentagonal number:public static int getPentagonalNumber(int n)
Using Java, write a test program that uses this method to display the first n pentagonal
numbers with 10 numbers on each line, one space between each number, and the user entering the integer value for n.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 19:30
Can you make money in why are you guys so
Answers: 1
question
Computers and Technology, 22.06.2019 22:40
Write a program that defines symbolic names for several string literals (chars between quotes). * use each symbolic name in a variable definition. * use of symbolic to compose the assembly code instruction set can perform vara = (vara - varb) + (varc - vard); ensure that variable is in unsigned integer data type. * you should also further enhance your symbolic logic block to to perform expression by introducing addition substitution rule. vara = (vara+varb) - (varc+vard). required: debug the disassembly code and note down the address and memory information.
Answers: 3
question
Computers and Technology, 23.06.2019 09:30
After you present a proposal, the committee starts asking you questions, some beyond the strict focus of your proposal. they ask questions about implications in other fields and knowledge about other fields. you are asked to redo your proposal. what is most likely missing? breadth of material depth of material clarity of material details of material
Answers: 1
question
Computers and Technology, 23.06.2019 12:00
What does the level 1 topic in a word outline become in powerpoint? a. first-level bullet item b. slide title c. third-level bullet item d. second-level bullet item
Answers: 1
You know the right answer?
A pentagonal number is defined as n(3n – 1)/2 for n=1,2,..., and so on. Therefore, the first few num...
Questions
question
Mathematics, 20.10.2020 02:01
question
Mathematics, 20.10.2020 02:01
question
History, 20.10.2020 02:01
question
Mathematics, 20.10.2020 02:01
Questions on the website: 13722363