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

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

代寫CMSC 150、代做Python設計程序
代寫CMSC 150、代做Python設計程序

時間:2025-02-20  來源:合肥網hfw.cc  作者:hfw.cc 我要糾錯



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.

請加QQ:99515681  郵箱:99515681@qq.com   WX:codinghelp


 

掃一掃在手機打開當前頁
  • 上一篇:代寫CS536、代做C/C++,Java編程
  • 下一篇:易分期全國客服電話-易分期24小時人工服務熱線
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    流體仿真外包多少錢_專業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 豆包網頁版入口 wps 目錄網 排行網

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

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

    国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看
    亚洲精品成人三区| 国产欧美精品aaaaaa片| 国产精品人成电影在线观看| 久久精品日产第一区二区三区乱码| 国产精品69久久| 国产高清不卡av| 国产不卡在线观看| 深夜精品寂寞黄网站在线观看| 国产白丝袜美女久久久久| 久久男人资源站| 久久久久久久久久久久久久久久av| 久久久久久久久影视| 久久久久久国产精品一区| 久久久久久久久久久免费视频| 日韩中文在线视频| 国产成人生活片| 操日韩av在线电影| 欧美成年人在线观看| 两个人的视频www国产精品| 美女福利视频一区| 亚洲欧洲免费无码| 日本精品一区二区三区在线| 欧美日韩激情视频在线观看| 国产一级片91| 91精品国产777在线观看| 色偷偷9999www| 久久综合色88| 亚洲一区二区高清视频| 亚洲精品中字| 日韩精品一区二区三区色欲av| 欧美一区免费视频| 欧美激情专区| 国产精品一区二区三区不卡| 777午夜精品福利在线观看| 久草免费福利在线| 欧美成年人网站| 欧美一级日本a级v片| 国产在线青青草| 国产精品99久久久久久久久久久久 | 午夜啪啪福利视频| 日本国产中文字幕| 国产日韩欧美精品| 国产成人+综合亚洲+天堂| 精品国产免费人成电影在线观...| 色中色综合成人| 国产香蕉一区二区三区| 国产freexxxx性播放麻豆| 欧美巨大黑人极品精男| 日韩高清国产精品| av一区二区三区免费观看| 国产精品视频免费观看| 熟女少妇精品一区二区| 国产在线一区二区三区欧美| 久久久久久久久爱| 欧美区在线播放| 欧美日韩一区二区三区电影| 91精品国产高清久久久久久久久| 久久精品久久精品国产大片| 在线观看国产一区| 欧美精品久久久| www污在线观看| 久久这里有精品| 奇米成人av国产一区二区三区| 豆国产97在线| 国产精品成人va在线观看| 人妻av无码专区| 久久免费视频在线| 亚洲一区三区电影在线观看| 国产免费一区二区三区香蕉精| 久久久精品美女| 日本精品久久久久中文字幕 | 欧美主播一区二区三区美女 久久精品人| 国产女同一区二区| 久久伊人91精品综合网站| 欧美高清视频一区二区三区在线观看| 久久久久久国产精品mv| 亚洲一区二区久久久久久| 国产乱肥老妇国产一区二| 国产精品久久久久久久久久久久 | 日韩色妇久久av| 99视频国产精品免费观看| 久久综合网hezyo| 国内精品久久国产| 国产精品美女久久久久av超清 | 秋霞无码一区二区| 国产成人一二三区| 色综合老司机第九色激情| 欧美日韩在线不卡视频| 日韩亚洲成人av在线| 人妻无码一区二区三区四区| 日韩一区二区av| 人妻av无码专区| 日韩中文在线中文网三级| 日韩免费观看网站| 久久久久99精品久久久久| 欧美日韩亚洲一区二区三区四区| 日韩视频永久免费观看| 欧美中文字幕在线视频| 久久精品99国产精品酒店日本| 日韩精品一区二区免费| 菠萝蜜影院一区二区免费| 日韩免费精品视频| 精品国产网站地址| 免费特级黄色片| 国产99久久精品一区二区永久免费| 国产视频一区二区视频| 一区二区三区久久网| 91国产精品91| 欧美综合在线观看视频| 久久综合久久美利坚合众国| 不卡日韩av| 日韩欧美精品一区二区三区经典 | 久久久久久久97| 精品嫩模一区二区三区| 欧美大胆在线视频| 国产裸体舞一区二区三区| 亚洲天堂电影网| 国产v综合v亚洲欧美久久| 精品人伦一区二区三区| 久久99精品久久久久久琪琪| 99久久99久久精品| 热re99久久精品国99热蜜月 | 久久综合伊人77777尤物| 国产一区二区免费电影| 亚洲中文字幕无码一区二区三区| 国产精品69久久久| 欧日韩不卡在线视频| 久久亚洲春色中文字幕| 69精品小视频| 欧美亚洲视频在线观看| 国产99久久九九精品无码| 国产成人avxxxxx在线看| 国产一区免费在线| 欧美一级片在线播放| 国产精品第二页| 久热免费在线观看| 精品视频导航| 日韩精品一区二区三区四区五区 | 亚洲精品在线视频观看| 国产chinese精品一区二区| 精品日韩在线播放| 色999日韩自偷自拍美女| 国产精品国模大尺度私拍| 久久全国免费视频| 国产欧美日韩亚洲精品| 日韩a∨精品日韩在线观看| 久久99亚洲精品| 国产精品爽黄69| 久久偷看各类wc女厕嘘嘘偷窃| 国产亚洲欧美一区二区| 欧洲亚洲在线视频| 亚洲影影院av| 精品久久久久久一区| 日韩最新在线视频| 国产精品午夜国产小视频| 免费不卡亚洲欧美| 日韩欧美手机在线| 日韩一区二区高清视频| 一区二区三区av| 欧美xxxx做受欧美.88| www高清在线视频日韩欧美| 91免费精品国偷自产在线| 国产综合色一区二区三区| 欧美在线观看一区二区三区| 色爱区成人综合网| 亚洲精品高清国产一线久久| 久久久久久91| 欧美精品一区二区免费| 国产精品免费一区二区| 久久久欧美一区二区| 97精品免费视频| 波多野结衣综合网| 福利视频一区二区三区四区| 国产日韩视频在线观看| 欧美 日韩 国产 激情| 欧美在线视频一二三| 日韩欧美精品在线观看视频| 日本网站免费在线观看| 午夜精品区一区二区三| 欧美激情伊人电影| 久久躁狠狠躁夜夜爽| 国产精品久久久久久av福利| 国产精品免费一区二区三区四区 | 欧美日韩另类综合| 欧美亚洲一级片| 欧洲日本亚洲国产区| 日韩免费中文字幕| 日韩精品在线中文字幕| 欧美在线影院在线视频| 日本在线视频www| 日本高清视频精品| 青青草视频在线免费播放| 日韩美女免费线视频| 热re99久久精品国99热蜜月 | 日韩欧美精品在线不卡| 欧美诱惑福利视频| 男人的天堂99| 国产日韩av高清| www国产亚洲精品| 久久精品香蕉视频|