Find Jobs
Hire Freelancers

Java Code Project

$10-30 USD

Completato
Pubblicato circa 10 anni fa

$10-30 USD

Pagato al completamento
You will write a class [login to view URL] that implements an interface [login to view URL], provided to you by the instructor. Download this interface and a short testing program from Canvas. Do your own testing to ensure correctness; do not rely on the provided test program to test every input possibility. YOU MUST SOLVE ALL OF THESE PROBLEMS RECURSIVELY. If you turn in a non-recursive solution for any problem, that problem will receive no credit. The following are the methods in the interface that your class must implement. public int sumTo(int max) Returns the sum of all numbers from 0 to the given maximum value, inclusive. For example, sumTo(5)returns 15 because 0 + 1 + 2 + 3 + 4 + 5 = 15. If sumTo is passed a negative number, it returns the sum from zero down to that number; public void printNumbers(int max) Prints a pattern of bracketed numbers, by powers of two down from the given max, in a mirrored pattern. If printNumbers is called with a max less than or equal to 0, it produces no output. printNumbers(0) prints printNumbers(1) prints [1] printNumbers(2) prints [1][2][1] printNumbers(3) prints [1][3][1] printNumbers(4) prints [1][2][1][4][1][2][1] printNumbers(8) prints [1][2][1][4][1][2][1][8][1][2][1][4][1][2][1] printNumbers(15) prints [1][3][1][7][1][3][1][15][1][3][1][7][1][3][1] public int toDecimal(String text) Assumes that the given text string represents a binary number, such as "1010010", and returns the int value that represents that binary number in base-10 (decimal). The empty string is assumed to have the value 0. For example: toDecimal("") returns 0 toDecimal("0") returns 0 toDecimal("1") returns 1 toDecimal("10") returns 2 toDecimal("11") returns 3 toDecimal("1000") returns 8 toDecimal("1011") returns 11 toDecimal("111000") returns 56 toDecimal("1010010") returns 82 public boolean phraseAnagramCheck(String s1, String s2) Returns true if s1 and s2 represent phrases that are anagrams of each other. Anagram phrases are strings that contain the same letters in the same multiplicities (counts). You should perform a case- insensitive comparison, ignoring differences in capitalization between s1 and s2; for example, "Acres" and "CARES" should be considered anagrams. You should also ignore spaces.  public void printZigZag(int size, int indent) Prints a zig-zag pattern of asterisk * characters, with the entire pattern indented by the given number of spaces. The pattern should draw horizontal lines of decreasing lengths, repeated in its top-left section and its bottom-right section. If the value of size is less than or equal to zero, or if the value of indent is negative, no output is produced. It's easier to show than it is to describe, so here are some example outputs: printZigZag(4, 0) prints: (output on next line) * ** * **** * ** * printZigZag(8, 0) prints: (output on next line) * ** * **** * ** * ******** * ** * **** * ** *  Expected output: sumTo 5: 15 sumTo -6: -21 [1] [1][2][1] [1][3][1] [1][2][1][4][1][2][1] [1][2][1][4][1][2][1][8][1][2][1][4][1][2][1] [1][3][1][7][1][3][1][15][1][3][1][7][1][3][1] [1][3][1][7][1][3][1][15][1][3][1][7][1][3][1][30][1][3][1][7][1][3][1][15][1][3][1][7][1][3][1] 0 0 1 2 3 8 11 56 82 true true false false false zigzag 1 * zigzag 2 * ** * zigzag 3 * *** * zigzag 4 * ** * **** * ** * zigzag 6 * *** * ****** * *** * zigzag 8 * ** * **** * ** * ******** * ** * **** * ** * zigzag 12 * *** * ****** * *** * ************ * *** * ****** * *** * zigzag 16 * ** * **** * ** * ******** * ** * **** * ** * **************** * ** * **** * ** * ******** * ** * **** * ** * zigzag 35 * ** * **** * ** * ******** * ** * **** * ** * ***************** * ** * **** * ** * ******** * ** * **** * ** * *********************************** * ** * **** * ** * ******** * ** * **** * ** * ***************** * ** * **** * ** * ******** * ** * **** * ** *
Rif. progetto: 5466908

Info sul progetto

7 proposte
Progetto a distanza
Attivo 10 anni fa

Hai voglia di guadagnare un po'?

I vantaggi delle offerte su Freelancer

Imposta il tuo budget e le scadenze
Fatti pagare per il lavoro svolto
Delinea la tua proposta
La registrazione e le offerte sui lavori sono gratuite
Assegnato a:
Avatar dell'utente
Hi, Please see the reviews that I have got while doing similar java projects. I can deliver you the correct code with all the comments so that you get god grade. Please ping me to discuss things in detail.
$30 USD in 1 giorno
4,9 (7 valutazioni)
3,2
3,2
7 freelance hanno fatto un'offerta media di $31 USD
Avatar dell'utente
HI Contact me for an efficient, well documented and perfect solution and development of your project. I ensure quality work with always on time delivery of project and dedicated support and follow up. Thanks Farah Saif
$30 USD in 1 giorno
5,0 (65 valutazioni)
5,4
5,4
Avatar dell'utente
Hi, I am experiment on java for academic I can help you with your task Please feel free to contact to me Thank you
$30 USD in 3 giorni
5,0 (6 valutazioni)
2,7
2,7
Avatar dell'utente
Contact me if you are interested .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..
$55 USD in 1 giorno
0,0 (0 valutazioni)
0,0
0,0
Avatar dell'utente
Hello Sir, We have gone through the details you have provided and we have already worked on a similar project before and can deliver as u have mentioned and would be pleased to work on this with you to deliver the results that you have expected and we have already worked on a similar project before and can deliver as u have mentioned We are sure you will not be disappointed if you give us this opportunity. Our team is experienced, creative & efficient enough to get your job done well. We have an impeccable record and all our clients enjoy working with us, we are sure that you will too, our prices are cheapest in market. can u provide your email or sky-pe etc for further discussion about the project I am ready to discuss with you with best Regards
$55 USD in 2 giorni
0,0 (0 valutazioni)
0,0
0,0
Avatar dell'utente
This is an interesting assignment for me also. I would be happy if I get this opportunity to solve this problem.
$20 USD in 1 giorno
0,0 (0 valutazioni)
0,0
0,0
Avatar dell'utente
Those problems are too easy. Give me the interface file and the testing program as mentioned "Download this interface and a short testing program from Canvas." I could finish all these project in under 1 hour. Thanks
$25 USD in 1 giorno
0,0 (0 valutazioni)
0,0
0,0
Avatar dell'utente
A proposal has not yet been provided
$25 USD in 1 giorno
0,0 (0 valutazioni)
0,0
0,0

Info sul cliente

Bandiera: UNITED STATES
Lynnwood, United States
5,0
10
Metodo di pagamento verificato
Membro dal feb 11, 2014

Verifica del cliente

Grazie! Ti abbiamo inviato tramite email il link per richiedere il tuo bonus gratuito.
Non è stato possibile inviarti l'email. Riprova per piacere.
di utenti registrati di lavori pubblicati
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Caricamento anteprima
Autorizzazione per la geolocalizzazione concessa.
La tua sessione è scaduta ed è stato effettuato il log out. Accedi nuovamente per piacere.