Computers and Technology, 30.08.2020 15:01 dbanks701
I cant get this for the life of me, I dont understand what im doing wrong, help?
def main():
numGuesses = 0
userGuess = 15
secretNum = 5
name = input("Hello! What is your name?")
userGuess = print ("Guess a number between 1 and 20:")
numGuesses = numGuesses + 1
if (userGuess < secretNum):
print("You guessed " + str(userGuess) + ". Too low.")
if (userGuess > secretNum):
print("You guessed " + str(userGuess) + ". Too high.")
if (userGuess = secretNum):
print9"Congrats! you are correct.")
main()
Answers: 2
Computers and Technology, 22.06.2019 19:20
Consider the following code snippet: #ifndef cashregister_h#define cashregister_hconst double max_balance = 6000000.0; class cashregister{public: cashregister(); cashregister(double new_balance); void set_balance(double new_balance); double get_balance() const; private: double balance[12]; }; double get_monthly_balance(cashregister bk, int month); #endifwhich of the following is correct? a)the header file is correct as given.b)the definition of max_balance should be removed since header files should not contain constants.c)the definition of cashregister should be removed since header files should not contain class definitions.d)the body of the get_monthly_balance function should be added to the header file.
Answers: 1
Computers and Technology, 22.06.2019 19:20
Write a program that prompts the user to input a string. the program then uses the function substr to remove all the vowels from the string. for example, if str = "there", then after removing all the vowels, str = "thr". after removing all the vowels, output the string. your program must contain a function to remove all the vowels and a function to determine whether a character is a vowel.
Answers: 2
Computers and Technology, 24.06.2019 03:30
Explain the importance of html in web page designing in 20 sentences..
Answers: 1
Computers and Technology, 24.06.2019 05:00
Who is most likely be your target audience if you create a slide presentation that had yellow background and purple text
Answers: 2
I cant get this for the life of me, I dont understand what im doing wrong, help?
def main():
<...
<...
English, 20.08.2019 13:50
Mathematics, 20.08.2019 13:50
Mathematics, 20.08.2019 13:50
History, 20.08.2019 13:50
Mathematics, 20.08.2019 13:50
History, 20.08.2019 13:50
Biology, 20.08.2019 13:50
Geography, 20.08.2019 13:50
Mathematics, 20.08.2019 13:50
Social Studies, 20.08.2019 13:50
Mathematics, 20.08.2019 13:50
English, 20.08.2019 13:50
Mathematics, 20.08.2019 13:50
Mathematics, 20.08.2019 13:50
Social Studies, 20.08.2019 13:50
History, 20.08.2019 13:50