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

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

代寫CSE 231、代做Python設(shè)計(jì)程序

時(shí)間:2024-03-03  來(lái)源:合肥網(wǎng)hfw.cc  作者:hfw.cc 我要糾錯(cuò)



CSE 231 Spring 2024
Computer Project 05
1. Assignment Overview (learning objectives)
In this assignment, you will practice with files, lists and error-handling using exceptions. You are only allowed
to use Lists and tuples. Any use of other advanced data structures (e.g., Dictionaries, Classes, etc.) will result in
a zero on the project.
2. Important Note about submission
3. Assignment Deliverable
The deliverable for this assignment is the following file:
proj05.py – the source code for your Python program
Be sure to use the specified file name and to submit it for grading via Codio before the project deadline.
4. Assignment Background
Yu-Gi-Oh! Trading Card Game which is based on the manga series of the
same name and anime spin-off series Yu-Gi-Oh! Duel Monsters both
created by Kazuki Takahashi and were released in 1996 and 2000. As the
moment of writing this project, this franchise is currently celebrating its 25th
anniversary. This franchise has developed thousands of iconic cards like:
Dark Magician, Blue-Eyes White Dragon, Elemental Hero Neos, Stardust
Dragon, and much more.
As beloved as this series is with its strategic focus on monster cards, spell,
and trap cards, it is not a hobby for everybody. Collecting some of these
cards can be expensive, especially when they are popular in the competitive
circuit. This project will read a dataset of these cards and show their prices
on the market and how much does it cost to build a deck of these cards when
bought in said market. The files used in this project were adapted from the
following sources:
1) Card data: https://www.kaggle.com/datasets/ioexception/yugioh-cards/code
2) Decklists: https://ygoprodeck.com/
This assignment is worth 50 points (5.0% of course grade), and must be completed before 11:59 PM
EST on Tuesday, March 5th.
After the due date, your score will be deducted by 10% for every 5 hours late or a fraction of it. No
submissions will be accepted after 24 hours from the due date. The penalty will be applied on the
full project score.
The project will be automatically submitted by the due date (03/05). If you want to keep working on it
after the deadline with penalty, you must manually click on “Mark as uncompleted”, acknowledge the
penalty message and manually click on “Mark as completed” when done.
CSE 231 Spring 2024
These files contain the following information of each card:
a) card_id (str): Unique card identifier
b) card_name (str): Card name
c) card_type (str): “Spell”, “Trap”, and various type of “Monster” cards
d) card_description (str): Card summoning requirements and or card effects
e) card_race (str): Card species. For example: “Spellcaster”, “Dragon”, or “Counter Trap”
f) card_archetype (str): Name of group of cards that support specific characters: “Dark
Magician”
g) card_price (float): TCG player price for the card in the second market.
5. Assignment Specifications
1. You must implement the following functions:
a) open_file (prompt_str) ---- file pointer
This function repeatedly prompts the user for a filename (using the prompt string: prompt_str) until
the file is opened successfully. An error message should be shown if the file cannot be opened (check
the starter code or the strings.txt file for the appropriate strings). It returns a file pointer.
Use try-except to determine if the file can be opened. When opening the file, you need to use
encoding=" utf-8".
fp = open(filename, "r", encoding = " utf-8")
b) read_card_data(fp) ---- List of tuples
This function is designed to parse a file containing the dataset of Yu-Gi-Oh trading cards. It takes a file
pointer object (fp) as its parameter, which is returned by the open_file function. The function
returns a list of tuples, where each tuple represents a card in the dataset.
Each tuple consists of the following columns: id, name (limited to the first 45 characters), type,
description, race, archetype, and the card's TCGPlayer price. To understand the dataset's format and
identify the column indices we are interested in, it is recommended to open the CSV files in Excel or
any text editor.
The price is converted to a float within the tuple. After assembling the list of tuples, it is sorted in
ascending order based on price first and then by name.
c) search_cards(card_data, query, category_index) ---- List of tuples
This function returns a list of cards that contain the provided query string in the given category index. It
takes as its parameters: card_data (a list of cards like the list returned by read_card_data
function), query (a string to search in a selected category), and category_index (the index of the
category to search in the CATEGORIES list provided in the starter code). The returned list should be
sorted in ascending order by price first and then by name.
For example:
query = "Dark Magician"
category_index = 1 # Name
result = [(xxxxx, "Dark Magician", ...), (xxxxx, "Dark Magician Girl", ...), ...]
CSE 231 Spring 2024
d) read_decklist(fp, card_data) ---- List of tuples
This function creates a list of cards present in the current deck list (a YDK file). It takes as its
parameters: a file pointer object (fp) to a YDK file and a card_data (a list of cards like the list
returned by read_card_data function). The YDK file contains the ID of cards in a deck where
each line in the file is a card ID. The function reads the IDs from the file and searches for all the cards
by their “id” column.
The returned list should be sorted in ascending order by price first and then by name.
e) compute_stats(card_data) List_tuples,float,List_tuples,float,List_tuples,
float
This function takes as its parameter a card_data (a list of cards like the list returned by
read_card_data function). It finds the minimum price, maximum price, and median price for all
the cards in card_data. It also finds the list of cards that have the same value as the min, max, and
median. Then, it returns the list of cards with the min price, the minimum price, the list of cards with the
max price, the maximum price, the list of cards with the median price, and the median price.
All lists should be sorted by name.
f) display_data(card_data)
This function takes as its parameter a card_data (a list of cards like the list returned by
read_card_data function). It prints the contents of each card tuple in the card_data list. Then,
it prints the total price. The table should be formatted properly. There are 5 columns in the table. First, a
header line should be displayed:
i. the string 'Name': in a field width of 50
ii. the string 'Type': in a field width of 30
iii. the string 'Race': in a field width of 20
iv. the string 'Archetype': in a field width of 40
v. the string 'TCGPlayer': in a field width of 12
Then, the cards are displayed using the following formatting:
i. Name: in a field width of 50
ii. Type: in a field width of 30
iii. Race: in a field width of 20
iv. Archetype: in a field width of 40
v. Price: in a field width of 12 with precision 2 and the comma for the thousand
Finally, a line that shows the total price which is the sum of all the card prices should be displayed using
the following formatting:
i. the string 'Total': in a field width of 50
ii. an empty string '': in a field width of 30
iii. an empty string '': in a field width of 20
iv. an empty string '': in a field width of 40
v. Total: in a field width of 12 with precision 2 and the comma for the thousand
g) display_stats(min_cards, min_price, max_cards, max_price,
median_cards, median_price)
This function prints the output from compute_stats() function. First, the minimum price is
displayed with precision 2 and comma for the thousand. It is followed by all the card names that have a
price the same as the minimum price. The function will do the same for the maximum and median price
and data.
CSE 231 Spring 2024
h) main(): This function is the starting point of the program. The program prompts the user for an option
until the user decides to stop the program:
i. Prompt the card data filename (use the correct prompt from the starter code).
ii. Read the card data file and get the list of categories and the list of card tuples.
iii. Close the file.
iv. Prompt an option
v. Option 1 (Show all cards): This option shows details about each card in the dataset. It
will find and display the number of cards in the data set. Then, use
display_data()to show information of only the cheapest 50 cards in the dataset.
Then, find and print all the cards that have the maximum price, minimum price, and the
median price using the display_stats() function.
vi. Option 2 (Search for cards): Prompt for a query string pertaining to a specific column
in the card dataset. Re-prompt for category until the user enters a valid category (a
category that is in the CATEGORY list). You should convert the input category to
lowercase since the CATEGORY list items are all lowercase strings.
Get all cards that satisfy the provided query. Find the maximum, minimum, and median
values for all resulting cards in the search. If there are any cards that satisfies the query,
display the number of cards in the results, then output the card information and the results
like option 1. Otherwise, print that there are no cards in the category.
vii. Option 3 (Search decklist): Prompt for a decklist filename and build a list of cards that
have the same “card id” in the file. Show the card information; find the maximum,
minimum, and median prices and display them.
viii. Option 4: Stop the program.
ix. If the user does not enter any of these options, the program needs to display an error
message and prompt again until a valid option is selected.
6. Assignment Notes and Hints
1. The coding standard for CSE 231 is posted on the course website:
http://www.cse.msu.edu/~cse231/General/coding.standard.html
Items **9 of the Coding Standard will be enforced for this project.
2. The program will produce reasonable and readable output, with appropriate labels for all values
displayed.
3. Be sure to prompt the user for the inputs in the correct order. And, your program cannot prompt the user
for any supplementary inputs.
4. We provide a proj05.py program for you to start with.
5. You are not allowed to use advanced data structures such as dictionaries, classes, etc.
6. If you “hard code” answers, you will receive a grade of zero for the whole project. An example of hard
coding is to simply print the correct highest scores of a file rather than having the program find it in the
file and then print it.
7. Suggested Procedures
• Solve the problem using pencil and paper first. You cannot write a program until you have figured out
how to solve the problem. This first step can be done collaboratively with another student. However,
once the discussion turns to Python specifics and the subsequent writing of Python statements, you must
work on your own.
CSE 231 Spring 2024
• Cycle through the following steps to incrementally develop your program:
o Edit your program to add new capabilities.
o Run the program on Spyder and fix any errors.
o Use the Codio system to submit the current version of your program.
• Be sure to use the Codio system to submit the final version of your program.
• Be sure to log out when you leave the room, if you’re working in a public lab.
The last version of your solution is the program which will be graded by your TA. You should use the Codio
system to back up your partial solutions, especially if you are working close to the project deadline. That is the
easiest way to ensure that you won’t lose significant portions of your work if your machine fails or there are
other last-minute problems.
8. Grading Rubric
Computer Project #05 Scoring Summary
General Requirements
______ (4 pts) Coding Standard **8
 (descriptive comments, function header, etc...)
