91精品国产91久久久久久_国产精品二区一区二区aⅴ污介绍_一本久久a久久精品vr综合_亚洲视频一区二区三区

合肥生活安徽新聞合肥交通合肥房產(chǎn)生活服務(wù)合肥教育合肥招聘合肥旅游文化藝術(shù)合肥美食合肥地圖合肥社保合肥醫(yī)院企業(yè)服務(wù)合肥法律

CP1404程序代做、代寫Java,c++編程設(shè)計(jì)

時(shí)間:2023-12-09  來源:合肥網(wǎng)hfw.cc  作者:hfw.cc 我要糾錯(cuò)



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

掃一掃在手機(jī)打開當(dāng)前頁
  • 上一篇:代做CS3357A、代寫Python設(shè)計(jì)編程
  • 下一篇:CSCI 2122代寫、代做C++設(shè)計(jì)程序
  • 無相關(guān)信息
    合肥生活資訊

    合肥圖文信息
    2025年10月份更新拼多多改銷助手小象助手多多出評(píng)軟件
    2025年10月份更新拼多多改銷助手小象助手多
    有限元分析 CAE仿真分析服務(wù)-企業(yè)/產(chǎn)品研發(fā)/客戶要求/設(shè)計(jì)優(yōu)化
    有限元分析 CAE仿真分析服務(wù)-企業(yè)/產(chǎn)品研發(fā)
    急尋熱仿真分析?代做熱仿真服務(wù)+熱設(shè)計(jì)優(yōu)化
    急尋熱仿真分析?代做熱仿真服務(wù)+熱設(shè)計(jì)優(yōu)化
    出評(píng) 開團(tuán)工具
    出評(píng) 開團(tuán)工具
    挖掘機(jī)濾芯提升發(fā)動(dòng)機(jī)性能
    挖掘機(jī)濾芯提升發(fā)動(dòng)機(jī)性能
    海信羅馬假日洗衣機(jī)亮相AWE  復(fù)古美學(xué)與現(xiàn)代科技完美結(jié)合
    海信羅馬假日洗衣機(jī)亮相AWE 復(fù)古美學(xué)與現(xiàn)代
    合肥機(jī)場巴士4號(hào)線
    合肥機(jī)場巴士4號(hào)線
    合肥機(jī)場巴士3號(hào)線
    合肥機(jī)場巴士3號(hào)線
  • 短信驗(yàn)證碼 目錄網(wǎng) 排行網(wǎng)

    關(guān)于我們 | 打賞支持 | 廣告服務(wù) | 聯(lián)系我們 | 網(wǎng)站地圖 | 免責(zé)聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 hfw.cc Inc. All Rights Reserved. 合肥網(wǎng) 版權(quán)所有
    ICP備06013414號(hào)-3 公安備 42010502001045

    91精品国产91久久久久久_国产精品二区一区二区aⅴ污介绍_一本久久a久久精品vr综合_亚洲视频一区二区三区
    亚洲另类色综合网站| 久久国产精品99国产| 午夜亚洲激情| 欧美日韩黄视频| 国产精品你懂的| 日本欧美一区二区三区乱码 | av成人黄色| 欧美精品1区2区3区| 中文字幕+乱码+中文字幕一区| 日韩中文字幕区一区有砖一区 | 日韩一区二区三区视频在线观看| 国产精品嫩草影院av蜜臀| 免费成人在线观看视频| 欧美在线视屏| 一本色道久久综合亚洲91| 久久午夜色播影院免费高清| 亚洲va欧美va人人爽| 不卡的电影网站| 色婷婷综合久久久中文字幕| 国产清纯美女被跳蛋高潮一区二区久久w | 亚洲成人精品影院| 色综合色综合色综合色综合色综合 | 精品国产免费一区二区三区四区| 亚洲国产精品一区二区www| av成人老司机| 欧美人xxxx| 亚洲二区视频在线| 午夜欧美视频| 日韩一区二区三区观看| 午夜日韩在线观看| 狠狠色综合网| 久久香蕉国产线看观看99| 日韩av电影一区| 一区二区不卡在线视频 午夜欧美不卡'| 日韩精品一区二区在线观看| 日韩国产欧美在线播放| 亚洲精品国产日韩| 欧美国产国产综合| 成人在线视频一区| 91 com成人网| 蜜桃传媒麻豆第一区在线观看| 亚洲日本精品国产第一区| 久久久三级国产网站| 国模套图日韩精品一区二区 | 精品亚洲免费视频| 久久综合一区二区三区| 亚洲免费高清视频在线| 欧美视频导航| 久久久国产精品午夜一区ai换脸| 国产成人午夜片在线观看高清观看| 另类av一区二区| 亚洲自拍偷拍麻豆| 99精品欧美一区二区三区| 国产婷婷精品av在线| 99久久婷婷国产| 久久综合九色综合欧美亚洲| 国产成人在线观看| 91精品国产综合久久精品麻豆| 蜜桃视频在线观看一区二区| 一本到不卡精品视频在线观看| 亚洲国产精品一区二区久久恐怖片 | 91精品国产日韩91久久久久久| 久久精品国产99国产| 欧美性猛片xxxx免费看久爱| 日本视频免费一区| 欧美色大人视频| 国产在线播放一区三区四| 91麻豆精品国产91久久久资源速度 | 亚洲国产一区二区三区a毛片 | 国产精品一区毛片| 亚洲国产日韩av| 久久综合九色综合久99| 美女一区二区视频| 777欧美精品| 99视频在线精品| 国产视频亚洲色图| 亚洲福利久久| 亚洲bdsm女犯bdsm网站| 91福利视频久久久久| 精品一区二区三区影院在线午夜| 欧美精品vⅰdeose4hd| 成人午夜在线免费| 欧美激情一区不卡| 一区二区三区精品视频在线观看| 亚洲午夜av在线| 欧美日韩一区二区三区在线看| 国产精品资源在线看| 国产清纯在线一区二区www| 在线精品一区二区| 日韩av不卡一区二区| 欧美精三区欧美精三区| 91亚洲精品久久久蜜桃网站| 综合激情网...| 色婷婷久久久综合中文字幕| 国产大陆a不卡| 欧美国产国产综合| 久久一日本道色综合久久| 国产精品亚洲午夜一区二区三区 | av在线不卡网| 国产精品国产a| 久久综合中文色婷婷| 国产一区二区网址| 国产欧美一区二区在线| 亚洲资源av| 成人性生交大片免费看在线播放| 欧美激情在线一区二区三区| 老牛国产精品一区的观看方式| 国产成人鲁色资源国产91色综| 国产精品免费看片| 色吧成人激情小说| 色综合天天综合| 日韩国产在线一| 久久九九久精品国产免费直播| 国产精品欧美日韩一区| 国产高清无密码一区二区三区| 国产精品久久久久久久久晋中| 在线视频欧美区| 国产精品sm| 国产一区二区三区香蕉| 亚洲区小说区图片区qvod| 欧美日本韩国一区| 亚洲欧洲日本国产| 国产 日韩 欧美大片| 亚洲高清免费在线| 久久亚洲精品国产精品紫薇| 久久看片网站| 欧美日本一区二区高清播放视频| 免费人成黄页网站在线一区二区| 中文字幕精品一区二区精品绿巨人| 欧美性大战久久| 91久久黄色| 成人美女视频在线观看18| 图片区小说区国产精品视频| 国产精品人成在线观看免费| 欧美福利一区二区| 久久久久成人精品免费播放动漫| 欧美高清日韩| 国产99久久久久| 伦理电影国产精品| 亚洲福利一二三区| 国产精品伦理一区二区| 欧美大片免费久久精品三p| 色综合久久久久久久| 亚洲黄网站黄| 欧美在线三区| 丁香六月久久综合狠狠色| 免费看日韩精品| 亚洲一区在线视频| 国产精品进线69影院| 久久亚洲综合av| 日韩你懂的电影在线观看| 欧美午夜精品一区| 免费一区视频| 亚洲一区二区三区高清| 亚洲国产婷婷| 韩国免费一区| 午夜精品999| 欧美xxx在线观看| 成人app在线观看| 国产成人免费av在线| 国产乱淫av一区二区三区| 蜜臀av一区二区在线免费观看 | 欧美日韩在线一区二区| 老司机午夜精品视频| 国产精品一区在线播放| 亚洲另类视频| 9色精品在线| 亚洲国产精品一区在线观看不卡| 欧美国产激情| 欧美日本中文| 国产精品二区在线观看| 欧美视频福利| 亚洲性色视频| 亚洲夫妻自拍| 一本色道久久综合| 欧美一级专区| 91国偷自产一区二区开放时间| 久久综合九色综合网站| 91黄色免费版| 欧美日韩高清影院| 日韩欧美在线综合网| 精品乱人伦一区二区三区| 久久久www成人免费毛片麻豆 | 亚洲调教视频在线观看| 伊大人香蕉综合8在线视| 在线免费高清一区二区三区| 亚洲精选成人| 久久久青草婷婷精品综合日韩| 日本精品裸体写真集在线观看| 欧美日韩一区小说| 日韩欧美二区三区| 国产欧美1区2区3区| 自拍偷拍欧美精品| 午夜精品久久久久久不卡8050| 日本欧美在线看| 成人开心网精品视频| 午夜精品久久| 免费日韩av片| 91精品国产入口在线| 国产三级一区二区三区|