国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女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 豆包網頁版入口 目錄網 排行網

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

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

    国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看
    国产精品第3页| 欧美另类69精品久久久久9999| 欧美日韩一区二区视频在线观看 | 日本高清不卡一区二区三| 亚洲中文字幕无码专区| 亚洲欧洲日产国码无码久久99| 色综合久久久久久中文网| 久久91亚洲精品中文字幕| 精品免费国产| 中文字幕精品—区二区日日骚| 一道精品一区二区三区| 亚洲一区美女| 色欲av无码一区二区人妻| 日本免费高清一区二区| 青青草精品毛片| 欧美日韩国产不卡在线看| 青青草一区二区| 免费精品视频一区| 国产精品自拍合集| 国产精彩精品视频| 日韩中文字幕国产精品| 国产精品嫩草在线观看| 久久国产精品久久久久久| 亚洲在线视频一区二区| 日本一区免费看| 男人的天堂狠狠干| 国产精品中文在线| 国产av熟女一区二区三区| 国产精品毛片一区视频| 欧美久久精品午夜青青大伊人| 欧美日本啪啪无遮挡网站| 亚洲人成77777| 欧美一区二区综合| 成人黄色av网站| 久久久久五月天| 精品国产乱码久久久久久88av| 亚洲精品日产aⅴ| 欧美中文字幕在线| 成人精品一区二区三区| 日韩中文字幕第一页| 一本一道久久久a久久久精品91 | 亚洲精品日韩成人| 日韩欧美一区二区视频在线播放 | 国产一级做a爰片久久毛片男| 114国产精品久久免费观看| 北条麻妃久久精品| 欧美日韩999| 日韩欧美一区二区三区久久婷婷 | 日本在线播放不卡| 欧美日本韩国一区二区三区| 国产欧美日韩中文| 日韩中文字幕不卡视频| 亚洲色精品三区二区一区| 欧美乱偷一区二区三区在线| 91久久精品国产| 久久夜色精品国产| 欧美亚洲视频在线看网址| 99久久精品免费看国产四区| 久久精品国产免费观看| 亚洲日本无吗高清不卡| 国内精品久久久久伊人av| 国产盗摄视频在线观看| 欧美激情va永久在线播放| 欧美精品久久久久久久自慰| 粉嫩av一区二区三区免费观看| 国产成人精品在线| 日本午夜精品电影| 91免费版看片| 欧美激情图片区 | 国产精品极品美女在线观看免费| 亚洲精品中字| 国产一区二区三区色淫影院| 日韩一区二区欧美| 亚洲视频电影| 国产精自产拍久久久久久蜜| 色婷婷av一区二区三区在线观看| 一区二区三区电影| 国产一级不卡毛片| 国产精品裸体瑜伽视频| 欧洲精品久久久| 国产激情视频一区| 亚洲第一综合| 99精品视频播放| 真实国产乱子伦对白视频| 精品视频一区二区| 国产精品视频区1| 欧美在线一二三区| 深夜福利日韩在线看| 日本精品免费在线观看| 久久久亚洲精选| 亚洲一区二区中文字幕| 粉嫩av四季av绯色av第一区| 宅男一区二区三区| 国产噜噜噜噜噜久久久久久久久 | 欧美精品一区在线播放| 免费精品视频一区| 国产精品久久久久9999小说| 美女精品国产| 久久夜色撩人精品| 国产一区二区三区高清视频| 精品久久久久久乱码天堂| 国产欧亚日韩视频| 久久99国产综合精品女同| 国产在线观看精品| 精品国产乱码久久久久久久软件 | 国产成人精品免费久久久久| 日本不卡二区| 久久精品国产亚洲精品2020| 免费在线成人av| 欧美成人免费在线观看| 国产三区在线视频| 在线观看免费黄色片| 97精品视频在线播放| 天堂av在线中文| 久久久国产视频91| 国产区欧美区日韩区| 亚洲国产一区二区三区在线 | 午夜精品久久久久久久白皮肤| 91精品国自产在线观看| 日韩视频在线免费看| 国产精品久久久久免费a∨| 国产精品夜间视频香蕉| 欧美一区二区高清在线观看| 国产精品视频中文字幕91| 蜜桃传媒视频第一区入口在线看| 宅男一区二区三区| 日韩在线视频二区| 国产女主播一区二区三区| 性色av一区二区咪爱| 国产精品网红直播| av网址在线观看免费| 欧美亚洲成人免费| 一区二区三区av| 久久久久久久久国产| 男人添女人下部视频免费| 欧美日韩第一视频| 国产v亚洲v天堂无码久久久| 免费毛片网站在线观看| 亚洲中文字幕无码av永久| 国产白丝袜美女久久久久| 国产一区二区网| 日本精品视频在线观看| 精品卡一卡二| 少妇久久久久久| 成人av在线网址| 麻豆成人小视频| 日本福利视频导航| 色综合天天狠天天透天天伊人| 久久久之久亚州精品露出| 国产一区免费在线| 日本中文不卡| 在线视频福利一区| 久久国产一区二区三区| 北条麻妃av高潮尖叫在线观看| 日韩亚洲不卡在线| 亚洲一区二区三区四区中文| 国产精品久久久久aaaa九色| 久久99精品久久久久久三级| youjizz.com亚洲| 蜜臀精品一区二区| 全黄性性激高免费视频| 亚洲va久久久噜噜噜久久天堂| 欧美xxxx18性欧美| 国产成人精品最新| 久久久久九九九| 91九色在线观看视频| 国产精品一区在线免费观看| 狠狠色综合一区二区| 青青在线视频免费观看| 亚洲精品日产aⅴ| 中文字幕黄色大片| 久久精品色欧美aⅴ一区二区| 国产高清精品一区二区三区| 97碰在线观看| 成人精品久久av网站| 国产免费人做人爱午夜视频| 国内偷自视频区视频综合| 欧美日韩精品免费观看视一区二区| 欧美一区二区三区四区在线观看地址| 久久久久久12| 在线视频91| 中文字幕在线亚洲三区| 欧美人与物videos| 精品自拍视频在线观看| 国产精品老女人视频| 日韩在线观看免费av| 久久久久久九九九| 久久久精品一区| 日韩一级黄色av| 日韩在线视频免费观看| 视频直播国产精品| 久久精品免费电影| 国产精品久久久久9999| 国产精品盗摄久久久| 欧美猛交免费看| 一区二区三区的久久的视频| 亚洲视频在线观看日本a| 亚洲aa中文字幕| 欧美一区2区三区4区公司二百 | 欧美日韩国产999|