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

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

代寫CMSC 150、代做Python設(shè)計(jì)程序
代寫CMSC 150、代做Python設(shè)計(jì)程序

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



README.md 2025-01-27
1 / 3
Simple Chatbot
CMSC 150-[01/02] - Spring 2025 - Project 1
Introduction
Most AI agents, particularly chatbots (see ELIZA, one of the first chatbots and Eugene Gootsman, the first
chatbot to pass the Turing Test), are really just made up of complex "if-else" statements. For this project, you
are going to make an extremely simple chatbot. In it, you'll check for keywords and phrases and have the
chatbot give unique responses.
Topics Covered
variable assignment and updating
user input
print statements and formatting
if-else conditionals
comparison
arithmetic
boolean conditioning
data types
Starter Code
A starter code file is given for you in simplebot-p1-TEMPLATE.py (replace 'TEMPLATE' with your last name). In
it, there are some global variables needed for the assignment (see Instructions), an infinite while loop to keep
the interaction going, and user input.
Instructions
1. Before the while loop, ask the user for their name and save it to the user_name variable.
2. Inside the while loop, write a total of 9 conditional statements (if, elif, else) that prints out a response
to user input. These responses must be distinct.
3 statements must check if a certain word is in the input
Example:
 if "hello" in user_input:
 print("Hello!")
3 additional statements must check if an exact phrase is said by the user
Example:
README.md 2025-01-27
2 / 3
 if user_input == "What is your favorite color?":
 print("My favorite color is black.")
1 additional statement must check if a "magic word" (saved in the variable MAGIC_WORD) is said
by the user. If so, the counter value magic_word_ct must be incremented by 1.
1 additional statement must check if the user has said 2 passwords -- saved as variables
PASSWORD1 and PASSWORD2 -- in the same input. If so, set the unlocked_password to true. Both
words must be said in the same input in order to activate. The words cannot be the same.
1 additional statement acts as a default statement regardless of the user input. 1 randomly
chosen response out of 4 possible responses must be printed out. These 4 possible condition
checks do not count towards the 9 total.
HINT: Use the random.randint(min,max) function to randomly pick a response
The user's name and the bot's name must be printed at some point during the program runtime.
This can be at the beginning, during the chat session, or at the end.
3. Outside of the while loop, print a goodbye message and 2 additional sentences based on 2 conditions:
If the magic word was said, print how many times it was said during the chat session.
If the user correctly said both passwords, and the unlocked_password is true, print the
SECRET_MESSAGE.
If neither of these conditions were met, you don't have to print anything else.
Example Use Case
This chat shows the conversation between the user "M" and a chatbot named "Alphonse" -- who is secretly a
cow. The user input is denoted with a ">" before the phrase.
The responses and inputs are annotated on the right side for the different phrases, words, magic words, and
password activations.
Note: Not all possible responses are shown and some default responses are repeated.
Note 2: Notice that when the user inputs the magic word and password checks, the bot prints a default response.
You don't have to have a unique response for these checks if you want to keep the magic word and passwords a
secret to the user.
Rules
DO NOT rename the variables included with the starter code
DO NOT remove the while loop -- it is necessary to run the constant chat or the breaking condition
statement (see lines 48+49) -- it is necessary to end the program. You are, however, allowed to change
the exit command variable EXIT_COMMAND at the top of the code.
Libraries (aside from the import random that is already included) are NOT ALLOWED to be imported.
This includes built-in Python libraries and external libraries.
Only use ASCII characters. Avoid using special characters or emojis.
README.md 2025-01-27
3 / 3
As per the syllabus, and for all assignments in this class, CODE FROM GENERATIVE AI IS PROHIBITED.
The code you turn in is your own. The code will be checked for plagiarism.
Hints
Be careful about the ordering of the conditionals and use of if-elif-else for these statements. The magic
word and password checks take the highest priority.
Have your bot ask the user questions after a response. It facilitates better chatting.
Make your default responses generic. It makes the chatbot more realistic and facilitates better chatting.
Test your chatbot out with friends and family and see how your bot responds!
Submission
Submit ONLY the Python file labeled simplebot-p1-[LASTNAME].py (where [LASTNAME] is your last name)
to Blackboard. The project is due at 2/16 11:59pm. For each hour, h, that it is late, your grade is reduced by h
points.
Rubric (100 pts)
General
[5 pts] Correct file is turned in and is correctly named (see Submission above).
[5 pts] Code runs without errors.
[10 pts] Code has header documentation -- name, date, class course name and section, and program
description
[10 pts] while statement loop and exiting condition are not modified
Bot Interaction
[10 pts] The responses are all different.
[5 pts] The user's name is saved and printed in at least one of the responses.
[5 pts] The bot's name is saved and printed in at least one of the responses.
[10 pts] 3 conditionals that check if a word is in the input (word-based conditional)
[10 pts] 3 conditionals that check if the entire input exactly matches a phrase (phrase-based
conditional)
[10 pts] 1 default conditional with 4 possible responses chosen at random
Ending Interaction
[10 pts] The magic word count is incremented, printed at the end of the session, and the correct
number of times it is said by the user is accurate.
[10 pts] The 2 passwords are different and the secret message is printed at the end if both words are
said in one user input during the session.

