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, 21.06.2019 13:00
The documents a system at the end of the design phase, identifies any changes since the beginning of the project, and includes testing and verification of all system requirements and features. functional baseline operational baseline allocated baseline product baseline
Answers: 1
question
Computers and Technology, 22.06.2019 00:00
Which requirement is an appropriate reason for a business to use it tools
Answers: 3
question
Computers and Technology, 22.06.2019 22:40
Least square fit to polynomial write a function leastsquarefit3pol that solves a linear system of equations to find a least squares fit of a third order polynomial to an experimental data set given as two row arrays. the function leastsquarefit3pol must explicitly solve a set of linear equations and cannot use polyfit. there should be no restriction on the size of the problem that can be solved.
Answers: 1
question
Computers and Technology, 23.06.2019 09:00
Which best describes the role or restriction enzymes in the analysis of edna a. to break dna into fragments that vary in size so they can be sorted and analyzed b. to amplify small amounts of dna and generate large amounts of dna for analysis c. to purify samples of dna obtained from the environment so they can be analyzed d. to sort different sizes of dna fragments into a banding pattern that can be analyzed
Answers: 1
You know the right answer?
Edhesive intro to computer science - python
any questions between 3.7 - 5.1 + chatbot assignme...
Questions
question
Mathematics, 23.04.2021 20:50
question
Mathematics, 23.04.2021 20:50
question
Biology, 23.04.2021 20:50
question
Mathematics, 23.04.2021 20:50
question
Mathematics, 23.04.2021 20:50
question
Mathematics, 23.04.2021 20:50