99爱在线视频这里只有精品_窝窝午夜看片成人精品_日韩精品久久久毛片一区二区_亚洲一区二区久久

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

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

    合肥圖文信息
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    出評 開團工具
    出評 開團工具
    挖掘機濾芯提升發動機性能
    挖掘機濾芯提升發動機性能
    海信羅馬假日洗衣機亮相AWE  復古美學與現代科技完美結合
    海信羅馬假日洗衣機亮相AWE 復古美學與現代
    合肥機場巴士4號線
    合肥機場巴士4號線
    合肥機場巴士3號線
    合肥機場巴士3號線
    合肥機場巴士2號線
    合肥機場巴士2號線
    合肥機場巴士1號線
    合肥機場巴士1號線
  • 短信驗證碼 豆包 幣安下載 AI生圖 目錄網

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

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

    99爱在线视频这里只有精品_窝窝午夜看片成人精品_日韩精品久久久毛片一区二区_亚洲一区二区久久

          9000px;">

                欧美综合视频在线观看| 日韩国产高清影视| 91国模大尺度私拍在线视频| 91麻豆精品视频| 欧美一区二区高清| 久久久国际精品| 亚洲黄色性网站| 欧美96一区二区免费视频| 美女网站色91| 91麻豆精品一区二区三区| 日韩一区二区在线观看视频| 国产精品久久久久久久第一福利| 亚洲欧美另类在线| 亚洲国产视频a| 国产a视频精品免费观看| av激情综合网| 日韩欧美高清一区| 一区二区三区在线观看国产| 美日韩一区二区| 91丨porny丨蝌蚪视频| 久久众筹精品私拍模特| 亚洲老妇xxxxxx| 蜜桃在线一区二区三区| 91色porny蝌蚪| 久久精品视频在线看| 久久激情五月婷婷| 日本久久一区二区| 国产欧美一区二区精品婷婷 | 在线综合视频播放| 亚洲综合男人的天堂| 成人18视频日本| 久久人人97超碰com| 日韩精品乱码av一区二区| 成人网男人的天堂| 久久久久久99久久久精品网站| 秋霞午夜鲁丝一区二区老狼| 日本精品一级二级| 亚洲第一福利一区| 欧美午夜免费电影| 欧美猛男gaygay网站| 国产成人午夜精品5599| 久久亚洲精品小早川怜子| 国产91露脸合集magnet| 亚洲欧洲精品一区二区三区不卡| 91欧美激情一区二区三区成人| 一色桃子久久精品亚洲| 色狠狠av一区二区三区| 亚洲国产中文字幕| 欧美一区二区黄| 国产成人精品亚洲日本在线桃色| 欧美国产综合一区二区| 日韩亚洲欧美一区二区三区| 国产真实乱子伦精品视频| 精品国产污污免费网站入口 | 中文字幕在线一区| eeuss鲁一区二区三区| 一区二区三区欧美激情| 国产偷v国产偷v亚洲高清| 亚洲一区二区三区中文字幕在线| 91精品国产品国语在线不卡| 国精产品一区一区三区mba桃花| 久久精品亚洲国产奇米99| 色婷婷综合久久久中文字幕| 日韩中文字幕亚洲一区二区va在线| 欧美一卡二卡在线| 亚洲一区二区三区四区五区中文 | 亚洲丶国产丶欧美一区二区三区| 6080国产精品一区二区| 成人综合在线观看| 亚洲大片在线观看| 国产精品一区二区男女羞羞无遮挡| 最近日韩中文字幕| 亚洲免费观看高清| 精品国产污污免费网站入口 | 国产精品乱码人人做人人爱| 欧美三级日韩三级国产三级| 国产成人午夜视频| 九九视频精品免费| 亚洲精品视频在线看| 日韩欧美亚洲另类制服综合在线| 国产精品一区一区三区| 日韩在线一二三区| 欧美一区二区三区四区五区 | 91影院在线观看| 精品国产成人在线影院| 色悠悠亚洲一区二区| 国产精品影音先锋| 久久99精品国产91久久来源| 亚洲国产成人porn| 一区二区在线观看视频在线观看| 欧美视频一区二| 成人ar影院免费观看视频| 久久电影国产免费久久电影| 亚洲国产精品麻豆| 日韩毛片高清在线播放| 国产日韩高清在线| 久久精品一区二区三区四区| 欧美成人国产一区二区| 91精品国产综合久久福利| 在线一区二区视频| 91免费看片在线观看| 99国产精品99久久久久久| 成人app网站| 国产精品一区二区三区网站| 国产又黄又大久久| 丝袜脚交一区二区| 日韩影院精彩在线| 色综合久久六月婷婷中文字幕| 91丨porny丨国产入口| 久久综合久久综合久久综合| 秋霞电影网一区二区| 欧美丝袜自拍制服另类| 中文字幕在线一区| 久久精品国产免费看久久精品| 91传媒视频在线播放| 亚洲人一二三区| 国产91丝袜在线观看| 久久只精品国产| 韩日av一区二区| 色视频欧美一区二区三区| 欧美激情艳妇裸体舞| 久草热8精品视频在线观看| 91无套直看片红桃| 久久蜜桃一区二区| 亚洲一卡二卡三卡四卡无卡久久 | 欧美一区中文字幕| 欧美变态tickle挠乳网站| 国产精品天干天干在观线| 91精品中文字幕一区二区三区| 国产精品理论在线观看| 久久精品国产一区二区| ww亚洲ww在线观看国产| 一区二区三区免费| 欧美日本韩国一区二区三区视频 | 国产一区二区影院| 久久久久国产精品麻豆ai换脸| 久88久久88久久久| 欧美日韩国产综合草草| 日本不卡一区二区三区| 成人性生交大片免费看中文| 综合欧美亚洲日本| 美女网站色91| 国产精品乱码一区二三区小蝌蚪| 日产国产高清一区二区三区 | 精品日韩av一区二区| 裸体在线国模精品偷拍| 91毛片在线观看| 免费成人在线观看| 色婷婷国产精品综合在线观看| 亚洲成人在线网站| jlzzjlzz欧美大全| 无吗不卡中文字幕| 欧美日韩美少妇| 一区二区三区四区中文字幕| 3d动漫精品啪啪一区二区竹菊| 国产精品免费丝袜| 欧美日韩专区在线| 亚洲欧洲性图库| 欧美日韩国产高清一区二区三区 | 亚洲日韩欧美一区二区在线| 懂色av中文一区二区三区| 日韩欧美专区在线| 国产一区福利在线| 欧美一级欧美一级在线播放| 成人一区二区三区视频在线观看| 天堂一区二区在线免费观看| 日韩美女一区二区三区四区| 久久婷婷综合激情| 国产精品888| 中文字幕制服丝袜成人av| 国产精品1区2区3区在线观看| 亚洲另类在线视频| 一区二区高清在线| 中文字幕欧美三区| 久久精品亚洲一区二区三区浴池| 国产精品五月天| 久久精品国产99| 久久蜜桃av一区精品变态类天堂 | 久久夜色精品一区| 日韩国产欧美视频| 一级女性全黄久久生活片免费| 欧美日韩国产高清一区二区三区| 午夜精品视频一区| 国产精品福利一区二区三区| 粉嫩蜜臀av国产精品网站| 亚洲午夜精品久久久久久久久| 国产一区二区三区日韩| 亚洲国产精品一区二区www在线| 欧美日韩一区二区三区不卡 | 欧美性生活久久| 国产米奇在线777精品观看| 精品国产a毛片| 欧美日韩一本到| 蜜桃一区二区三区在线| 亚洲人妖av一区二区| 精品国内二区三区| 成人h精品动漫一区二区三区| 美女视频网站黄色亚洲| 久久精品综合网| 欧美精品三级在线观看|