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

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

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

    合肥圖文信息
    2025年10月份更新拼多多改銷助手小象助手多多出評軟件
    2025年10月份更新拼多多改銷助手小象助手多
    有限元分析 CAE仿真分析服務-企業/產品研發/客戶要求/設計優化
    有限元分析 CAE仿真分析服務-企業/產品研發
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    出評 開團工具
    出評 開團工具
    挖掘機濾芯提升發動機性能
    挖掘機濾芯提升發動機性能
    海信羅馬假日洗衣機亮相AWE  復古美學與現代科技完美結合
    海信羅馬假日洗衣機亮相AWE 復古美學與現代
    合肥機場巴士4號線
    合肥機場巴士4號線
    合肥機場巴士3號線
    合肥機場巴士3號線
  • 短信驗證碼 目錄網 排行網

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

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

    免费在线观看精品| 韩国女主播一区二区三区| 极品美女一区| 欧美成人综合| 日韩av不卡一区二区| 久久av日韩| 免费av网站大全久久| 久久久久欧美精品| 亚洲婷婷伊人| 日韩国产欧美三级| 中文在线免费二区三区| 亚洲大全视频| 国产精品一线| 国产一区二区三区91| 欧美v亚洲v综合v国产v仙踪林 | 电影一区中文字幕| 嫩草伊人久久精品少妇av杨幂| 欧美日韩hd| 国产在线播放精品| 亚洲第一二三区| 亚洲国产精品一区| 国产精品成人国产| a天堂资源在线| 亚洲视频大全| 亚洲精品国产偷自在线观看| 成人在线视频中文字幕| 国产不卡一区| 一区二区电影| 国产一区二区三区的电影 | 日日夜夜综合| 成人片免费看| 蜜臀a∨国产成人精品| 亚洲精品中文字幕乱码| 精品久久久亚洲| 亚洲2区在线| 日韩欧美四区| 国产成人一区二区三区影院| 亚洲精品裸体| 毛片不卡一区二区| 精品女同一区二区三区在线观看| 深夜福利视频一区二区| 免费观看在线综合色| 亚洲在线成人| 日韩一级欧洲| 中文日韩在线| 99视频在线精品国自产拍免费观看| 欧美中文字幕一区二区| 色愁久久久久久| 精品久久电影| 日韩精品影视| 久久资源中文字幕| 国产一区清纯| 欧美午夜a级限制福利片| 国产高清欧美| 夜夜夜久久久| 日韩亚洲国产欧美| 99pao成人国产永久免费视频| 天天影视欧美综合在线观看| 午夜久久久久| 老司机精品久久| 欧美激情国产在线| 毛片电影在线| 91成人在线| 麻豆精品一区二区av白丝在线| 日韩专区中文字幕一区二区| 欧美喷水视频| 欧美成人一级| 综合在线一区| 久久中文欧美| 亚洲一区二区av| 久久成人av| 91欧美日韩在线| 狼人精品一区二区三区在线| 久久精品国产68国产精品亚洲| 久久社区一区| 国产精品日韩| 黄色成人免费网| 99精品国产一区二区青青牛奶| 美女免费视频一区| 欧美另类中文字幕| av在线亚洲色图| 激情一区二区| 蜜臀国产一区二区三区在线播放| 欧美第一视频| 国产日韩亚洲欧美精品| 国产精品3区| 第九色区aⅴ天堂久久香| 天天射成人网| 国产调教在线| 国产日韩亚洲| 日本一区二区三区视频在线看| 久久97精品| 亚洲一区激情| 亚洲日本在线观看视频| 国产成人视屏| 精品一区电影| 欧美资源在线| 日韩一级视频| 精品国产一区二区三区性色av| 91精品国产成人观看| 久久xxxx| 一区二区91| 视频二区欧美| 99热这里只有成人精品国产| 日韩中文在线播放| 国产精品自拍区| 欧美丝袜一区| 亚洲黄色免费看| 最新亚洲国产| 99久精品视频在线观看视频| 成人精品电影| www久久久| 久久激情电影| 中国色在线日|韩| 国产精品免费精品自在线观看| 日韩精品水蜜桃| 综合久久2023| 国产精品一在线观看| 国产高清欧美| 婷婷久久免费视频| 综合中文字幕| 日韩中文字幕一区二区三区| 久久精品一区| 日本韩国欧美超级黄在线观看| 国产精品成人a在线观看| 综合久久十次| 亚洲午夜久久久久久尤物| 日韩另类视频| 1313精品午夜理伦电影| 久久成人在线| 白嫩亚洲一区二区三区| 婷婷综合网站| 久久精品三级| 激情久久一区| 国产欧美在线| 久久中文字幕av| 国产美女久久| 999成人精品视频线3| 久久99久久99精品免观看软件| 日韩黄色免费网站| 色琪琪久久se色| 亚洲人成亚洲精品| 美美哒免费高清在线观看视频一区二区| 国内精品久久久久久久影视麻豆| 91精品天堂福利在线观看| 亚洲精品大全| 久久综合国产| 亚洲视频二区| 亚洲精品一区二区妖精| 欧美区国产区| 亚洲一区二区网站| 国产va免费精品观看精品视频 | 欧美激情五月| 一区在线免费| 国产aa精品| 日本一本不卡| 亚洲91网站| 日本肉肉一区| 久久视频精品| 欧美黄色大片网站| 免费日韩精品中文字幕视频在线| 国产一区二区精品久| 国产色播av在线| av综合网址| 国产69精品久久久久9999人| 久久综合电影| 欧美激情在线| 水蜜桃精品av一区二区| 国产精品午夜av| 国产欧美日韩一级| 亚洲免费网站| 午夜视频在线观看精品中文| 男人天堂视频在线观看| 精品精品国产三级a∨在线| 久久精品国产77777蜜臀| 亚洲深夜av| 91成人福利| 麻豆一区二区三区| 久久国产精品亚洲77777| 伊人精品综合| 日韩国产精品久久久| 蜜臀av亚洲一区中文字幕| 精品国产精品| 91麻豆精品| 国产v综合v| 日韩一区二区久久| 亚洲无线观看| 国一区二区在线观看| 日韩1区在线| 欧美激情第二页| 日韩av一区二区三区| 三级不卡在线观看| 日韩成人精品一区| 欧美福利专区| 日本精品一区二区三区在线观看视频| 国产精品99久久久久久董美香 | 欧美国产日本| 欧美日韩视频免费观看| 欧美精品一区二区三区久久久竹菊| 日韩精品视频一区二区三区|