Implementation:
____ (2 pts) Pass test1
____ (2 pts) Pass test2
____ (2 pts) Pass test3
____ (2 pts) Pass test4
____ (2 pts) Pass test5
____ (2 pts) Pass test6
____ (12 pts) Pass hidden tests (4 pts each)
____ (14 pts) All functions work as specified.
(2 pt) open_file (Manual Grading)
-1 point if No try/except
-1 point if No while loop
 (2 pt) read_card_data
(2 pt) read_decklist
(2 pt) search_cards
(2 pt) compute_stats
(2 pt) display_data (Manual Grading)
(2 pt) display_stats (Manual Grading)
____ (8 pts) Pass All hidden functions tests.
 (2 pt) read_card_data
(2 pt) read_decklist
(2 pt) search_cards
(2 pt) compute_stats
Note:
• hard coding an answer earns zero points for the whole project.
• -10 points for not putting all your user interaction in your main().
• Use of any advanced data structures (such as lists, sets, dictionaries, classes,
etc.) earns zero points for the whole project.
CSE 231 Spring 2024
9. Test Cases
9.1 Function Unit Tests
Check the test files in the Project05 starter package. When you run one test file as you normally run a python
file in PyCharm. if an assertion error is generated, it means you failed the test. You can look at the test case .py
files to see the details for the tests.
9.2 Input/Output Tests
We provide the .txt files with all the test files (inputX.txt and output.txt where X is the test number).
If you fail a test, use diffchecker.com to check the difference between your output and the instructor output.
請(qǐng)加QQ:99515681  郵箱:99515681@qq.com   WX:codehelp 









 

