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

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

代寫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小時人工服務熱線
  • 無相關信息
    合肥生活資訊

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

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

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

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

          aⅴ色国产欧美| 久久精品二区三区| 久久综合久色欧美综合狠狠| 亚洲国产欧美国产综合一区| 国产精品久久91| 蜜桃av综合| 午夜在线成人av| 夜色激情一区二区| 亚洲成人资源网| 国产在线视频欧美| 国产精品成人观看视频国产奇米| 麻豆精品在线视频| 久久精品视频在线播放| 亚洲免费在线| av成人国产| 亚洲欧洲在线播放| 亚洲成人直播| 亚洲国产美国国产综合一区二区| 国产精品免费看片| 欧美日韩国产综合一区二区| 老鸭窝毛片一区二区三区| 欧美在线综合| 亚洲大片免费看| 国产一区二区三区四区五区美女| 国产精品久久久久久久久久久久久| 中国成人亚色综合网站| 日韩一区二区精品| 亚洲久色影视| 亚洲精品小视频| 亚洲日本电影在线| 亚洲乱码日产精品bd| 亚洲激情成人在线| 亚洲乱码国产乱码精品精| 欧美另类亚洲| 欧美日韩国产专区| 欧美日韩亚洲高清一区二区| 欧美日韩在线播放三区| 国产精品免费小视频| 国产精品午夜在线| 国外精品视频| 亚洲国产日本| 亚洲一区二区黄色| 欧美在线一二三四区| 亚洲黄色成人| 在线视频免费在线观看一区二区| 国产在线观看91精品一区| 国产综合香蕉五月婷在线| 亚洲第一视频网站| 日韩视频免费看| 亚洲欧美另类中文字幕| 亚洲毛片av| 亚洲欧美一级二级三级| 久久国产精品久久w女人spa| 久久一区二区三区四区五区| 欧美成人中文字幕| 国产精品夜色7777狼人 | 久久久久一区二区三区| 久久夜色精品国产噜噜av| 欧美男人的天堂| 国产伪娘ts一区| 最新成人av在线| 午夜国产一区| 欧美激情精品久久久久久久变态 | 欧美精品激情| 国产午夜精品福利| 99精品热视频| 久久久av水蜜桃| 欧美日韩理论| 亚洲第一主播视频| 亚洲伊人久久综合| 欧美华人在线视频| 国一区二区在线观看| 一本大道久久a久久综合婷婷| 久久精品日韩欧美| 国产精品国产精品国产专区不蜜| 亚洲大胆在线| 久久激情久久| 欧美视频中文字幕在线| 亚洲激情一区二区三区| 久久九九全国免费精品观看| 国产精品视频九色porn| 一区二区三区蜜桃网| 欧美大片第1页| 国内精品久久久久久影视8| 国产日韩欧美| 亚洲一区二区视频在线| 欧美日韩视频第一区| 在线观看视频一区| 久久一区免费| 国产日韩专区| 亚洲欧美日韩综合aⅴ视频| 欧美香蕉视频| 亚洲一区二区成人| 国产精品99免费看 | 久久久久久亚洲精品杨幂换脸 | 国产精品成人国产乱一区| 亚洲欧洲日产国产网站| 麻豆成人综合网| 亚洲国产精品高清久久久| 久久综合一区| 亚洲第一精品福利| 美女脱光内衣内裤视频久久影院| 黄色成人在线| 麻豆av一区二区三区| 玉米视频成人免费看| 在线观看视频一区| 免费看的黄色欧美网站| 在线免费观看日本欧美| 欧美成人激情视频| 国产精品欧美一区二区三区奶水| 在线视频日韩| 国产精品视频自拍| 欧美一级久久久| 伊人男人综合视频网| 欧美高清视频在线观看| 一区二区三区av| 国产欧美一区二区三区在线老狼| 久久精品视频免费| 亚洲茄子视频| 国产欧美精品在线| 亚洲精品久久久久久一区二区| 欧美激情按摩在线| 亚洲女人av| 亚洲国产一区二区精品专区| 欧美日韩亚洲一区三区 | 欧美综合激情网| 亚洲日本国产| 国产伦精品一区二区三区免费迷| 久久久www成人免费无遮挡大片 | 亚洲经典在线| 国产精品一区三区| 欧美a一区二区| 午夜久久电影网| 91久久久久久| 国产亚洲人成网站在线观看| 免费观看一区| 欧美亚洲色图校园春色| 亚洲美女中出| 一区二区三区在线视频免费观看 | 欧美色大人视频| 老司机午夜精品视频在线观看| 中文精品在线| 亚洲精品美女在线| 欧美成人午夜激情视频| 午夜精品福利在线| 亚洲精品乱码久久久久久蜜桃91| 国产精品午夜在线观看| 欧美日韩大陆在线| 美日韩在线观看| 久久九九免费视频| 欧美一区二区三区视频免费播放| 日韩系列欧美系列| 亚洲国产日韩欧美一区二区三区| 国产精品毛片a∨一区二区三区|国| 葵司免费一区二区三区四区五区| 先锋影音国产一区| 亚洲午夜激情网页| 一二三区精品| 99视频精品全部免费在线| 亚洲黄色有码视频| 亚洲国产女人aaa毛片在线| 狠狠色狠狠色综合人人| 国产亚洲精品v| 国产欧美一区二区精品婷婷| 欧美性天天影院| 国产精品成人国产乱一区| 欧美欧美全黄| 欧美午夜性色大片在线观看| 欧美日韩国产精品一卡| 亚洲免费在线电影| 亚洲色在线视频| 一区二区三区精品视频| 国产精品99久久久久久久久久久久 | 久久爱www久久做| 久久精品国产99国产精品澳门| 亚洲欧美日韩国产一区二区三区| 一区二区免费在线观看| 亚洲一本视频| 欧美在线免费视频| 久久一区二区三区超碰国产精品| 老司机午夜精品视频在线观看| 久久亚洲一区二区三区四区| 免费亚洲电影在线观看| 欧美日本精品| 国产精品人人爽人人做我的可爱| 国产伦精品一区二区三区视频黑人| 国产精品一区二区久久久| 国产午夜精品久久久| 亚洲国产天堂久久综合| 亚洲午夜精品久久久久久app| 亚洲欧美影音先锋| 久久夜色精品国产噜噜av| 欧美激情一区二区三区高清视频 | 在线视频欧美日韩| 久久精品二区亚洲w码| 欧美成人高清视频| 欧美在线视频一区二区| 免费不卡亚洲欧美| 国产精品久久一区二区三区| 怡红院精品视频在线观看极品|