首页
网站开发
桌面应用
管理软件
微信开发
App开发
嵌入式软件
工具软件
数据采集与分析
其他
首页
>
> 详细
辅导31748程序语言、讲解Programming编程设计、Java,Python程序讲解 辅导Python编程|解析Haskell程序
项目预算:
开发周期:
发布时间:
要求地区:
31748 / 32516 Internet Programming
Assignment 2:
An Online Car Rental System using AJAX and JSON
Due 11:59 pm, Friday 14 May 2021
Introduction
In this assignment, you are required to develop a simplified on-line business portal (website)
for a Car Rental Company: “Hertz-UTS”. The objectives of this assignment are as follows:
1. Learn how to design your own data structure, by which, you could form your own
database using JSON Object
2. Learn how to use AJAX technique to send and retrieve data from the web server
asynchronously without interfering with the display and behaviour of the existing
page.
3. Learn how to load a JSON file using JavaScript.
4. Learn how to parse a JSON file, extract the node values/attributes and store them in
session arrays of your DHTML pages.
5. Learn the usage of session: how to set, update, delete and destroy the session.
Assignment Requirements
1. This assignment is done individually and it counts as 35% towards your final assessment.
2. The website should be dynamic which means all the data are loaded dynamically from the
JSON file. If the contents in the JSON file change (e.g., the mileage changes to 12354 for
id=1), the pages should change as well.
3. The vehicles available for renting can be divided into three categories: Sedan, Wagon and
SUV. Each car to be stored in a JSON file is associated with the following 10 attributes:
Category Availability Brand Model Model
year
Mileage Fuel
type
Seats Price
per day
Description
sedan Y/N Toyota Camry 2013 10000 petrol 5 $120 xxxxxxx
4. Car image samples are provided on the CANVAS
You need to create a folder “images” stores the pictures for the cars. Each image is named
according to the model of the car and the image types all are “jpg”.
Figure 1. The screenshot of the folder “images”.
Assignment Specification
This assignment requires that you do the following steps.
1. Design a JSON file “cars.json” with the structure specified in requirement 3 and store at
least 10 + car data items in the JSON file. Set up the availability state to “True” for 70%of
cars in the Warehouse, and a “False” state to the other 30%. (80 marks).
2. Use AJAX to load the JSON file “cars.json” and extract the data and save it as arrays in
your webpage. (50 marks).
3. Display the cars in a nice tabular format using the above arrays on your webpage for users
to select. (50 marks)
Figure 2. An example of displaying cars for selection on the webpage.
4. Provide a “button” to add the car to the reservation “shopping cart”. Use AJAX to check the
availability of the car after clicking the button (the field “availability” is included in
cars.json). If the availability is “True” then add the car to the reservation shopping cart
and prompt success; If the availability is “False” then alert that “Sorry, the car is not
available now. Please try other cars”. (50 marks)
Figure 3. Information prompted after clicking the “Add to cart” button.
5. Provide a button/link to view the reservation shopping cart. Display the cars which have
been added into the reservation shopping cart (hint: use session to store the data). Users
can set the “rent days” or delete cars in the shopping cart. (50 marks).
Figure 4. An example of the reservation shopping cart.
6. Provide the checkout button to check if there are cars in the shopping cart. If no, then alert
“No car has been reserved.” and jump to the first page. If yes, validate the “rental
days” (integer, >0) using JavaScript and navigate to the next page. (30 marks)
7. Design the checkout page which displays a purchase form asking the user to fill in their
delivery details (name, email address, mailing address, city, state, post-code and payment
type). All these fields must be completed for the order to go ahead. Validate the format of
the email address. If all details are filled correctly, then direct the user to a page showing
the delivery details and the cost. (40 marks)
Figure 5. An example of the checkout page.
Submission:
You will submit the assignment details, including URL of the website and a
compressed file containing all your source code through CANVAS after the submission
link is activated, but prior to the due date.
Note that you need to submit both a live link (URL) pointing to your running system as
well as all your source code stored in a compressed file (.zip).
After the indicated deadline submissions will not be accepted!
Collaboration/plagiarism
Students are reminded of the principles laid down in the "Statement of Good Practice and
Ethics in Informal Assessment" in the Faculty Handbook. Assignments in this subject
should be your own original work. Any collaboration with another participant should be
limited to those matters described in the "Acceptable Behaviour" section. Similarly, any
group work should be the result of collaboration only within the group. Any
infringement by a participant will be considered a breach of discipline and will be dealt
with in accordance with the Rules and By-Laws the University. The Faculty penalty for
proven misconduct of
this nature is zero marks for the subject. For more information, see:
http://www.gsu.uts.edu.au/rules/16-2.html.
Further, copying of resources (e.g. images, blocks of HTML) from other web sites without
acknowledgement of the source constitutes plagiarism, and is considered as unacceptable
behaviour. While you should feel free to use other web sites for inspiration, you should not
cut-and-paste "source code".
The exception to the above rule is web sites which make available free-to-download
archives of images, scripts, etc. You should check any restrictions before using such
material (e.g. many image sites require you to include a link back to their home page if you
use their images). Further, for the purposes of this subject, you should also acknowledge the
source of any such material by using a comment in your HTML file. For more
information, see:
http://wiki.it.uts.edu.au//start/Academic_Integrity.
End ##
软件开发、广告设计客服
QQ:99515681
邮箱:99515681@qq.com
工作时间:8:00-23:00
微信:codinghelp
热点项目
更多
代做 program、代写 c++设计程...
2024-12-23
comp2012j 代写、代做 java 设...
2024-12-23
代做 data 编程、代写 python/...
2024-12-23
代做en.553.413-613 applied s...
2024-12-23
代做steady-state analvsis代做...
2024-12-23
代写photo essay of a deciduo...
2024-12-23
代写gpa analyzer调试c/c++语言
2024-12-23
代做comp 330 (fall 2024): as...
2024-12-23
代写pstat 160a fall 2024 - a...
2024-12-23
代做pstat 160a: stochastic p...
2024-12-23
代做7ssgn110 environmental d...
2024-12-23
代做compsci 4039 programming...
2024-12-23
代做lab exercise 8: dictiona...
2024-12-23
热点标签
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
软件定制开发网!