The file name for this assignment should read "[url removed, login to view]"
The output must be EXACT or else it will not let me submit the assignment. By exact I mean even the same amount of spaces, lines, etc. Please make author name "alyssamcaparelli". So the code should say "@author alyssamcaparelli"
I would prefer for you to submit this assignment through a program called "Submit." I will have to give you my username and password for this so you can log on and submit it, because if there is even a small error in the code it won't let me submit and since I do not known java it is really hard for me to find the mistake.
Here are the directions:
submit [url removed, login to view] (9th Edition Page 213 5.1 modified; 10th edition Page 234 Exercise 6.1 modified)
Write [url removed, login to view] from page 212 Ninth edition.
" [url removed, login to view] (Math: pentagonal numbers) A pentagonal number is defined as n(3n–1)/2 for n=1,2, . . ., and so on.
Therefore, the first few numbers are 1, 5, 12, 22, . . ..
Write a method with the following header that returns a pentagonal number:
public static int getPentagonalNumber(int n)"
Pentagonal numbers illustration and general equation....
(THERE IS A PICTURE ATTACHED THAT GOES HERE IN THE DIRECTIONS)
Which is Pn = ( 3 * n2 - n )/2
Note for n =1 we have one vertex point
for n = 2 we share vertex points for n=1 and add four more points this gives a pentagonal P2= 5 points
For P3, we share vertex points of P2 and add 7 more points this gives P3 = 12 points
For P4 we add 10 more points + 12 from P3 gives a P4 = 22.
You will read a single integer from standard input and print out the the first n pentagonal numbers, where n was integer just read. All numbers will be printed space then number, last pentagonal number is new line terminated.
Sample Run 1 (Input 2):
Enter an integer: 2
The pentagonal numbers are: 1 5
Sample Run 2 (User input's 4):
Enter an integer: 4
The pentagonal numbers are: 1 5 12 22
Sample Run 3 (NetBeans output window user inputs 7)
Enter an integer: 7
The pentagonal numbers are: 1 5 12 22 35 51 70
BUILD SUCCESSFUL (total time: 7 seconds)
Hint the method getPentagonalNumber( int n ), is singular, but you can write your method to kick out and array 1..n.
For [url removed, login to view] with input 2, you will need to output:space1space5newline, so we print a space then a number. After computing all values add a newline.
Lets look at another example, you want to read in n and print out the squares of 1 up to n^2, last one is newline terminated.
For example, input n=3; Output: "The square numbers are: 1 4 9\n"
This project was awarded to
great guy to work with. did a great job although I was rude at the beginning
Looking to make some money?
- Set your budget and the time frame
- Outline your proposal
- Get paid for your work
Bids on this Project
Ho Chi Minh, Vietnam
My Skills and Experience: .C/C++, Java, .NET, Objective C, HTML5, Javacript, .Cryptography (PKCS, CSP, ...) .Experience in developing desktop application (Windows, Mac, Linux) and mobile application on Android.
I am an electronics engineer with excellent academic background, firm language skills (IELTS 6.0) and 5-years of researching and working (Graduated Very Good Degree - Top 5% graduated Student at Top University in Vietnam) *******************************TOP SKILLS******************************* 1. FPGA Design. (VHDL/Verilog) 2. Embedded System Design. (Schematic, PCB Design) 3. Software Design. (C/C++/Java/Android/Matlab) *********************************TOOLS********************************** 1. Xilinx Vivado/Xilinx ISE/IP Core of Xilinx. 2. Altium/Orcad/KidCad design. 3. DevC++/Visual Studio C/C++/Eclipse/Netbeen. 4. Matlab/LabView ******************************LANGUAGES******************************** -English: IELTS 6.0 (Reading 6.5, Speaking 6.5, Writing 6.0, Listening 5.5)
Baguio City, Philippines
We are a growing community that is passionate in computing technology. Our organization is a crew of determined individuals who are enthusiasts, architects, engineers, hackers and analysts focused on technological and computational research in the fields of information technology and computer science. Our objective is simple, and that is to contribute to the body of knowledge through scientific research, experiments and from practical experiences. We utilize this database of knowledge to create innovative solutions to meet the demands in the digital world. We are extending our service not only in the Philippines but making it available world wide. For more information and inquiries, kindly hire or invite us to be part of your project and we would be glad to be of your service.
I am a Computer Science major from UC Davis. I have worked over 10 years in retail and with various eCommerce platforms and marketplaces. Lately my work has expanded from web programming to encompass web scraping and data mining.
Ankita Agrawal, B.E. (Information Technology) M.E. (Information Technology) Working Experience of more than 3 years in Software Industry on Java, DBMS (mySQL, SQL Server), PHP.
I'm an expert software developer with experience in many fields. My Experience covers the following: 1-Java and C++ 2- Data Structure, OOP, MVC, I/O and Design Patterns. 3- UML (class, sequence, use case and activity) diagrams. 4- Android Development 5-Java EE Technologies - Servlet, JSP, Spring, JSF Prime Faces and Hibernate. 6- PHP, CSS, HTML, AJAX and JS. 7- MySQL, MySQLi, Derby, SQLite and MS SQL. 8- MongoDB and NoSQL About me. I have degree in Computer Science from Cairo University located in Egypt , 2 java certifications ID (1Z0-803) and (1Z0-804) from Oracle , SQL certification ID (1Z0-051) from Oracle. Top rated freelancer on upwork - check portfolio
General Santos City, Philippines
Linux, Android Java, C# and Arduino preferred. I usually go above and beyond to make sure you are happy with what you got, at a bargain price. Bids negotiable. I have experience in computer networking, server management, Java, .NET, Arduino, and other odd, hacky requests. No questions asked* ;) A quick look at my skills list below should give you an idea on what I usually work on, although it doesn't reflect everything. Just ask me via chat if in doubt. PHP, WordPress, and Snort coming soon. Philippine-based (Based in the Philippines) Also available on UpWork
I am currently working as an Application Developer in Central Depository Company of Pakistan Limited. Having two years of experience in the industry of Information Technology, also 6 years of experience in academics with 1 year experience in Content Writing (i.e Research Paper, Report Writing). I have done by B.E in Computer Systems in 2014 and currently completing my MS in Software Engineering. -I have written a research paper on "Energy Efficient Storage System". -Developed a customized android based RFID attendance system for my Institute. -Designed business reports and Developing Back Office Accounting System Application for my Company in a teamwork. I am strong at Java with integration to Enterprise Java Beans and XML.