Concept explainers
Password Verifier
Imagine you are developing a software package that requires users to enter their own passwords. Your software requires that users’ passwords meet the following criteria:
• The password should be at least six characters long.
• The password should contain at least one uppercase and at least one lowercase letter.
• The password should have at least one digit.
Write a
If it doesn’t, the program should display a message telling the user why.
Want to see the full answer?
Check out a sample textbook solutionChapter 10 Solutions
Starting Out with C++ from Control Structures to Objects (9th Edition)
Additional Engineering Textbook Solutions
INTERNATIONAL EDITION---Engineering Mechanics: Statics, 14th edition (SI unit)
Computer Science: An Overview (13th Edition) (What's New in Computer Science)
Introduction To Programming Using Visual Basic (11th Edition)
Problem Solving with C++ (10th Edition)
Java: An Introduction to Problem Solving and Programming (8th Edition)
Starting Out with Java: From Control Structures through Data Structures (4th Edition) (What's New in Computer Science)
- C#arrow_forwardOnly codearrow_forwardPersonal library softwareTo develop a software that would be used by individuals to manage their personal collection of books.A person can have up to a few hundreds of books. The details of all the books such as name of the book,year of publication, date of purchase, price, and publisher would be entered by the owner. A book shouldbe assigned a unique serial number by the computer. This number would be written by the owner usinga pen on the inside page of the book. Only a registered friend can be lent a book. While registering afriend, the following data would have to be supplied—name of the friend, his address, land line number,and mobile number. Whenever a book issue request is given, the name of the friend to whom the book isto be issued and the unique id of the book is entered. At this, the various books outstanding against theborrower along with the date borrowed are displayed for information of the owner. If the owner wishesto go ahead with the issue of the book, then the date of…arrow_forward
- Quizzes Grades 2. Area of a Circle Computer programs are great at computing mathematical formulas. Once the formula is properly encoded you can use the code as much as you want without reprogramming it and you can share it with non-programmers without any trouble. This lab is an example of such a formula. Once you program it you won't have to worry about the area of a circle again. Syllabus Zoom • Write and test a program that computes the area ofa circle. This program should request a number representing a radius as input from the user. • Use the formula 3.14 x radius to compute the area. • Tip: There are a couple of ways to code an exponent. Look in the Operators unit for help (and you can't use an x for multiplication). • Tip: You will need to use the float data type to compute the remainder. - The output should explain the results. Don't just print a number. • Tip: For your print statement you will need to use the comma, or plus, +symbols to stitch your output together. - (The area…arrow_forwardSavings Account The following steps calculate the balance after three years when $100 isdeposited in a savings account at 5% interest compounded annually:1. Declare the variable balance as type Decimal.2. Assign the value 100 to the variable balance.3. Increase the variable balance by 5% of its value. (Write 5% as 0.05D.)4. Increase the variable balance by 5% of its value.5. Increase the variable balance by 5% of its value.6. Display the value of balance (rounded to two decimal places) in a list box.arrow_forwardimport math # Lab 3 - Road Trip # Program determines the time it takes to complete a road trip from Chicago to other cities in the US # and how many podcasts you can listen to on the road trip # TODO: Add your name and the names of your team members # Get input from user of what city they would like to visit city = input("What city would you like to visit? ") distance_to_city = { 'Chicago': 0, 'Minneapolis': 410, 'Columbus': 350, 'Nashville': 475, 'Denver': 1005 } speed = 70 # miles per hour hours_per_day = 8 # hours you can travel per day podcast_length = 25 # minutes # TODO: finish the code herearrow_forward
- C++ for Engineers and ScientistsComputer ScienceISBN:9781133187844Author:Bronson, Gary J.Publisher:Course Technology PtrEBK JAVA PROGRAMMINGComputer ScienceISBN:9781305480537Author:FARRELLPublisher:CENGAGE LEARNING - CONSIGNMENTC++ Programming: From Problem Analysis to Program...Computer ScienceISBN:9781337102087Author:D. S. MalikPublisher:Cengage Learning
- Microsoft Visual C#Computer ScienceISBN:9781337102100Author:Joyce, Farrell.Publisher:Cengage Learning,EBK JAVA PROGRAMMINGComputer ScienceISBN:9781337671385Author:FARRELLPublisher:CENGAGE LEARNING - CONSIGNMENT