国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看

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

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++設計程序
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    流體仿真外包多少錢_專業CFD分析代做_友商科技CAE仿真
    流體仿真外包多少錢_專業CFD分析代做_友商科
    CAE仿真分析代做公司 CFD流體仿真服務 管路流場仿真外包
    CAE仿真分析代做公司 CFD流體仿真服務 管路
    流體CFD仿真分析_代做咨詢服務_Fluent 仿真技術服務
    流體CFD仿真分析_代做咨詢服務_Fluent 仿真
    結構仿真分析服務_CAE代做咨詢外包_剛強度疲勞振動
    結構仿真分析服務_CAE代做咨詢外包_剛強度疲
    流體cfd仿真分析服務 7類仿真分析代做服務40個行業
    流體cfd仿真分析服務 7類仿真分析代做服務4
    超全面的拼多多電商運營技巧,多多開團助手,多多出評軟件徽y1698861
    超全面的拼多多電商運營技巧,多多開團助手
    CAE有限元仿真分析團隊,2026仿真代做咨詢服務平臺
    CAE有限元仿真分析團隊,2026仿真代做咨詢服
    釘釘簽到打卡位置修改神器,2026怎么修改定位在范圍內
    釘釘簽到打卡位置修改神器,2026怎么修改定
  • 短信驗證碼 寵物飼養 十大衛浴品牌排行 suno 豆包網頁版入口 wps 目錄網 排行網

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

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

    国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看
    成人一级生活片| 久久精品视频网站| 日韩国产小视频| 亚洲综合一区二区不卡| 九九精品在线观看| 久久夜色精品亚洲噜噜国产mv| 国产精品免费小视频| 国产精品男女猛烈高潮激情| 国产精品欧美日韩| 国产精品初高中精品久久| 国产精品国产对白熟妇| 国产精品旅馆在线| 久久久久久久久久久免费视频 | 日韩欧美精品久久| 国产精品美女久久久久av福利 | 国产亚洲福利社区| 国产欧美精品日韩精品| 国产片侵犯亲女视频播放| 国产精品综合网站| 久久亚洲精品无码va白人极品| 久久青青草综合| 97福利一区二区| 国产成人精彩在线视频九色| 久久久久女教师免费一区| 久久精品国产清自在天天线| 国产精品国产三级欧美二区| 欧美日本精品在线| 亚洲国产精品日韩| 熟女视频一区二区三区| 欧美又大又粗又长| 国产九九精品视频| 国产成人黄色av| 久久久99久久精品女同性| 久久夜色精品国产| 亚洲www永久成人夜色| 欧美日韩精品综合| 国产一级片91| 91精品国产777在线观看| 久久国产一区二区三区| 欧美精品成人在线| 青青在线视频观看| 成人免费无码av| 日韩在线视频中文字幕| 色综合视频网站| 欧美专区国产专区| 91禁国产网站| 欧美精品在线免费| 日韩和欧美的一区二区| 国产日韩欧美视频在线| 久久精品.com| 亚洲自拍欧美色图| 极品尤物一区二区三区| 97国产精品免费视频| 国产精品久久久久秋霞鲁丝| 性亚洲最疯狂xxxx高清| 国产小视频免费| 久久久精品网站| 一区二区三区不卡在线| 欧美精品免费观看二区| 91高跟黑色丝袜呻吟在线观看| 国产成人三级视频| 日韩在线视频在线观看| 不卡中文字幕在线| 久久夜精品香蕉| 欧美中文字幕视频| 777精品视频| 一区二区三区我不卡| 国内精品小视频在线观看| 久久综合久久久| 亚洲在线色站| 国产深夜男女无套内射| 久久精品亚洲94久久精品| 日本亚洲欧洲精品| 久久久免费观看| 一区二区三区精品国产| 国产香蕉一区二区三区| 国产精品区一区二区三含羞草| 日本一区二区不卡高清更新| 97精品在线观看| 伊人久久99| 成人在线精品视频| 国产精品国产福利国产秒拍| 欧美日韩一区二区三区免费| 久久久久免费看黄a片app| 亚洲永久在线观看| 国产精品香蕉视屏| 在线视频福利一区| 国产精品专区h在线观看| 欧美人与性动交| 国产精品夜间视频香蕉| 一区二区日本伦理| 91九色丨porny丨国产jk| 亚洲欧洲精品一区二区三区波多野1战4 | 欧美精品免费观看二区| 久久久久资源| 日本精品va在线观看| 久久久精品在线视频| 日本最新高清不卡中文字幕| 国产精品av网站| 日韩中文字幕在线不卡| 国产不卡一区二区三区在线观看| 日韩免费在线观看视频| 日韩在线欧美在线| 欧美精品自拍视频| 国产精品区一区二区三在线播放| 欧美一级大片在线观看| 国产精品久久久久影院日本| 国产综合在线观看视频| 精品国产乱码久久久久久88av| 国产精品夜间视频香蕉| 亚洲精品在线免费| 久久免费视频网站| 欧美在线一区视频| 久久夜精品香蕉| 99久久久精品视频| 日韩手机在线观看视频| 国产精品日日做人人爱| 高清无码视频直接看| 三区精品视频| 国产精品久在线观看| 国产精品亚洲综合| 日本午夜精品电影| 色偷偷91综合久久噜噜| 国产一区高清视频| 欧美一区二区三区在线免费观看| 日韩最新av在线| 国产在线拍偷自揄拍精品 | 欧美一级免费播放| 国产精品手机播放| 国产精品一级久久久 | 日本婷婷久久久久久久久一区二区 | 久久国产精品一区二区三区四区| 欧美一级视频免费在线观看| 久久九九有精品国产23| 福利视频久久| 青草青草久热精品视频在线观看| 国产精品久久久av| 91美女片黄在线观看游戏| 秋霞午夜一区二区| 一本久道综合色婷婷五月| 北条麻妃在线一区二区| 超碰免费在线公开| 欧美第一黄网| 欧美一区二区三区图| 久久成人精品视频| 久久久噜噜噜www成人网| 国产日本欧美在线| 亚洲 欧洲 日韩| 欧美成在线视频| 日韩中文字幕在线视频播放| 成人免费aaa| 狠狠色狠狠色综合人人| 日韩精品久久一区二区三区| 中日韩在线视频| 久久久999成人| 国产激情999| 99中文字幕| 国产在线观看福利| 欧美专区福利在线| 日韩av一区二区三区在线观看| 九九九热精品免费视频观看网站| 久久精品国产亚洲精品| 成人国产精品一区二区| 毛葺葺老太做受视频| 青草成人免费视频| 欧美一级片在线播放| 一区高清视频| 精品国产第一页| 欧美成人久久久| 国产精品国产精品国产专区不卡| 日韩中文在线中文网三级| 国产xxxxx在线观看| 国产精品999视频| 91免费视频国产| 成人av在线网址| 国产狼人综合免费视频| 国产一区二区香蕉| 欧美日韩dvd| 女女同性女同一区二区三区91 | 国产成人综合一区| 91久热免费在线视频| 成人精品在线观看| 成人免费淫片aa视频免费| 国产欧美精品一区二区三区 | 人妻熟女一二三区夜夜爱 | 久久精品国产第一区二区三区最新章节| www.亚洲一区二区| 成人综合国产精品| av不卡在线免费观看| 成人精品视频一区二区| 高清不卡一区二区三区| www精品久久| 777午夜精品福利在线观看| 久久综合中文色婷婷| 国产成人亚洲综合无码| 国产成人亚洲精品| 国产成人jvid在线播放| 九色综合日本| 日韩中文字幕在线观看| 国产精品日韩欧美一区二区|