Problem 3 Write a function named enterNewPassword. This function takes no parameters. It prompts the user to enter a password until the entered password has 8-15 characters, including at least one digit. Tell the user whenever a password fails one or both of these tests. Problem 4 Implement the Gulass Number game. In this game, the computer · Think of a random number in the range 0-50. (Hint: use the random module.) • • . Repeatedly prompt the user to guess the mystery number. If the guess is correct, congratulate the user for winning. If the guess is incorrect, let the user know if the guess is too high or too low. After 5 incorrect guesses, tell the user the right answer. The following is an example of correct input and output. I'm thinking of a number in the range 0-50. You have five tries to guess it. Guess 1? 32 32 is too high Guess 2? 18 18 is too low Guess 3? 24 You are right! I was thinking of 24!
Problem 3 Write a function named enterNewPassword. This function takes no parameters. It prompts the user to enter a password until the entered password has 8-15 characters, including at least one digit. Tell the user whenever a password fails one or both of these tests. Problem 4 Implement the Gulass Number game. In this game, the computer · Think of a random number in the range 0-50. (Hint: use the random module.) • • . Repeatedly prompt the user to guess the mystery number. If the guess is correct, congratulate the user for winning. If the guess is incorrect, let the user know if the guess is too high or too low. After 5 incorrect guesses, tell the user the right answer. The following is an example of correct input and output. I'm thinking of a number in the range 0-50. You have five tries to guess it. Guess 1? 32 32 is too high Guess 2? 18 18 is too low Guess 3? 24 You are right! I was thinking of 24!
C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter6: Modularity Using Functions
Section6.4: A Case Study: Rectangular To Polar Coordinate Conversion
Problem 9E: (Numerical) Write a program that tests the effectiveness of the rand() library function. Start by...
Related questions
Question
Using python editor IDLE, and if possible, when doing the problems, can you give the code solution in the most basic way to write it
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps with 3 images
Recommended textbooks for you
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning