Introduction to Programming Using Java Assignment, NUS, Singapore: Write a program that checks whether a string is a strong password or a weak password
University | National University of Singapore (NUS) |
Question 1
Write a program that checks whether a string is a strong password or a weak
password. The password rule is as follows: (20 Marks)
– A password must have at least eight characters.
– A password consists of only letters and digits.
– A password must contain at least two digits.
Write a program that prompts the user to enter a password and displays “strong password” if the rule is followed or “too simple password” otherwise.
Sample output:
Sample 1
Enter a string for the password: wewew43x
strong password
Sample 2
Enter a string for the password: 343a
too simple password
Hire a Professional Essay & Assignment Writer for completing your Academic Assessments
Seeking assistance with Introduction to Programming Using Java Assignment at the National University of Singapore (NUS)? Look no further! Our platform offers specialized guidance for GBA, individual assignments, and online assignment help for students in Singapore. Our experts provide top-notch Case Study Writing Help tailored to your needs. Get professional support to craft programs like the one required—ensuring strong password security. Trust us to ace your course while you focus on learning.
- ACFI3004 Australian Taxation Assignment: Residency & 2025 Income Assessment for Heny and Joceline
- PESTEL Analysis Assignment 2: Fitness Studio Expansion into Thailand & Vietnam
- CSIT213 E-Commerce System Assignment 1: Java OOP Implementation Without Collections for Manual Array Management
- A2369C cGMP Compliance Assignment: CAPA Report on Audit Non-Conformities in Pharma Quality Management (PQM)
- E2419C Health Logistics Assignment: Cold Chain & Dangerous Goods Management in Pharma Supply Chain
- AVET104 Fundamentals of Biology Assignment: The Story of Signals, Energy & Expression Inside the Cell
- Workplace Health & Safety Review: Risk Assessments 1 and Accident Data Analysis
- Sensible Risk Assessment 2 Report: Personal Reflection on Workplace Report and Future Growth
- ACLP M1P TAE Written Assignment: Applying Skills Framework, Assessment Planning & Instructional Design for Learner-Centric Education
- EGH222 Employee Sick Days Prediction Assignment: Regression Model Using Demographic and Lifestyle Data
UP TO 15 % DISCOUNT