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爱在线视频这里只有精品_窝窝午夜看片成人精品_日韩精品久久久毛片一区二区_亚洲一区二区久久

          9000px;">

                国内不卡的二区三区中文字幕| 成人午夜免费av| 欧美区一区二区三区| 色综合色狠狠天天综合色| 高清国产一区二区三区| 国产真实乱对白精彩久久| 毛片不卡一区二区| 久久99精品国产.久久久久久 | 日韩亚洲欧美在线观看| 欧美精品xxxxbbbb| 日韩视频永久免费| 久久综合av免费| 久久精品男人的天堂| 中文字幕av一区二区三区免费看| 国产精品丝袜在线| 亚洲欧美日韩国产另类专区| 亚洲电影一区二区三区| 日本午夜一本久久久综合| 韩国三级电影一区二区| 成人精品一区二区三区中文字幕| 色婷婷亚洲综合| 欧美日韩精品一区二区三区| 日韩精品一区二区三区四区| 久久久噜噜噜久噜久久综合| 国产精品久久久久桃色tv| 亚洲精品免费看| 日本aⅴ亚洲精品中文乱码| 国产一区二区精品在线观看| 国产不卡在线一区| 欧美视频一区二区三区四区| 日韩午夜激情免费电影| 国产精品久久久久久久久果冻传媒| 一区二区三区色| 国产美女娇喘av呻吟久久| 色综合久久中文综合久久97| 日韩精品一区二区三区四区视频| 国产精品久久看| 蜜桃视频在线一区| 91浏览器在线视频| 欧美成人vr18sexvr| 中文字幕制服丝袜成人av| 日韩影院在线观看| 99久久精品国产观看| 91精品国产品国语在线不卡| 国产精品久久久久久久蜜臀| 日韩国产精品久久| 97久久精品人人做人人爽50路 | 亚洲精品一卡二卡| 久久97超碰色| 欧洲av在线精品| 中文字幕第一区第二区| 日本中文在线一区| 欧美亚洲一区三区| 国产精品久久三区| 国产乱码精品一区二区三区忘忧草| 欧美性生交片4| 国产精品久久久久久久午夜片| 久久精品72免费观看| 欧美日本乱大交xxxxx| 中文字幕一区二区三区色视频| 狠狠色综合色综合网络| 欧美一区二区三区免费大片| 亚洲综合色成人| 色老汉一区二区三区| 国产精品福利一区二区| 国产成人99久久亚洲综合精品| 欧美zozozo| 老司机午夜精品99久久| 91精品欧美福利在线观看| 香蕉久久夜色精品国产使用方法| 色偷偷久久一区二区三区| 久久精子c满五个校花| 毛片av中文字幕一区二区| 欧美福利视频一区| 日韩激情视频网站| 欧美精品视频www在线观看| 五月婷婷综合网| 欧美美女一区二区在线观看| 午夜精品视频一区| 日韩一区二区三区免费观看| 免费精品视频在线| 日韩午夜在线播放| 日本aⅴ免费视频一区二区三区| 欧美一区二区三区在线观看视频| 日韩电影一区二区三区四区| 日韩午夜激情视频| 国产另类ts人妖一区二区| 欧美综合色免费| 国产精品国产自产拍高清av| 国产黄色91视频| 久久精子c满五个校花| 国内精品不卡在线| 久久久亚洲国产美女国产盗摄| 美女脱光内衣内裤视频久久网站| 欧美美女直播网站| 日本特黄久久久高潮| 色偷偷一区二区三区| 亚洲国产精品一区二区久久恐怖片 | 午夜影院久久久| 欧美一级专区免费大片| 蜜桃视频一区二区| 国产女主播一区| 99国产精品视频免费观看| 亚洲欧美日韩久久精品| 欧日韩精品视频| 久草在线在线精品观看| 国产肉丝袜一区二区| 色婷婷亚洲综合| 日韩高清在线不卡| 日本一区二区三区四区 | 婷婷综合五月天| 亚洲精品一区二区三区99| 成人免费视频免费观看| 亚洲第一久久影院| 久久先锋影音av鲁色资源网| 不卡电影一区二区三区| 无吗不卡中文字幕| 国产丝袜在线精品| 欧美影院午夜播放| 国产精品一区二区黑丝| 亚洲一区二区三区四区的| 欧美电视剧在线看免费| av网站一区二区三区| 免费日韩伦理电影| 中文字幕中文在线不卡住| 欧美精品v日韩精品v韩国精品v| 国产精一区二区三区| 一区二区三区四区中文字幕| 久久精品一区二区| 欧美日韩免费一区二区三区视频| 丰满放荡岳乱妇91ww| 麻豆91在线播放| 亚洲va在线va天堂| 1000精品久久久久久久久| 日韩欧美精品三级| 91久久精品一区二区二区| 国产91富婆露脸刺激对白| 麻豆久久久久久| 偷偷要91色婷婷| 亚洲精品视频一区二区| 中文字幕第一区综合| 久久久久久综合| 精品女同一区二区| 日韩一区二区免费在线观看| 91精品福利视频| av亚洲精华国产精华精华| 国产不卡一区视频| 极品少妇xxxx偷拍精品少妇| 日日夜夜免费精品| 亚洲不卡av一区二区三区| 亚洲美女在线一区| 国产精品久久久久7777按摩| 国产午夜精品一区二区三区四区| 日韩欧美一区二区三区在线| 在线不卡的av| 欧美久久久久久蜜桃| 欧美在线不卡视频| 91精品1区2区| 在线精品视频一区二区三四 | 欧美性生活一区| 91免费看视频| 99国产精品99久久久久久| 成+人+亚洲+综合天堂| 成人av免费网站| 91美女片黄在线观看91美女| 99精品视频在线观看| av高清久久久| 91免费版pro下载短视频| 一本大道久久a久久精二百| 日本乱人伦一区| 欧美色网一区二区| 欧美高清视频不卡网| 日韩欧美一级精品久久| 精品国产乱码久久久久久1区2区 | 日韩欧美一区电影| 久久久美女毛片| 国产精品国产精品国产专区不蜜| 亚洲免费在线观看视频| 一区二区三区四区蜜桃| 亚洲成在人线免费| 六月丁香婷婷久久| 成人综合在线观看| 色噜噜夜夜夜综合网| 欧美日韩国产精选| 国产午夜精品美女毛片视频| 国产精品女同互慰在线看| 亚洲精品国久久99热| 日韩精品一级二级| 成人小视频免费观看| 欧美另类久久久品| 日本一区二区三区久久久久久久久不 | 91蝌蚪porny| 欧美久久婷婷综合色| 欧美精品一区二区三区蜜臀| 国产精品久久久久永久免费观看| 亚洲综合一区在线| 国内精品久久久久影院一蜜桃| 91麻豆精品一区二区三区| 3d动漫精品啪啪一区二区竹菊 | 日韩精品一级二级|