首页
网站开发
桌面应用
管理软件
微信开发
App开发
嵌入式软件
工具软件
数据采集与分析
其他
首页
>
> 详细
CON3602 代做、代写 java 语言编程
项目预算:
开发周期:
发布时间:
要求地区:
CON3602 Programming Fundamentals for Geomatics EA Project (50%)
Assignment Due Date: 14 Dec 2023, Thursday, 23:59
Instructions to Students
1. This project should be done by each individual student.
2. Plagiarism will be treated seriously. All assignments that have been found involved wholly or partly in
plagiarism (no matter these assignments are from the original authors or from the plagiarists) will score Zero marks. You will be asked a random question on your program to verify that your submission is your own work.
3. Your program must be structured and well documented. The first few lines in the source file must be a comment stating the name of the source file, and the name, course, class, student number as well as the main methods of the program. Marks will be deducted if such comments are not included.
4. You are required to hand in the following:
a. Program codes .java file(s) (soft copy)
5. The filenames for the Basic Stage and Advanced Stage should be MathBasic.java and MathAdvanced.java respectively. You need to hand in the two files separately if you do the Advanced Stage.
6. Submit all files to Moodle as instructed by your teacher, Late submission is NOT accepted.
7. No re-submission to Moodle is allowed. Please test your program thoroughly before each submission.
Project Path and Milestones
16 Stage 4: Present Products Publicly in the form of program
documentation
Document the codes properly with comments explaining the logic and methods used.
Program codes .java file(s)
Project Path for PBL
Week No.
Stage No.
Learning Activities
Submission
13
Stage 1: Launch Project
Review the objectives and plan the project by creating an outline of the tasks to be completed.
-
14
Stage 2: Build Knowledge
Familiarize integer operations such as Remainder, GCD, and LCM, and how they can be implemented in Java.
15
Stage 3: Develop and Critique
Begin coding by implementing the main menu and handling user inputs as per project requirements.
Develop critical thinking by testing the program thoroughly to ensure all parts are working correctly.
Page 1
CON3602 Programming Fundamentals for Geomatics EA Project (50%)
MATH QUIZ
Basic Stage (75%) (MathBasic.java)
Problem Specification
You are asked to design and develop a Java Program that randomly generates mathematics questions and computes the percentage of correct answers. The program is divided into 5 steps (not necessarily sequential).
Step 1: Main Menu
When the program starts, Main Menu will be shown as follows:
Figure 1. Basic Stage Main Menu
Welcome to IP Math Quiz
*** Main Menu ***
1) Remainder
2) Greatest Common Divisor (GCD)
3) Least Common Multiple (LCM)
9) Quit
>_
Page 2
CON3602 Programming Fundamentals for Geomatics EA Project (50%)
You have to handle the following user input:
Questions generated in Step 3 will be Remainder questions. Proceeds to Step 2
Questions generated in Step 3 will be Greatest Common Divisor (GCD)
User Input
Action
1
2
questions.
Proceeds to Step 2
Questions generated in Step 3 will be Least Common Multiple (LCM)
3
Proceeds to Step 2
questions. Proceeds to Step 5
9
Step 2: Specify the number of questions
After selecting the type of question successfully in Step 1, we specify the number of questions as follows:
Number of Questions: _
Figure 3. Number of Questions
For example, if the user input is 10, then 10 questions of the chosen type (remainder, GCD, LCM) will be asked in Step 3.
Step 3: Generate Random Questions
n questions will be generated, where n is specified in Step 2. The questions type is based on the input in Step 1. For example: If we input 3 in Step 1 (i.e. Least Common Multiple (LCM)) and input 10 in Step 2, then Step 3 will ask 10 Least Common Multiple (LCM) questions.
Note that all questions should have the question number. For example, Q1 for first question and Q10 for the tenth question.
Q1:20%3 =_
Q1: 20 % 3 = 2 Q2: 44 % 8 = 4 ...
...
Q10: 36 % 7 = _
Figure 4. Example of Remainder questions
Page 3
CON3602 Programming Fundamentals for Geomatics EA Project (50%)
Q1: GCD (54,24) = 6 Q2: GCD (24,36) = 12 ...
...
Q10: GCD (33,27) = _
Figure 5. Example of Greatest Common Divisor (GCD) questions
Figure 6. Example of Least Common Multiple (LCM) questions Operands generated in different operations should obey the following rules:
Q1: LCM (72,84) = 504 Q2: LCM (55,63) = 3465 ...
...
Q10: LCM (62,91) = _
Operator
Operands
Remainder
First operand should be between 20 and 50.
Second operand should be between 1 and 10.
Greatest Common Divisor (GCD) Least Common Multiple (LCM)
Step 4: Result
Two operands should be between 1 and 100.
Results should be > 1
Two operands should be between 55 and 150.
The correctness of every answer in Step 3 is checked. The result will be shown as follows:
...
...
Q10: 30 % 10 = 0
You’ve answered 10 questions 10 of them are correct.
And your mark is 100.0%
...
...
Q4: 46 % 4 = 99
You’ve answered 4 questions 3 of them are correct.
And your mark is 75.0%
Example a. 100%
Example b. 75%
...
Q3: 26 % 8 = 88
You’ve answered 3 questions 2 of them are correct.
And your mark is 66.67%
Example c. 66.67%
Figure 7. Result Examples
Page 4
CON3602 Programming Fundamentals for Geomatics EA Project (50%)
The result should contain 1) how many questions have been asked, 2) how many questions are correct and 3) the percentage of correct answers. Note that, mark in percentage is required to set to 2 Decimal Places.
After Step 4 is completed, the program goes back to Step 1, the main menu again. Step 5: Good Bye
If we enter 9 in Step 1, the following Good Bye message will be shown.
Figure 8. Good Bye
Assumption
In Basic Stage, you may assume all inputs are in correct type and within correct range.
Hints:
1. Write a method to generate random numbers in a given range (i.e. start and end); this
method will be reused in Step 3.
2. Using methods help you to simplify the code and keep it tidy.
*** Main Menu ***
1) Remainder
2) Greatest Common Divisor (GCD) 3) Least Common Multiple (LCM) 9) Quit
>9
Good Bye!!
Page 5
CON3602 Programming Fundamentals for Geomatics EA Project (50%)
Advanced Stage (25%) (MathAdvanced.java)
Advanced Feature 1 (20%) – Two more operators:
Add two more choices in the main menu; they are Division and COMPLEX. If Division is selected, Step 3 generates division questions. If COMPLEX is selected, Step 3 generates questions with random operators.
Operands generated in Division and Complex should obey the following rules:
Operator
Operands
DIVISION
First operand should be between 1 and 100. First operand should be a composite number. First operand must be divisible by second operand.
Second operand should be between 2 and 40.
COMPLEX
Please random a number,
if it is an odd number, please generate: AB + C
If it is an even number, please generate: BA + C
A: should be between 1 and 5 B: should be between 2 and 4
C: should be between 1 and 60, should be a prime number
Following is a Test Run:
Welcome to IP Math Quiz
*** Main Menu ***
1) Remainder
2) Greatest Common Divisor (GCD)
3) Least Common Multiple (LCM)
4) Division
5) Complex
9) Quit
>5
Number of Questions: 3 Q1: 2 ^ 3 + 2 = 10
Q2: 4 ^ 4 + 19 = 275
Q3: 2 ^ 2 + 59 = 63
You’ve answered 3 questions 3 of them are correct.
And your mark is 100.0%
Welcome to IP Math Quiz
*** Main Menu ***
1) Remainder
2) Greatest Common Divisor (GCD)
Page 6
CON3602 Programming Fundamentals for Geomatics EA Project (50%)
3) Least Common Multiple (LCM)
4) Division
5) Complex
9) Quit
>4
Number of Questions: 2
Q1: 27 / 3 = 9
Q2: 62 / 31 = 2
You’ve answered 2 questions 2 of them are correct.
And your mark is 100.0%
*** Main Menu ***
1) Remainder
2) Greatest Common Divisor (GCD) 3) Least Common Multiple (LCM) 4) Division
5) Complex
9) Quit
>9
Good Bye!!
Figure 9. Advanced Stage – Test Run
Page 7
CON3602 Programming Fundamentals for Geomatics EA Project (50%) Advanced Feature 2 (5%) – Exception Handling :
This advanced feature requires you to handle user’s invalid input as follow:
1. Display meaningful error message, and
2. Repeat the same question or menu again, until input is correct.
This program may have the following input errors:
In Step 1: Main Menu, users input non integers or input out of range
*** Main Menu ***
1) Remainder
2) Greatest Common Divisor (GCD)
3) Least Common Multiple (LCM)
4) Division
5) Complex
9) Quit
>M
Error! Input accept integer only. Input 1-5 or 9.
*** Main Menu ***
1) Remainder
2) Greatest Common Divisor (GCD)
3) Least Common Multiple (LCM)
4) Division
5) Complex
9) Quit
Figure 10. Exception that may occur in Main Menu
In Step2: Specify the number of questions, user input non integers.
Figure 11. Exception that may occur when asking questions
~ END ~
Number of Questions: A
Error! Input accept integer only.
Number of Questions: _
Page 8
软件开发、广告设计客服
QQ:99515681
邮箱:99515681@qq.com
工作时间:8:00-23:00
微信:codinghelp
热点项目
更多
代写dts207tc、sql编程语言代做
2024-12-25
cs209a代做、java程序设计代写
2024-12-25
cs305程序代做、代写python程序...
2024-12-25
代写csc1001、代做python设计程...
2024-12-24
代写practice test preparatio...
2024-12-24
代写bre2031 – environmental...
2024-12-24
代写ece5550: applied kalman ...
2024-12-24
代做conmgnt 7049 – measurem...
2024-12-24
代写ece3700j introduction to...
2024-12-24
代做adad9311 designing the e...
2024-12-24
代做comp5618 - applied cyber...
2024-12-24
代做ece5550: applied kalman ...
2024-12-24
代做cp1402 assignment - netw...
2024-12-24
热点标签
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
软件定制开发网!