掃一掃在手機(jī)打開當(dāng)前頁(yè)
  • 上一篇:CS 2410代做、代寫C/C++語(yǔ)言程序
  • 下一篇:代寫DTS203TC、C++,Java程序語(yǔ)言代做
  • 無(wú)相關(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ī)場(chǎng)巴士4號(hào)線
    合肥機(jī)場(chǎng)巴士4號(hào)線
    合肥機(jī)場(chǎng)巴士3號(hào)線
    合肥機(jī)場(chǎng)巴士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九色精品| 日韩电影免费在线看| 国产日韩欧美高清免费| 色婷婷亚洲mv天堂mv在影片| 999精品视频| 日韩三级不卡| 欧美激情在线| 久久久久久久性潮| 久久电影tv| 中文精品视频| 欧美日韩水蜜桃| 中文字幕一区二区三区四区久久 | 国产精选久久| 狠狠久久综合| www.精品| 国产精品传媒精东影业在线| 天天天综合网| 给我免费播放日韩视频| 亚洲理论电影| 综合一区av| 国产一区二区三区的电影 | 欧美男gay| 亚洲精品一二| 久久精品国产亚洲a| 欧美1级2级| 91青青国产在线观看精品| 99亚洲一区二区| 午夜精品一区二区三区国产| 日本成人在线电影网| 群体交乱之放荡娇妻一区二区| 欧美三级一区| 成人在线视频国产| 日本成人在线电影网| 久久久久久一区二区三区四区别墅| а√天堂中文在线资源8| 久久国产福利| 香蕉久久夜色精品国产| 欧美va天堂在线| 欧美亚洲国产激情| 久久免费av| 激情欧美日韩| 国产一区清纯| 欧美午夜精彩| 亚洲小说欧美另类社区| 999国产精品999久久久久久| 精品国产欧美日韩| 精品高清在线| 免费观看亚洲视频大全| 麻豆精品国产| 国产精品jk白丝蜜臀av小说 | 巨乳诱惑日韩免费av| 狠狠色丁香久久综合频道| 欧美日韩日本国产亚洲在线 | 天堂资源在线亚洲| 狠狠操综合网| 亚洲综合电影一区二区三区| 日韩精品一级中文字幕精品视频免费观看| 国产精品呻吟| 国产精品黑丝在线播放| 日韩一区二区三区免费播放| 天天综合在线观看| 日本午夜精品一区二区三区电影| 亚洲国产免费看| 国产va免费精品观看精品视频| 亚欧洲精品视频在线观看| 精品国产亚洲一区二区三区在线| 日韩欧美中文在线观看| 大香伊人久久精品一区二区| 久久久久在线| av成人国产| 日本在线播放一二三区| 激情久久一区二区| 青青草一区二区三区| 精品一区二区三区视频在线播放| 久久爱www.| 欧美日韩性在线观看| 一本不卡影院| 日韩pacopacomama| 日韩精品亚洲一区| 国产在线观看91一区二区三区| 嫩呦国产一区二区三区av| 99久久精品国产亚洲精品| 国产精品视区| 在线最新版中文在线| 国产日韩精品视频一区二区三区| 欧美三级一区| 久久久精品午夜少妇| 红桃视频亚洲| 国产精品字幕| 伊人久久大香线蕉综合影院首页| 视频一区日韩精品| 狠狠色丁香久久综合频道| 伊人色综合一区二区三区影院视频 | 国产粉嫩在线观看| 美女免费视频一区二区| 日韩av中文在线观看| 欧美丝袜一区| 中文字幕在线官网| 亚洲区第一页| 久久狠狠久久| 男女精品网站| 国产精品久久久久9999高清| 日韩高清在线免费观看| 91久久高清国语自产拍| 88xx成人免费观看视频库| 国产精品一区二区三区av麻| 亚洲小说欧美另类婷婷| 日韩精品91| www.成人在线.com| 1024精品一区二区三区| 久草在线资源福利站| 欧美精品国产一区二区| 久久久久国内| 日韩欧美不卡| 亚洲品质自拍| 99日韩精品| 青青草成人在线观看| 国产成人tv| www.色在线| 久久99视频| 国产一级一区二区| 麻豆精品一区二区三区| 精品少妇一区| 亚洲十八**毛片| 激情不卡一区二区三区视频在线| 99亚洲精品| 久久资源综合| 亚洲性色视频| 久久精品av麻豆的观看方式| 美日韩黄色大片| 美女网站视频一区| 亚洲成av人片在线观看www| 国产精品成人a在线观看| 国产麻豆精品| 亚洲欧洲一区二区天堂久久| 青草国产精品久久久久久| 亚洲啊v在线观看| 国产精品麻豆成人av电影艾秋| 免费一区二区三区在线视频| 色一区二区三区四区| 亚洲色图美女| 视频一区二区欧美| 亚洲瘦老头同性70tv| 日韩中文字幕麻豆| 国产午夜一区| 成人亚洲一区二区| 日本免费一区二区视频| 亚洲最新无码中文字幕久久| 蜜桃在线一区| 成人福利一区二区| 久久久久蜜桃| 亚洲精品九九| 欧美一级专区| 日韩电影在线免费观看| 亚洲性色av| 精品三级av在线导航| 免费在线亚洲欧美| 在线精品国产| 国产亚洲一区| 亚洲日本天堂| 91精品久久久久久久蜜月| 麻豆成人综合网| 亚洲一区二区三区免费在线观看 | 日本免费精品| 日韩在线视屏| 激情久久五月| 国产真实有声精品录音| 都市激情亚洲一区| 欧美sss在线视频| 亚洲日本国产| 大桥未久在线视频| 精品久久久久久久| 日日夜夜精品免费视频| 免费中文字幕日韩欧美| 成人性生交大片免费看96| 一区二区三区福利| 日韩一级大片| 国产精品丝袜在线播放| 日韩国产精品久久久久久亚洲| 亚洲免费网址| 国产精品任我爽爆在线播放| 另类人妖一区二区av| 日韩一区精品视频| 欧美色图婷婷| 9999在线精品视频| 亚洲成人看片| 欧美日韩国产亚洲一区| 亚洲三级av| 亚洲九九精品| 日韩国产一区| 国产亚洲毛片在线| 日韩精品免费一区二区三区| 国产日产一区| 美腿丝袜亚洲一区|