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 21:30
Asuccessful format string attack attempted to steal user account information by reading from unauthorized memory. answer the followings with proper explanation a)this attack will lead to violation of which security policies?
Answers: 2
question
Computers and Technology, 22.06.2019 08:10
Ihave a music player on my phone. i can buy songs, add them to playlists and play them. obviously it would be redundant to store each song in each playlist; each playlist is just a list of pointers to the songs. for this lab you will simulate this behavior. your program will need to have options to: add songs to the system library (you will store the text of the first line of the song, rather than the audio) add playlists add songs to a playlist list playlists play a playlist list all of the songs in the library with a count of how many times each song has been played remove a song from a playlist remove a playlist remove a song from the library (and thus from all playlists that contain it) note that we will not be checking many error cases. in real programming this would be bad, you should usually try to recognize and respond to as many types of errors as you can. in the context of class we are trying to acquaint you with as many concepts as possible, so for the sake of educational efficiency we will not be checking most errors in this lab, you may assume that your user provides correct input. you may add all appropriate error testing if you wish, but we will not be testing for it.
Answers: 2
question
Computers and Technology, 22.06.2019 22:30
Write a full class definition for a class named player , and containing the following members: a data member name of type string .a data member score of type int .a member function called setname that accepts a parameter and assigns it to name . the function returns no value.a member function called setscore that accepts a parameter and assigns it to score . the function returns no value.a member function called getname that accepts no parameters and returns the value of name .a member function called getscore that accepts no parameters and returns the value of score .this is what i have, aparently this is wrong: class player{private: string name; int score; public: void player: : setname (string n){name =n; }void player: : setscore (int s){score = s; }string player: : getname (){return name; }int player: : getscore (){return score; }};
Answers: 2
question
Computers and Technology, 23.06.2019 07:00
Why is investing in a mutual fund less risky than investing in a particular company's stock? a. mutual funds only invest in blue-chip stocks. b. investments in mutual funds are more liquid. c. mutual funds hold a diversified portfolio of stocks. d. investments in mutual funds offer a higher rate of return.
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.12.2021 17:50
question
Mathematics, 06.12.2021 17:50
Questions on the website: 13722363