[solved] – Question 99863
Your chatbot should ask the user the following (minimum requirements for the autograder) and then give answers depending on the answers the user inputs:
at least 5 questions, and
at least 2 if-elif-else statements.
Based on this criteria, some responses will be based on what the user types, and some will be based on random numbers.
For example, if the chatbot asks how the user is doing, your chatbot might respond I’m sorry to hear that. in response to a user input of sad, or That’s great! in response to a user input of happy.
Additionally, you could also have a random number generated between, say, 1 and 3 and have a corresponding response depending on the number to randomly answer with That is great to hear. or So interesting., and so on.
Expert Answer
[solved] – Question 99874
1.Write a program that prompts a user as to how many floating-point numbers are to be entered and then have them enter the numbers (do this is a loop). The program should print a table showing the minimum, maximum and average of these numbers. The program should include at least the following functions:
a.A function that does the prompting for the numbers
b.A function that accepts two floating point numbers and returns their minimum
c.A function that accepts two floating point numbers and returns their maximum
d.A function that prints the “report” of the data.
Expert Answer
[solved] – Question 99879
describe the difference between a chained conditional and a nested conditional,give example for each
Expert Answer
[solved] – Question 99882
you need to generate a suite of simple matrix and vector operations including:
vector + vector
vector * vector (dot product)
vector x vector (cross product)
scalar * vector
matrix * vec (matvec)
matrix * matrix (matmat)
choose the operation from a menu
ask the user for a size n (for vectors ) and n,m for matrices
generate as test small doubles -10 to 10 for the originals vecs/matrices
then compute the solution, display
Expert Answer
[solved] – Question 99901
Edhesive 5.6
Use the starter code to create a program with 4 buttons and emoticons. Each button will make the graphical interface Display a different emoticon.
Expert Answer
[solved] – Question 99915
Hi I need a better answer than what I came up with. Please help!
Write your own unique Python program that has a runtime error.
I need to know the code of my program, the output demonstrating the runtime error, including the error message, and an explanation on how to fix the error.
I did a very simple one and I know I will get laughed at. I am very new at coding, no platform what so ever so I need a little help from you please.My cheesy example is:
print (python)
The code of my program is : print (python)
Output:
Traceback (most recent call last):
File “C:/New folder/python/runtime practice.py”, line 1, in <module>
print ( python )
NameError: name ‘python’ is not defined
>>>
In order for the code to properly work I will need to add parenthesis to (“python”) so that the word is then defined. Now it will print as I asked.
Is this ok? Or can you help me to make a not so cheesy one?
Expert Answer
[solved] – Question 99921
Write a program that contains 3 buttons with captain “1” “2” and “3”. When the user clicks the 1st button I should display “One” on the form. When the user clicks on 2nd button it Should display “Two” on the form. When the user clicks on 3rd button it Should display “Three” on the form.
Expert Answer
[solved] – Question 99934
Write a program that allocates an array large enough to hold a user-defined number of test scores. Once all the scores are entered, the array should be passed to a function that sorts them in ascending order. Another function should be called that calculates the average score. The program should drop the lowest grade before determining the average. The program should display the sorted list of scores and averages with appropriate headings to a file. Input Validation: Do not accept negative numbers for test scores.
Expert Answer
[solved] – Question 99936
Write a function named trimrear() that deletes all trailing blanks from a string.
Write the function using pointers with a return type of void.
Expert Answer