Find Jobs
Hire Freelancers

Simple Intro to Java Assignment "Pentagonal.java"

$10-30 USD

Completed
Posted over 7 years ago

$10-30 USD

Paid on delivery
The file name for this assignment should read "[login to view URL]" 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 [login to view URL] (9th Edition Page 213 5.1 modified; 10th edition Page 234 Exercise 6.1 modified) Write [login to view URL] from page 212 Ninth edition. " 5.1M (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) run: 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. Hint, For [login to view URL] 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"
Project ID: 11801103

About the project

11 proposals
Remote project
Active 8 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
I am a highly motivated with strong creative and conceptual skills, always prepared to accept challenging tasks and hence, I am here to further enhance my personal and professional growth. JAVA-SE (OOP,Collection,JDBC,GUI,Swing,Multithreading,IO Streaming). JAVA-EE ( Servlets, JSP,Struts2,JSF,Web Services,Spring DI,Spring Transaction ) PHP (HTML5,CSS3,JAVASCRIPT,JQUERY,AJAX,BOOTSTRAP, WORDPRESS ) C/C++ Databases: RDBMS, MYSQL,Oracle,SQL Sever Other Software Engineering Skills: Database Design, Software Documentation
$26 USD in 1 day
0.0 (0 reviews)
0.0
0.0
11 freelancers are bidding on average $26 USD for this job
User Avatar
hi there. I went through the requirements and I would like to do this project if given the opportunity. let me know if you are interested so I can have further details. thanks.
$30 USD in 1 day
4.9 (943 reviews)
7.4
7.4
User Avatar
Hello My name is Ahmed, i'm a top rated freelancer. i worked over 250 projects and over 600 hours doing java projects. plus i passed freelancer java exam with top 15% plus i got 2 java certificate 1Z0-803 and 1Z0-804 with 3+ years experience. small overview of feedback on my profile "you want to get your projects completed with quality? Hire Ahmed. Highly recommended." "Thoroughly satisfied with Ahmed, and would recommend him for anyone looking for an excellent java developer!" "Highly recommended. Very smart and well experience" looking forward to work with you Regards
$15 USD in 1 day
4.9 (236 reviews)
6.0
6.0
User Avatar
Hi, I am good at core java programming and can deliver well commented code as per specs in 24 hours. Please contact me as soon as possible for a discussion. With Regards, Koustav
$40 USD in 1 day
4.9 (22 reviews)
4.4
4.4
User Avatar
Hey, I am a Java developer and can help you with your assignment. Please discuss.
$25 USD in 1 day
5.0 (5 reviews)
3.9
3.9
User Avatar
A proposal has not yet been provided
$30 USD in 2 days
4.6 (15 reviews)
3.9
3.9
User Avatar
I would like to bid this job because I am really suitable for job description: First: I am an software engineer who is very expertise with Java. In fact, I have done so many project of Java(Karatsuba multiplier, Nintendo design, encryption algorithm like Sax Hash, Bernstein Hash, HummingBird...Also, I participated in a Walker Recognition project(data from Camera to Human Detection(image processing-HOG feature and Adaboost) and display in VGA). Besides,,I implemented the image conpression (wavelet transform). Also, I am very good in English (IELTS 6.0) and I have several year of researching so I can fully understand your requirement and understand fully about the papers and write the academic report.. Please contact me and let me know if you want any special requirement and do with lower price. Thank you.
$30 USD in 1 day
5.0 (2 reviews)
2.8
2.8
User Avatar
Hi there, I am CS graduate and Profesional software developer. You will get 100% plagiarism free Java code and well documented. Ping e for discussion.
$15 USD in 0 day
4.6 (5 reviews)
2.7
2.7
User Avatar
Sounds straightforward. I can help you out. Message me if you're interested in my profile or if you want to discuss project specifics.
$25 USD in 1 day
5.0 (3 reviews)
2.1
2.1
User Avatar
Contact me. I would be happy to do this for you. My name is Anson, and I am a CS major from one of the UCs. I am a programmer of about 10 years now and currently do work professionally using Java among other languages.
$30 USD in 1 day
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
Irvine, United States
5.0
2
Payment method verified
Member since Oct 16, 2016

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.