subject

Edhesive intro to computer science - python
any questions between 3.7 - 5.1 + chatbot assignment would be highly valued,
will be giving brainliest to the person with the most correct codes or the fastest.
any goofy or irrelevant answers will be reported.

3.7 code practice
when we read code and predict its output, it is called tracing code.

for this lesson you will come up with your own challenging algorithm for other students to trace. it must contain at least 5 - if statements and use at least one and or or boolean condition. run it in the sandbox, then copy and paste your code in piazza for other students to try.

for this challenge try reading 3 or 4 other students' code - trace the code and predict what it outputs, then run it in the sandbox to see if you got it right.

assignment 3: chatbot
a chatbot is a computer program designed to emulate human conversation. for this program you will use if statements, user input, and random numbers to create a basic chatbot.

here is the scenario: you have decided to start an online website. you are creating a prototype to show investors so you can raise money and launch your website. you should ask the user at least 5 questions ( 5 inputs required ) and use at least 2 if-elif-else statements and give answers depending on how they answer. some responses should be based on what they type, and some should be based on random numbers.

for example, if they say they are sad, your chatbot might respond im sorry to hear that.

you could also have a random number generated between 1 and 3 and have a corresponding response depending on the number such as that is great to hear or so interesting.

sample run

note: your program will be different - this is only an example (user input is in italics)

what is your name?
pascal

hi there pascal, nice to meet you.
how old are you?
17

17 is a good age.
you are old enough to drive.
so, pascal how are you today?
happy

you are happy.
that is good to hear.
tell me more.
i am still happy.

sounds interesting.
well, pascal, it has been nice chatting with you.

4.1 code practice: question 1
write a program that asks the user to enter a name, and then print "nice to meet you name". your program should repeat these steps until the user inputs "nope".

sample run:

enter a name: (nope to end) antonio
nice to meet you antonio
enter a name: (nope to end) jonathan
nice to meet you jonathan
enter a name: (nope to end) tyler
nice to meet you tyler
enter a name: (nope to end) brianne
nice to meet you brianne
enter a name: (nope to end) nope

(and so on)

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 07:50
In this lab, you complete a prewritten c++ program for a carpenter who creates personalized house signs. the program is supposed to compute the price of any sign a customer orders, based on the following facts: the charge for all signs is a minimum of $35.00. the first five letters or numbers are included in the minimum charge; there is a $4 charge for each additional character. if the sign is made of oak, add $20.00. no charge is added for pine. black or white characters are included in the minimum charge; there is an additional $15 charge for gold-leaf lettering. instructions ensure the file named housesign.cppis open in the code editor. you need to declare variables for the following, and initialize them where specified: a variable for the cost of the sign initialized to 0.00 (charge). a variable for the number of characters initialized to 8 (numchars). a variable for the color of the characters initialized to "gold" (color). a variable for the wood type initialized to "oak" (woodtype). write the rest of the program using assignment statements and ifstatements as appropriate. the output statements are written for you. execute the program by clicking the run button. your output should be: the charge for this sign is $82. this is the code, // housesign.cpp - this program calculates prices for custom made signs. #include #include using namespace std; int main() { // this is the work done in the housekeeping() function // declare and initialize variables here // charge for this sign // color of characters in sign // number of characters in sign // type of wood // this is the work done in the detailloop() function // write assignment and if statements here // this is the work done in the endofjob() function // output charge for this sign cout < < "the charge for this sign is $" < < charge < < endl; return(0); }
Answers: 1
question
Computers and Technology, 22.06.2019 09:40
It is vital to research each of the services you plan to disable before implementing any change, especially on critical machines such as the: a. servers in the test environment. b. domain controller and other infrastructure servers. c. desktops that have previously been attacked. d. desktops used by upper-level management.
Answers: 2
question
Computers and Technology, 22.06.2019 11:30
What do character formats do for your document's message? a.set the tone b.provide organization c.provide clarity d.set how texts align with documents
Answers: 2
question
Computers and Technology, 22.06.2019 19:10
10. when you create a pivottable, you need to specify where to find the data for the pivottable. is it true
Answers: 2
You know the right answer?
Edhesive intro to computer science - python
any questions between 3.7 - 5.1 + chatbot assignme...
Questions
question
Mathematics, 06.03.2021 01:10
question
Mathematics, 06.03.2021 01:10
Questions on the website: 13722359