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.
- AVET104 Fundamentals of Biology Assignment Brief 2026 | Temasek Polytechnic
- BMK3015 Major Project Assessment Brief 2026 | Temasek Polytechnic
- BM4364 Customer Experience Management and Design ICA 2 Assignment Guide | NYP
- PSB6013CL Business Research Project Assignment Brief 2026 | PSB Academy
- A2429C Human Systems in Health and Disease Assignment Questions 2026 | RP
- PS6004EFA Research Project Dissertation 2026 | Coventry University
- S2440C Health Psychology Assignment Brief 2026 | Republic Polytechnic
- HS2255 Law & Ethnics Assignment Brief 2026 | Nanyang Polytechnic
- CH2123 Chemical Thermodynamics Assignment Questions 2026 | NTU
- OMGT2229 Strategic Supply Chain Assignment Question 2026 | RMIT University