請(qǐng)加QQ:99515681  郵箱:99515681@qq.com   WX:codinghelp


 

掃一掃在手機(jī)打開當(dāng)前頁(yè)
  • 上一篇:代寫CS536、代做C/C++,Java編程
  • 下一篇:易分期全國(guó)客服電話-易分期24小時(shí)人工服務(wù)熱線
  • 無(wú)相關(guān)信息
    合肥生活資訊

    合肥圖文信息
    流體仿真外包多少錢_專業(yè)CFD分析代做_友商科技CAE仿真
    流體仿真外包多少錢_專業(yè)CFD分析代做_友商科
    CAE仿真分析代做公司 CFD流體仿真服務(wù) 管路流場(chǎng)仿真外包
    CAE仿真分析代做公司 CFD流體仿真服務(wù) 管路
    流體CFD仿真分析_代做咨詢服務(wù)_Fluent 仿真技術(shù)服務(wù)
    流體CFD仿真分析_代做咨詢服務(wù)_Fluent 仿真
    結(jié)構(gòu)仿真分析服務(wù)_CAE代做咨詢外包_剛強(qiáng)度疲勞振動(dòng)
    結(jié)構(gòu)仿真分析服務(wù)_CAE代做咨詢外包_剛強(qiáng)度疲
    流體cfd仿真分析服務(wù) 7類仿真分析代做服務(wù)40個(gè)行業(yè)
    流體cfd仿真分析服務(wù) 7類仿真分析代做服務(wù)4
    超全面的拼多多電商運(yùn)營(yíng)技巧,多多開團(tuán)助手,多多出評(píng)軟件徽y1698861
    超全面的拼多多電商運(yùn)營(yíng)技巧,多多開團(tuán)助手
    CAE有限元仿真分析團(tuán)隊(duì),2026仿真代做咨詢服務(wù)平臺(tái)
    CAE有限元仿真分析團(tuán)隊(duì),2026仿真代做咨詢服
    釘釘簽到打卡位置修改神器,2026怎么修改定位在范圍內(nèi)
    釘釘簽到打卡位置修改神器,2026怎么修改定
  • 短信驗(yàn)證碼 寵物飼養(yǎng) 十大衛(wèi)浴品牌排行 suno 豆包網(wǎng)頁(yè)版入口 wps 目錄網(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

    国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看
    成人综合视频在线| 国产综合视频在线观看| 日韩av片免费在线观看| 国产主播在线一区| 久久久国产精品亚洲一区| 亚洲精品日韩av| 成人av免费电影| 九九综合九九综合| 蜜桃久久影院| 国产精品久久一| 日本一本a高清免费不卡| 91精品久久久久久久久久| 欧美激情综合色综合啪啪五月 | 狠狠爱一区二区三区| zzjj国产精品一区二区| 秋霞在线观看一区二区三区| 久久爱av电影| 日韩国产小视频| 久久精品aaaaaa毛片| 无码人妻精品一区二区蜜桃网站 | 久久久精品一区二区| 日本欧美中文字幕| 久久人人爽人人爽人人片av高请| 精品国产乱码久久久久久郑州公司| 免费在线国产精品| 国产精品美女网站| 精品一区二区视频| 另类美女黄大片| 国产一区 在线播放| 久久av在线播放| 国产美女久久精品香蕉69| 欧美激情日韩图片| 91麻豆国产精品| 日韩国产精品一区二区| 日韩视频永久免费观看| 男人舔女人下面高潮视频| 国产精品欧美激情在线观看| 国内一区在线| 国产精品免费一区二区三区观看 | 亚洲精品中字| 久久久成人精品一区二区三区| 欧美一区二区大胆人体摄影专业网站 | 欧美日韩国产二区| 成人精品视频一区二区| 亚洲国产成人不卡| 久久国产精品网| 美女一区视频| 亚洲精品一区二| 久久久久久久久91| 国产原创精品| 亚洲v欧美v另类v综合v日韩v| 国产成人黄色av| 黄色一级免费大片| 一区二区三区欧美在线| 久久婷婷五月综合色国产香蕉| 欧美日韩激情视频在线观看| 久久综合国产精品台湾中文娱乐网| 99国内精品久久久久久久软件| 视频一区二区三区在线观看| 久久国产一区二区三区| 国产噜噜噜噜久久久久久久久| 丁香六月激情网| 国产精品欧美激情| 91av网站在线播放| 黄色免费观看视频网站| 亚洲不卡中文字幕无码| 日韩天堂在线视频| 高清视频在线观看一区| 日韩免费观看av| 欧美激情精品久久久久久黑人 | 国产午夜福利100集发布| 亚洲免费在线精品一区| 久久久av免费| 91精品久久久久久久久久久| 黄色一级片av| 日韩国产精品一区二区| 一区二区三区av| 国产精品视频内| 久久人人九九| 国产欧美自拍视频| 欧美一级二级三级| 亚州国产精品久久久| 久久成人人人人精品欧| 日韩一级黄色av| 高清一区二区三区日本久| 欧美日韩另类综合| 亚洲国产欧洲综合997久久| 国产精品久久久久久久久粉嫩av| 国产成人艳妇aa视频在线| 99久热re在线精品视频| 国语自产精品视频在线看| 日韩av中文字幕第一页| 亚洲一区二区久久久久久| 欧美成在线视频| 国产精品日韩久久久久| 视频直播国产精品| 国产成人精彩在线视频九色| 91免费在线视频| 国产免费裸体视频| 欧美国产视频一区| 日本欧美精品在线| 懂色一区二区三区av片| 亚洲午夜精品久久久中文影院av| 久久亚洲精品国产亚洲老地址| 按摩亚洲人久久| 久久99精品久久久水蜜桃| 久久综合入口| 97人人干人人| 成人免费91在线看| 成人精品水蜜桃| av免费网站观看| 成人中文字幕av| 99在线免费视频观看| 成人免费91在线看| 成人免费福利在线| 国产精品专区h在线观看| 国产在线精品成人一区二区三区| 黄色av免费在线播放| 激情综合网婷婷| 欧美激情第一页在线观看| 欧美午夜欧美| 欧美 日韩 亚洲 一区| 欧美日韩二三区| 日韩欧美一区二区三区久久婷婷 | 欧美视频在线播放一区| 青青草国产免费| 欧美最猛性xxxx| 日本一区二区三区四区五区六区| 色欲av无码一区二区人妻| 欧美一乱一性一交一视频| 日韩女在线观看| 狠狠久久综合婷婷不卡| 国产一区在线免费观看| 国产欧美一区二区白浆黑人| 福利精品视频| 91精品国产自产在线老师啪| 91国自产精品中文字幕亚洲| 久久理论片午夜琪琪电影网| 久久久在线视频| 国产z一区二区三区| 日韩在线视频国产| 国产精品美女网站| 精品久久久久久无码国产| 在线观看一区欧美| 亚洲国产欧美日韩| 欧美一区二视频在线免费观看| 免费看欧美黑人毛片| αv一区二区三区| 久久综合婷婷综合| 久久久999国产精品| 久久的精品视频| 亚洲狠狠婷婷综合久久久| 日本不卡在线观看视频| 免费中文日韩| 国产精品午夜国产小视频| 国产夫妻自拍一区| 国产精品色视频| 欧美xxxx18国产| 色综合久久久久无码专区| 黄色国产精品一区二区三区| 丰满少妇大力进入| 精品国产一区二区三区久久久| 久久成年人视频| 色综合666| 国产又粗又爽又黄的视频| 国产精品18久久久久久麻辣| 国产精品日韩高清| 午夜精品99久久免费| 免费久久久久久| 久热免费在线观看| 久久97精品久久久久久久不卡| 日本成人在线不卡| 国产九色精品| 色狠狠久久aa北条麻妃| 欧美精品成人91久久久久久久| 日本在线播放不卡| 国产日韩欧美自拍| 久久久久久久久久网| 在线视频亚洲自拍| 欧美精品一区在线| 91精品91久久久中77777老牛| 国产精品旅馆在线| 性欧美长视频免费观看不卡| 蜜桃成人免费视频| 久久久久久久久久久久久国产精品 | 日韩在线国产| 国产视频一区二区三区四区| 国产黄色特级片| 色综合天天综合网国产成人网| 欧美中日韩一区二区三区| www.日日操| 欧美成aaa人片在线观看蜜臀| 日韩欧美亚洲在线| 91精品综合视频| 九九视频直播综合网| 欧美亚洲激情在线| 久久久免费观看视频| 精品丰满人妻无套内射| 欧美亚洲激情视频| 国产福利不卡|