首页
网站开发
桌面应用
管理软件
微信开发
App开发
嵌入式软件
工具软件
数据采集与分析
其他
首页
>
> 详细
辅导CSC1-UA程序、讲解java编程设计、java编程讲解 讲解留学生Processing|解析SPSS
项目预算:
开发周期:
发布时间:
要求地区:
Assignment 2
Introduction to Computer Science
CSC1-UA- 0101
Sections 3 & 5
Due date for sections 3 and 5 by 2/28 by 9am EST
(Assignment is open from 2/18, 9 AM EST to 2/28 by 9 AM EST)
Code of Conduct
All assignments are graded, meaning we expect you to adhere to the academic integrity standards
of NYU. To avoid any confusion regarding this, we will briefly state what is and isn’t allowed
when working on an assignment.
Any document and program code that you submit must be fully written by yourself. You can, of
course, discuss your work with fellow students, as long as these discussions are restricted to
general solution techniques. Put differently, these discussions should not be about concrete code
you are writing, nor about specific results you wish to submit. When discussing an assignment
with others, this should never lead to you possessing the complete or partial solution of others,
regardless of whether the solution is in paper or digital form, and independent of who made the
solution. That means, you are also not allowed to possess solutions by someone from a different
year or course, by someone from another university, or code from the Internet, etc. This also
implies that there is never a valid reason to share your code with fellow students, and that there is
no valid reason to publish your code online in any form.
Every student is responsible for the work they submit. If there is any doubt during the grading
about whether a student created the assignment themselves (e.g. if the solution matches that of
others), we reserve the option to let the student explain why this is the case. In case doubts
remain, or we decide to directly escalate the issue, the suspected violations will be reported to the
academic administration according to the policies of NYU (see
https://cs.nyu.edu/home/undergrad/policy.html).
Assignment # 2 Details
Part 1 (50 points):
Weaving a Kilim Carpet Application using loops and nested loops:
Save as part1.java
Kilims are woven carpets which generally use symmetrical designs. For this assignment, instead
of using a loom, wool, and a shuttle, we are asking you to produce a pattern of your own design
using loops and nested loops.
Write a program to weave your own Kilim carpet with 30 rows by 30 columns. The patterns
should be designed by you (it should be different than the design of carpet below). Your
carpet though MUST include at least one diamond shape, checkerboards, and squares (See
example below for these patterns). Also, use other characters such as $ or % or + or @ rather
than a * to weave the rug. Make sure not to copy the entire pattern from the below rug or
copy patterns from another student! Show your creativity by weaving a different design while
meeting the requirements mentioned above. You will get extra credit for excellent design and
added features.
Here is a 12th Century Moroccan Kilim Carpet sample pattern
made of 25 rows and 36 columns:
(This design is made up of stars (asterisks) and spaces, please
ignore the border, color, and the shading effect):
Here are the requirements:
• Every print statement should print no more than one character of one '%' or one space ' '.
Do not use statements such as: print but
rather use loops for every repetition.
• Use loops and nested loops to produce these patterns.
• You can't use control structure such as switch or if/else if/else in your program.
• Your have to design your own carpet (different than the carpet from above).
• Your carpet MUST include at least one diamond shape, checkerboards, and squares. (see
example from above for these patterns).
• Some of the patterns are repeated; you might want to first isolate the elements in the
design (eg. the first two rows, the "checkerboard" elements, the triangle) and then
combine them to form the "rug".
• If the Dimond is too difficult to produce as one pattern, you can break it to 4 triangles or
apply any solution you see fit as long you comply with the assignment’s requirements.
• Extra credit if you also implement methods for part 1. Methods will be
discussed next week.
Part2 (50 points):
Number System Conversion Application using
methods and loops:
Save it as part2.java
Number system helps to represent numbers used for humans and computers. Computers, in
general, use binary numbers 0 and 1 to keep the calculations simple and to keep the amount of
necessary circuitry less, which results in the least amount of space, energy consumption and cost.
When we type any letter or word, the computer translates them into numbers (binary, base 2)
since computers can understand only numbers. A computer can understand only a few symbols
called digits and these symbols describe different values depending on the position they hold in
the number. In general, the binary number system is used in computers. However, the octal,
decimal and hexadecimal systems are also used sometimes. Numbers can be represented in any
of the number system categories like binary, decimal, hex, etc. Number conversion is extremely
important for computer scientist and therefor, you are asked to build an application to convert
between these four number systems mentioned here. I’m aware that there are many of these
programs posted on the web but you MUST produce your own as we have access to plagiarism
software that allows us to detect plagiarism from the web and from any other student work from
past years or this year. Please refer to the plagiarism policy posted on the syllabus.
The following is a diagram of converting numbers from 1 to 15 in all four number systems:
Your application allows the user to enter a number in a specific numbers system chosen by the
user and then your program converts this number to the number system that the user has chosen.
For example, here is a sample run of the program:
Enter the name of the number system to convert from: bin, or dec, or oct or hex: bin
Enter number as a String: 111
Enter the name of the number system you want to convert to: bin, or dec, or oct or hex: dec
The result is: 7
We will discuss number conversion and methods during next week but here is information
on algorithms for converting between number systems:
• Algorithm to convert from binary (base 2) to any system and from any number system to
binary https://byjus.com/maths/number-system-conversion/
• Algorithm to convert from Decimal (base 20) to any other number system and from any
number system to Decimal https://byjus.com/maths/number-system-conversion/
• Algorithm to convert from Hexadecimal (base 16) to any other number system and from
any number system to Hexadecimal: https://byjus.com/maths/hexadecimal-numbersystem/
• Algorithm to convert from Octal (base 20) to any other number system and from any
number system to Octal: https://byjus.com/maths/octal-number-system/
Requirements:
o To keep thing simple for you, use the range of numbers entered by user in your
program the same as provided by the above table allowing you to test the result
easily as all of the answers is provided by the table above. So, you can keep the
testing range from decimal numbers between 1 and 15 so you test you answer
and keep your program simple.
o You can use a String to input the number especially in the case of binary so you
don’t lose the leading zeros on the left when you input the number.
o You MUST use loops for efficiency.
o You MUST use methods to make the program more efficient. Also, look for
similar patterns of conversion algorithm between number system so you can
combine methods for efficiency if this makes sense to you.
o Please get started on the assignment immediately, and contact the class tutors as
soon as possible with any questions. Don't expect a response the day before the
due date.
o Extra credit for added features and for producing excellent and efficient
algorithm.
Grading Criteria:
Program Execution (90%)
• Meeting all of the requirements of the assignments
• No syntax, logical and runtime errors at all times
• Produces the correct output all of the time
• B. Coding Style (10%):
• Code clear and easy to read
• Proper indentation and spacing
• Good commenting style
• Good identifier names
• Clarity of code - code that’s easy to follow
C. Extra Credit (1 to 5%):
• • For adding excellent technical features and implementing excellent and
efficient algorithms
Notes about your program:
• Style counts (that includes using meaningful names and providing sufficient comments in
the body of the programs).
• Make sure your program includes a comment at the beginning with your name, date,
along with a brief synopsis of the program/algorithm using the multiline comment \* */.
• You should use comments throughout the source code to explain key steps and
calculations
• You should use proper indentation (three spaces) and blank lines (or you can leave to the
default of the text editor default spacing) to make your program easy to read
• Capitalize the program name or class names (Prog1)
• Choose intuitive names for variables and all identifiers such as names of programs,
function or method names.
• You should use blank lines where appropriate to make your program easy to read.
• Make sure that your program does not contain any syntax errors.
• Make sure to use proper indentation after { with two spaces or whatever your editor
default spacing is.
• Make sure to only submit your .java files with no errors to NYU Classes
(https://newclasses.nyu.edu/). No need to submit the .class files.
• Late submissions will be penalized by 5% per 24 hours and it will not be accepted after
the 3 days past the due date.
• Note that your solution must work with no errors to be accepted. In case your program
does not work using java, your submission will get a zero.
• Make sure to check the lateness, extension, and plagiarism policy provided in the syllabus.
Submission
Make sure to submit the assignment by the deadline as there a penalty for each date late (see
homework Late Policy on the website) to NYU Classes under the assignment posted by midnight
in your time zone. Put all the .java files in a folder. The folder should be named with your name
and the assignment number with no spaces such as GraceHopperAsg2.zip and place all the .java
files needed for this assignment inside this folder and then zip it and submit it to NYU Classes.
软件开发、广告设计客服
QQ:99515681
邮箱:99515681@qq.com
工作时间:8:00-23:00
微信:codinghelp
热点项目
更多
代做ceng0013 design of a pro...
2024-11-13
代做mech4880 refrigeration a...
2024-11-13
代做mcd1350: media studies a...
2024-11-13
代写fint b338f (autumn 2024)...
2024-11-13
代做engd3000 design of tunab...
2024-11-13
代做n1611 financial economet...
2024-11-13
代做econ 2331: economic and ...
2024-11-13
代做cs770/870 assignment 8代...
2024-11-13
代写amath 481/581 autumn qua...
2024-11-13
代做ccc8013 the process of s...
2024-11-13
代写csit040 – modern comput...
2024-11-13
代写econ 2070: introduc2on t...
2024-11-13
代写cct260, project 2 person...
2024-11-13
热点标签
mktg2509
csci 2600
38170
lng302
csse3010
phas3226
77938
arch1162
engn4536/engn6536
acx5903
comp151101
phl245
cse12
comp9312
stat3016/6016
phas0038
comp2140
6qqmb312
xjco3011
rest0005
ematm0051
5qqmn219
lubs5062m
eee8155
cege0100
eap033
artd1109
mat246
etc3430
ecmm462
mis102
inft6800
ddes9903
comp6521
comp9517
comp3331/9331
comp4337
comp6008
comp9414
bu.231.790.81
man00150m
csb352h
math1041
eengm4100
isys1002
08
6057cem
mktg3504
mthm036
mtrx1701
mth3241
eeee3086
cmp-7038b
cmp-7000a
ints4010
econ2151
infs5710
fins5516
fin3309
fins5510
gsoe9340
math2007
math2036
soee5010
mark3088
infs3605
elec9714
comp2271
ma214
comp2211
infs3604
600426
sit254
acct3091
bbt405
msin0116
com107/com113
mark5826
sit120
comp9021
eco2101
eeen40700
cs253
ece3114
ecmm447
chns3000
math377
itd102
comp9444
comp(2041|9044)
econ0060
econ7230
mgt001371
ecs-323
cs6250
mgdi60012
mdia2012
comm221001
comm5000
ma1008
engl642
econ241
com333
math367
mis201
nbs-7041x
meek16104
econ2003
comm1190
mbas902
comp-1027
dpst1091
comp7315
eppd1033
m06
ee3025
msci231
bb113/bbs1063
fc709
comp3425
comp9417
econ42915
cb9101
math1102e
chme0017
fc307
mkt60104
5522usst
litr1-uc6201.200
ee1102
cosc2803
math39512
omp9727
int2067/int5051
bsb151
mgt253
fc021
babs2202
mis2002s
phya21
18-213
cege0012
mdia1002
math38032
mech5125
07
cisc102
mgx3110
cs240
11175
fin3020s
eco3420
ictten622
comp9727
cpt111
de114102d
mgm320h5s
bafi1019
math21112
efim20036
mn-3503
fins5568
110.807
bcpm000028
info6030
bma0092
bcpm0054
math20212
ce335
cs365
cenv6141
ftec5580
math2010
ec3450
comm1170
ecmt1010
csci-ua.0480-003
econ12-200
ib3960
ectb60h3f
cs247—assignment
tk3163
ics3u
ib3j80
comp20008
comp9334
eppd1063
acct2343
cct109
isys1055/3412
math350-real
math2014
eec180
stat141b
econ2101
msinm014/msing014/msing014b
fit2004
comp643
bu1002
cm2030
联系我们
- QQ: 9951568
© 2021
www.rj363.com
软件定制开发网!