Find Jobs
Hire Freelancers

Write some software

$10-30 USD

已完成
已发布超过 6 年前

$10-30 USD

货到付款
I need you to develop some software for me. I would like this software to be developed for Windows using Java. Encryption program Leldon and Sheonard are physicists who are fixated on the BIG BANG theory. In order to exchange secret insights they have devised a code that encodes UPPERCASE words by shifting their letters forward. Shifting a letter by S positions means to go forward S letters in the alphabet. For example, shifting ‘B’ by S where S = 3 positions gives ‘E’. However, sometimes this makes us go past ‘Z’, the last letter of the alphabet. Whenever this happens we wrap around, treating ‘A’ as the letter that follows ‘Z’. For example, shifting ‘Z’ by S = 2 positions gives ‘B’. Leldon and Sheonard’s code depends on a parameter K and also varies depending on the position of each letter in the word. For the letter at position P, they use the shift value of S = 3 * P + K. For example, here is how ZOOM is encoded when K = 3. The first letter ‘Z’ has a shift value of S = 3 × 1 + 3 which means the shift value is 6; it wraps around and becomes the letter F. The second letter, ‘O’, has S = 3 × 2 + 3 = 9 and becomes X. The last two letters based on their derived shift value become A and B. So Leldon sends Sheonard the secret message: FXAB Write a program for Leldon that will decode messages sent by Sheonard. Input Specification The input will be two lines. The first line will contain the positive integer K (K < 10), which is used to compute the shift value. The second line of input will be the word, which will be a sequence of uppercase characters of length at most 20. Output Specification The output will be the decoded word of uppercase letters. Sample Input 1 3 FXAB Output for Sample Input 1 ZOOM
项目 ID: 15674674

关于此项目

2提案
远程项目
活跃6 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作
颁发给:
用户头像
can dp this for you Relevant Skills and Experience - java - labs Proposed Milestones $30 USD - completed project
$30 USD 在1天之内
5.0 (56条评论)
5.8
5.8
2威客以平均价$28 USD来参与此工作竞价
用户头像
I am good at writing smooth. I have knowledge of English grammar. I am a biologist. I have interest in various disciplines especially social biology, religion, history and English literature.
$25 USD 在1天之内
0.0 (0条评论)
0.0
0.0

关于客户

TRINIDAD AND TOBAGO的国旗
san juan, Trinidad and Tobago
5.0
1
付款方式已验证
会员自11月 19, 2017起

客户认证

这个客户的其他工作

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