Computers and Technology, 09.11.2020 09:00 yaquiii70
Problem 3: Pentagonal Number
Write a function that takes a positive integer and calculates how many dots exist in a pentagonal shape around the center dot on the Nth iteration.
In the image below you can see the first iteration is only a single dot. On the second, there are 6 dots. On the third, there are 16 dots, and on the fourth there are 31 dots.
Return the number of dots that exist in the whole pentagon on the Nth iteration.
Sample input/output:
Enter an integer: 8
The number of dots in a pentagonal shape with 8 iterations is 141
Answers: 2
Computers and Technology, 22.06.2019 08:00
Aplan to budget time for studying and activities is referred to as a study routine. study habits. study skills. a study schedule.
Answers: 1
Computers and Technology, 22.06.2019 18:30
Which of these options are the correct sequence of actions for content to be copied and pasted? select content, click the copy button, click the paste button, and move the insertion point to where the content needs to be inserted. click the copy button, select the content, move the insertion point to where the content needs to be inserted, and click the paste button. select the content, click the copy button, move the insertion point to where the content needs to be inserted, and click the paste button. select the content, move the insertion point to where the content needs to be inserted, click the copy button, and click the paste button.
Answers: 3
Computers and Technology, 22.06.2019 19:00
Which parts of a presentation should be the most general? a. introduction and conclusion b. introduction and outline c. outline and conclusion d. outline and body
Answers: 1
Computers and Technology, 22.06.2019 22:00
What is a distinguishing feature of today’s graphic application software?) graphic applications are used today on a variety of devices, including touch-screen kiosks and mobile phones.
Answers: 3
Problem 3: Pentagonal Number
Write a function that takes a positive integer and calculates how many...
Physics, 10.03.2021 05:10
Biology, 10.03.2021 05:10
History, 10.03.2021 05:10
Mathematics, 10.03.2021 05:10
Mathematics, 10.03.2021 05:10
Mathematics, 10.03.2021 05:10
World Languages, 10.03.2021 05:10
Mathematics, 10.03.2021 05:10
History, 10.03.2021 05:10
Spanish, 10.03.2021 05:10
Biology, 10.03.2021 05:10
Spanish, 10.03.2021 05:10
Biology, 10.03.2021 05:10
Mathematics, 10.03.2021 05:10