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.
- MKTG1001 Foundations of Marketing Assignment 2 Individual Report | The University of Newcastle (UoN)
- S2010C Health and Wellness Graded Assignment AY2025 Term 4 – Republic Polytechnic (RP)
- RBP040L051 Postgraduate Dissertation Assessment brief – University of Roehampton Business School
- ACFI 2070 Business Finance Individual Assignment – The University of Newcastle (UoN)
- PY2107 Experimental Investigation and Analysis of Behaviour Assignment 2 Written – Research Report , James Cook University (JCU)
- ACCT111 Financial Accounting Individual Assignment, Singapore Management University (SMU)
- RM71003 Category Management & Merchandising Assignment 1 – Singapore Management University (SMU)
- Visual Arts Management Assignment 2 Essay Singapore Art Science Museum – Nanyang Academy of Fine Arts (NAFA)
- BM1987 Employment Law In-Course Assessment (ICA 1) Guide , Nanyang Polytechnic (NYP)
- MA3005/MA3705 Control Theory Coursework 2025-26, Nanyang Technological University (NTU)
