首页
网站开发
桌面应用
管理软件
微信开发
App开发
嵌入式软件
工具软件
数据采集与分析
其他
首页
>
> 详细
代写INFT1004、代做Python编程语言
项目预算:
开发周期:
发布时间:
要求地区:
University of Newcastle
INFT1004/6004 - Introduction to Programming
Library Book Management System – Part 1
Introduction
This assignment involves developing a Python program to manage a library's inventory of books.
The program should utilise basic programming concepts taught in weeks 1 to 5, including
condition statements, loops, and functions . You might want to use the Math module, which is in
chapter 5 (this is optional).
Carefully read the specification below. Make sure you have all the information necessary to start
writing the program. If you are uncertain of something, do not make assumptions. Instead, post your
questions to the "assignment 1" discussion board forum and check it regularly, or ask your
demonstrators during your lab.
Note that you must complete this assignment individually. Your solution must be your own work.
You may be required to participate in an oral exam for quality assurance, consisting of an interview
with one staff and will last approximately 10 minutes. During this time, we will ask you questions
about your assignment.
Specifications
Part 1 - Define initial book inventory: When the program runs, it will first prompt the user to
define initial inventory levels for different genres of books such as Fiction, Nonfiction, Science,
and History. Each genre can hold a maximum number of books: Fiction = 30, Nonfiction = 20,
Science = 15, History = 25. The user should not be able to input an amount exceeding the
maximum.
Part 2 - Create Menu: After setting the initial inventory levels, the program will display a menu of
actions to the user. After an action is selected and executed, the menu will reappear until the user
opts to quit. If the user enters an invalid option, the program will display an error message and
request a valid input again. The menu options are:
• Action 1: Check out a book. The user will input one of the genre of the book (Fiction,
Nonfiction, Science, History) they want to borrow. The program should check if there is
inventory available for the requested genre. After book is borrowed the inventory will be
updated accordingly.
• Action 2: Return a book. The user will input the genre of the book they are returning. The
program should update the inventory accordingly.
• Action 3: Inventory analysis. The program will report (print) how many books are
available in each genre. It will also indicate if the inventory for a genre is 'high' (>= 75%
capacity), 'ok' (50-74% capacity), or 'low' (< 50% capacity).
• Action 4: Restock inventory. The user will be shown the current inventory and asked how
many books they want to add to each genre, considering the maximum limits. The
program will confirm once the inventory has been updated (if the user tries to input an
amount higher than the maximum, the program will show a message and ask again). Finally,
the function should print a message indicating that the inventory has been restocked and will
show the new amounts of genre.
• Action 5 (FOR INFT6004STUDNETS ONLY): Genre Checkout Summary -This feature will
allow the user to see how many times books from each genre were checked out. This can
help the library staff to understand which genres are currently most popular.
• Action 6: Quit. Exit the program with a farewell message.
Note that all inputs above should be positive numbers. If they are negative, the program should
show a message and ask the input again.
Program Requirements:
• A separate function should handle each part of the menu options, plus the initial
inventory definition and the menu display itself.
• Define a function called initialise_inventory() to perform the functionality ‘Define initial
inventory’. The initialise_inventory() function should ask the user the amounts to the initial
inventory levels for Fiction, Nonfiction, Science and History. The function will call another
function called check_inventory_limit() described below. The function should ask the input
again if the amounts exceed the maximum allowed, which the function below will check.
• The check_inventory_limit() function will receive as parameters the number of Fiction,
Nonfiction, Science and History input by the user. The function will check that these amounts
are less or equal to the maximum possible. The maximum possible is: Fiction = 30, Nonfiction
= 20, Science = 15, History = 25. The function check_inventory_limit() should return True (if
the amounts are less or equal to the maximum allowed) or False (if the amounts are higher
than possible).
• The main program loop will trigger define initial inventory, and then will have a loop that allows
the user to choose one of the other functionalities (i.e. display the menu). The loop should
handle an invalid input and continue running until the user chooses to quit.
Complete each function one at a time, and test the program before trying to implement a new
function.
Program Comments
At the beginning of your program you will have the following details and format as well as comments
for the program.
Author:
Date: Start date and upload date
Task: INFT1004/INFT1006 Assignment 1 Library Book Management System
Comments are expected for each block of the code about what a block of code is intended to achieve.
This will be at a function level and also for any inline code. In addition, add other comments that are
potentially important for any reader of your code.
What to submit.
You should submit the Python file called (
Assign1.py) electronically via the "Assignment
1" link on Canvas. For example, your name is Abby Zammit, your file will be called
AbbyZammitAssign1.py
Handing in your work
You are to hand in the assignment electronically using Canvas’s Assignment facility. Remember, you
are to hand in your python code named correctly - (this was described under “file for submission”
above. It should be something like AbbyZammitAssign1.py (of course use your own name! )
When you are ready to submit your code file, log in to Canvas, go to the site for this course, and follow
these steps:
• Select the Modules folder.
• Click the Assignment 1 link, which will take you to the appropriate upload page.
• Click or drag the file as below. Then hit Submit Assignment.
• If you wish to see if the correct file has been uploaded then just click the download icon as below.
• If you want to submit an updated version of the assignment, go back to the Assignment link and click
Try Again.
Make sure you’re aware of the deadline: the final marking will be applied only to the most recent
submission, and if it’s submitted late it will be marked as late.
Marks will be awarded for: layout, both visual (variable names, indentation) and structural (scope of
variables, use of functions); documentation (comments); and ability of the submission to perform as
specified. A more detailed marking schema is available.
Late Penalty and adverse circumstances
Note that your mark will be reduced by 10% for each day (or part day) that the assignment is late. This
applies equally to week and weekend days. You are entitled to apply for special consideration if adverse
circumstances have had an impact on your performance in an assessment item. This includes applying
for an extension of time to complete an assessment item.
In the Canvas you will find a new forum in the discussion board: “assignment1”. Any question about
the assignment 1 you can post there. Check this forum regularly.
软件开发、广告设计客服
QQ:99515681
邮箱:99515681@qq.com
工作时间:8:00-23:00
微信:codinghelp
热点项目
更多
代做 ds 3003、代写 c++,java...
2025-05-03
代做program、代写python设计程...
2025-05-03
program 代写、代做 c++语言程...
2025-05-02
代做 cs2435、代写 c++,pytho...
2025-05-02
代做 progeam、代写 java/pyth...
2025-05-02
代做 ece391、代写 python/jav...
2025-05-02
代做 inft1032、代写 sql 程序...
2025-05-02
代写inft1004、代做python编程...
2025-05-02
can202代做、代写matlab设计程...
2025-05-02
代做operations strategy acro...
2025-05-01
代写sat 301 final year proje...
2025-05-01
代写elec/xjel3430 digital co...
2025-05-01
代写gpf104: game production ...
2025-05-01
热点标签
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
软件定制开发网!