加勒比久久综合,国产精品伦一区二区,66精品视频在线观看,一区二区电影

合肥生活安徽新聞合肥交通合肥房產生活服務合肥教育合肥招聘合肥旅游文化藝術合肥美食合肥地圖合肥社保合肥醫院企業服務合肥法律

CP1404程序代做、代寫Java,c++編程設計

時間:2023-12-09  來源:合肥網hfw.cc  作者:hfw.cc 我要糾錯



Task:
You are to write a Python (3) program, as described in the following information and sample
output. This assignment will help you build skills using selection, repetition, file input/output,
exceptions, lists, functions and string formatting. Do not define any of your own classes or use
constructs that haven't been taught in this subject. Assignment 2 will build on this with more
advanced constructs including classes and a Graphical User Interface (GUI).
Everything you need to complete this assignment can be found in the subject teaching.
You will be given starter files including a README for your project, all of which you must use.
Program Overview:
This program is a simple song list that allows a user to track songs that they wish to learn and
songs they have completed learning. The program reads and writes a list of songs in a file.
Each song has:
• title, artist, year, whether it is learned
Users can choose to display the list of songs.
The song list should be sorted by year then by title (use operator.itemgetter) for sorting.
Users can add new songs and mark (set) songs as learned.
They cannot change songs from learned to unlearned.
Program Functionality Details:
Ensure that your program has the following features, as demonstrated in the sample output
below. Your program should:
• display a welcome message with your name in it
• display a menu for the user to choose from
• return to the menu after each action and loop until the user chooses to quit
• load a CSV (Comma Separated Values) file of songs (just once at the very start); a
sample CSV file is provided for you and you must use this format (note: you're not
expected to use the csv module, but you're welcome to)
• when the user chooses display: display a neatly formatted (lined up) list of all the songs
with their details (unlearned songs have an * next to them) and a count of these songs
(note: you are welcome to either guess or calculate the size of the title and artist fields
to line them up - either way is fine)
• when the user chooses add: prompt for the song’s title, artist and year,
error-checking each of these, then add the song to the song list in memory (not to the
file); new songs are always unlearned
• when the user chooses to complete a song: allow the user to choose one song by
number (error-checked), then change that song's status to learned
o if no songs are unlearned, then display a "No more songs to learn!" message
• when the user chooses quit: save the songs to the CSV file, overwriting file contents
Coding Requirements and Suggestions:
• Work incrementally on this task: complete small parts of it at a time rather than trying to
get it all working at once.
• Edit the module docstring at the very top of your code file to contain your own details.
• Make use of named constants as appropriate (e.g., for the characters that represent
the song's learned/unlearned status).
• Use functions appropriately for each significant part of the program: this is the divideand-conquer problem-solving approach. Follow the principles you've learned about
XUT CP1404 Assignment 1 © Lindsay Ward, James Cook University 2/5
functions, including the single responsibility principle (SRP).
• Only load (read) the file once, when the program starts.
• Only save (write) the file once, when the program ends.
• Store the song data in a list of lists and pass that to any functions that need access
to it. Note: this variable should not be global. The only global variables you may have
are CONSTANTS. (Did you understand this? If you use global variables, your functions
will be poorly designed. Do not use any global variables.)
• Do not store a song's index – this is just its position in the list.
• The menu choice should handle uppercase and lowercase letters.
• Use exception handling where appropriate to deal with input errors (including entering
numbers and selecting songs).
• Use generic, customisable functions to perform input with error checking (e.g., getting
the song title and artist can reuse the same function).
• The output shows that the solution does not require correct plurals (e.g., "1 songs").
You are welcome to leave yours this way. You may add logic to print these statements
correctly, but it is not expected or assessed.
Check the rubric carefully to understand how you will be assessed. There should be no
surprises here – this is about following the best practices we have taught in class.
Integrity:
The work you submit for this assignment must be your own. Submissions that are detected to
be too similar to that of another student or other work (e.g., code found online or generated
with tools) will be dealt with according to university procedures for handling plagiarism and
may result in serious penalties.
The goals of this assignment include helping you gain understanding of fundamental
programming concepts and skills, and future subjects will build on this learning. Therefore, it
is important that you develop these skills to a high level by completing the work and gaining
the understanding yourself. You may discuss the assignment with other students and get
assistance from your peers, but you may not do any part of anyone else’s work for them and
you may not get anyone else to do any part of your work. Note that this means you should
never give a copy of your work to anyone or accept a copy of anyone else’s work,
including looking at another student's work or having a classmate look at your work.
If you require assistance with the assignment, please ask general questions on the
discussion forum, or get specific assistance with your own work by talking with your lecturer
or tutor.
The subject teaching contains all the information you need for this particular assignment. You
should not use online resources (e.g., search, Stack Overflow, ChatGPT) to find resources or
assistance as this would limit your learning and would mean that you would not achieve the
goals of the assignment - mastering fundamental programming concepts and skills.
Sample Output:
Sample output from the program is provided below. Ensure that your program matches
this, including spaces, spelling and formatting. Think of this as helpful guidance as well
as training you to pay attention to detail. The sample output is intended to show a large (but
maybe not exhaustive) range of situations including user input error handling.
The following sample run was made using a CSV file that contained:
Heartbreak Hotel,Elvis Presley,1956,u
Macarena,Los Del Rio,1996,l
Amazing Grace,John Newton,1779,l
I Want to Hold Your Hand,The Beatles,1964,u
Boom Boom Pow,The Black Eyed Peas,2009,u
My Sharona,The Knack,1979,l
XUT CP1404 Assignment 1 © Lindsay Ward, James Cook University 3/5
You should be able to figure out what parts of the sample output below are user input.
Song List 1.0 - by Lindsay Ward
6 songs loaded.
Menu:
D - Display songs
A - Add new song
C - Complete a song
Q - Quit
>>> this will be FUN
Invalid menu choice
Menu:
D - Display songs
A - Add new song
C - Complete a song
Q - Quit
>>> d
1. Amazing Grace - John Newton (1779)
2. * Heartbreak Hotel - Elvis Presley (1956)
3. * I Want to Hold Your Hand - The Beatles (1964)
4. My Sharona - The Knack (1979)
5. Macarena - Los Del Rio (1996)
6. * Boom Boom Pow - The Black Eyed Peas (2009)
3 songs learned, 3 songs still to learn.
Menu:
D - Display songs
A - Add new song
C - Complete a song
Q - Quit
>>> c
Enter the number of a song to mark as learned.
>>> 0
Number must be > 0.
>>> -1
Number must be > 0.
>>> 9
Invalid song number
>>> 7
Invalid song number
>>> 6
Boom Boom Pow by The Black Eyed Peas learned
Menu:
D - Display songs
A - Add new song
C - Complete a song
Q - Quit
>>> c
Enter the number of a song to mark as learned.
>>> 6
You have already learned Boom Boom Pow
Menu:
D - Display songs
A - Add new song
C - Complete a song
Q - Quit
>>> d
1. Amazing Grace - John Newton (1779)
2. * Heartbreak Hotel - Elvis Presley (1956)
3. * I Want to Hold Your Hand - The Beatles (1964)
4. My Sharona - The Knack (1979)
5. Macarena - Los Del Rio (1996)
6. Boom Boom Pow - The Black Eyed Peas (2009)
4 songs learned, 2 songs still to learn.
Menu:
D - Display songs
A - Add new song
C - Complete a song
Q - Quit
>>> a
Enter details for a new song.
Title:
Input can not be blank.
Title: Can I Walk With You?
Artist:
Input can not be blank.
Artist:
Input can not be blank.
Artist: See Jane Run
Year: 0
Number must be > 0.
Year: -1
Number must be > 0.
Year: why must the year be like that?
XUT CP1404 Assignment 1 © Lindsay Ward, James Cook University 4/5
Invalid input; enter a valid number.
Year:
Invalid input; enter a valid number.
Year: 1998
Can I Walk With You? by See Jane Run (1998) added to song list.
Menu:
D - Display songs
A - Add new song
C - Complete a song
Q - Quit
>>> D
1. Amazing Grace - John Newton (1779)
2. * Heartbreak Hotel - Elvis Presley (1956)
3. * I Want to Hold Your Hand - The Beatles (1964)
4. My Sharona - The Knack (1979)
5. Macarena - Los Del Rio (1996)
6. * Can I Walk With You? - See Jane Run (1998)
7. Boom Boom Pow - The Black Eyed Peas (2009)
4 songs learned, 3 songs still to learn.
Menu:
D - Display songs
A - Add new song
C - Complete a song
Q - Quit
>>> quit
Invalid menu choice
Menu:
D - Display songs
A - Add new song
C - Complete a song
Q - Quit
>>> q
7 songs saved to songs.csv
Make some music!
At the end of this run, the saved CSV file contained:
Amazing Grace,John Newton,1779,l
Heartbreak Hotel,Elvis Presley,1956,u
I Want to Hold Your Hand,The Beatles,1964,u
My Sharona,The Knack,1979,l
Macarena,Los Del Rio,1996,l
Can I Walk With You?,See Jane Run,1998,u
Boom Boom Pow,The Black Eyed Peas,2009,l
XUT CP1404 Assignment 1 © Lindsay Ward, James Cook University 5/5
Marking Scheme:
Ensure that you follow the processes and guidelines taught in class to produce high quality work. Do not just focus on getting the program working.
This assessment rubric provides you with the characteristics of exemplary down to very limited work in relation to task criteria.
Criteria Exemplary (9, 10) Good (7, 8) Satisfactory (5, 6) Limited (2, 3, 4) Very Limited (0, 1)
Correctness
請加QQ:99515681 或郵箱:99515681@qq.com   WX:codehelp

掃一掃在手機打開當前頁
  • 上一篇:代做CS3357A、代寫Python設計編程
  • 下一篇:CSCI 2122代寫、代做C++設計程序
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    2025年10月份更新拼多多改銷助手小象助手多多出評軟件
    2025年10月份更新拼多多改銷助手小象助手多
    有限元分析 CAE仿真分析服務-企業/產品研發/客戶要求/設計優化
    有限元分析 CAE仿真分析服務-企業/產品研發
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    出評 開團工具
    出評 開團工具
    挖掘機濾芯提升發動機性能
    挖掘機濾芯提升發動機性能
    海信羅馬假日洗衣機亮相AWE  復古美學與現代科技完美結合
    海信羅馬假日洗衣機亮相AWE 復古美學與現代
    合肥機場巴士4號線
    合肥機場巴士4號線
    合肥機場巴士3號線
    合肥機場巴士3號線
  • 短信驗證碼 目錄網 排行網

    關于我們 | 打賞支持 | 廣告服務 | 聯系我們 | 網站地圖 | 免責聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 hfw.cc Inc. All Rights Reserved. 合肥網 版權所有
    ICP備06013414號-3 公安備 42010502001045

    噜噜噜狠狠夜夜躁精品仙踪林| av在线日韩| 日韩精选在线| 亚洲mmav| 欧美日韩三级| 美国十次综合久久| 久久一综合视频| 蜜臀久久99精品久久久久久9| 国产极品模特精品一二| 欧美人成在线| 国产精品亚洲一区二区三区在线观看| 亚洲调教视频在线观看| 亚洲小说图片| 国产亚洲人成a在线v网站| 午夜亚洲一区| 欧美日韩色图| 日韩成人在线观看视频| 欧美一级视频| 日本蜜桃在线观看视频| 亚洲精品a级片| av一级亚洲| 欧美高清一级片| 国产精品一卡| 日本在线啊啊| 裸体素人女欧美日韩| 欧美+亚洲+精品+三区| 99精品国产一区二区三区2021| 亚洲视频电影在线| a屁视频一区二区三区四区| 午夜一区不卡| jlzzjlzz亚洲女人| 国内视频在线精品| 久久精品免视看国产成人| 亚久久调教视频| 91tv亚洲精品香蕉国产一区| 香蕉视频成人在线观看| 国产综合网站| 久久久久美女| 亚洲国产欧美在线观看| 亚洲第一论坛sis| 欧美激情日韩| 日韩综合小视频| 日韩国产91| 懂色aⅴ精品一区二区三区| 毛片在线网站| 日韩av密桃| 蜜臀av性久久久久蜜臀av麻豆| 欧美特黄一区| 婷婷综合社区| 五月综合激情| 九色精品国产蝌蚪| 久久一区二区三区喷水| 欧洲在线一区| 精品精品99| 精品视频高潮| 四虎影视精品| 久久久久久久久99精品大| 欧美日韩一本| 久久久成人网| 欧美顶级毛片在线播放| 久久精品福利| 久久久亚洲一区| 1024日韩| 五月天久久久| 国产亚洲在线观看| 国产精品入口66mio| 国产毛片一区| 成人激情诱惑| 日韩电影免费网站| www.国产精品| 日韩福利视频网| 一区二区中文字| 欧美精品momsxxx| 日韩欧美一级| 国产精品17p| 久久久久国产一区二区| 国产电影一区二区在线观看| 欧美日韩激情| 性欧美xxxx大乳国产app| 免费不卡在线观看| 天堂资源在线| 亚洲高清资源| 亚洲综合色站| 亚洲精品一级二级三级| 大香伊人久久精品一区二区| 神马午夜久久| 国产女优一区| 国产一二三在线| 97欧美成人| 欧美日韩综合| 日韩不卡在线视频| 国产精品av久久久久久麻豆网| 希岛爱理av一区二区三区| 美日韩精品视频| 亚洲成a人片| 午夜天堂精品久久久久| 日韩中文在线| japanese国产精品| 国内激情视频在线观看| 国产精品麻豆成人av电影艾秋| 综合一区av| 精品成人18| 仙踪林久久久久久久999| 成年男女免费视频网站不卡| 国产一区二区三区国产精品| 99久久久国产| 欧美三级自拍| 久久性色av| 国产91在线精品| 国产激情一区| 久久高清精品| 国产精品久久天天影视| 六月婷婷色综合| 伊人久久噜噜噜躁狠狠躁| 亚洲欧美偷拍自拍| 先锋欧美三级| 日韩精品导航| 女生裸体视频一区二区三区| 欧美成人精品三级网站| 国产精品亚洲四区在线观看| 少妇高潮一区二区三区| 欧美xxav| 国产成人免费av一区二区午夜| 999国产精品永久免费视频app| 色综合久久一区二区三区| 日韩高清一区二区| 成人在线免费观看91| 日韩综合网站| 成人豆花视频| 天天做综合网| 久久激情五月婷婷| 97久久综合精品久久久综合| 亚洲在线播放| 亚洲国产一区二区三区高清| 精品国产一区二区三区久久久蜜臀| 蜜桃视频一区| 99视频这里有精品| 亚洲精品国产成人影院| 欧美亚洲二区| 欧美私人啪啪vps| 欧美gayvideo| 日韩a级大片| 免费日韩av片| 成人亚洲精品| 黄色亚洲在线| 欧美黄在线观看| 日韩亚洲精品在线| 欧美日韩一区二区三区四区在线观看 | 精品国产一区二区三区不卡蜜臂 | 日韩欧美1区| 久久99精品久久久野外观看| 美美哒免费高清在线观看视频一区二区| 久久av免费| 欧美一级专区| 欧美日韩亚洲一区| 夜夜爽av福利精品导航| 一区二区在线| 一本久道久久综合狠狠爱| 国内自拍一区| 国产亚洲福利| 亚洲影院天堂中文av色| 国产精品久久久久久久久妇女| 亚洲成aⅴ人片久久青草影院| 男人的天堂久久精品| 亚洲精品aaaaa| 国产精品25p| 超碰成人免费| 日本午夜精品久久久久| 亚洲午夜极品| 欧美日韩综合| 日本欧美在线看| 日韩精品一区二区三区免费视频| 成人欧美一区二区三区的电影| 亚洲精选av| 久久精品国产精品亚洲红杏 | 国产999精品在线观看| 久久综合中文| 亚洲精品18| 久久精品国产精品青草| 伊人精品在线| 日韩av中文字幕一区二区三区| 日韩免费看片| 免费久久久久久久久| а天堂中文最新一区二区三区| 免费观看在线色综合| 亚洲五码在线| 影音先锋亚洲精品| 免费看日韩精品| 欧美日韩一本| 9999在线精品视频| 日韩大片在线播放| 欧美理论电影大全| 日韩va亚洲va欧美va久久| 国产第一精品| 午夜在线一区| 开心激情综合| 欧美精美视频| 日韩高清在线不卡| 六月婷婷综合| 欧美午夜不卡|