Find Jobs
Hire Freelancers

Java Code Project

$10-30 USD

已完成
已发布大约 10 年前

$10-30 USD

货到付款
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 * ** * **** * ** * ******** * ** * **** * ** * ***************** * ** * **** * ** * ******** * ** * **** * ** * *********************************** * ** * **** * ** * ******** * ** * **** * ** * ***************** * ** * **** * ** * ******** * ** * **** * ** *
项目 ID: 5466908

关于此项目

7提案
远程项目
活跃10 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作
颁发给:
用户头像
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 在1天之内
4.9 (7条评论)
3.2
3.2
7威客以平均价$31 USD来参与此工作竞价
用户头像
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 在1天之内
5.0 (65条评论)
5.4
5.4
用户头像
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 在3天之内
5.0 (6条评论)
2.7
2.7
用户头像
Contact me if you are interested .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..
$55 USD 在1天之内
0.0 (0条评论)
0.0
0.0
用户头像
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 在2天之内
0.0 (0条评论)
0.0
0.0
用户头像
This is an interesting assignment for me also. I would be happy if I get this opportunity to solve this problem.
$20 USD 在1天之内
0.0 (0条评论)
0.0
0.0
用户头像
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 在1天之内
0.0 (0条评论)
0.0
0.0
用户头像
A proposal has not yet been provided
$25 USD 在1天之内
0.0 (0条评论)
0.0
0.0

关于客户

UNITED STATES的国旗
Lynnwood, United States
5.0
10
付款方式已验证
会员自2月 11, 2014起

客户认证

谢谢!我们已通过电子邮件向您发送了索取免费积分的链接。
发送电子邮件时出现问题。请再试一次。
已注册用户 发布工作总数
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
加载预览
授予地理位置权限。
您的登录会话已过期而且您已经登出,请再次登录。