Question: Programming Assignment 1 Read through each problem and write a JAVA program to implement the solution. Part 1: (5 points) Write a program which will

Programming Assignment 1

Read through each problem and write a JAVA program to implement the solution.

Part 1: (5 points) Write a program which will ask the user to input an integer number corresponding to a duration expressed in minutes. You will then display on the screen the conversion of this duration in the hours: minutes: seconds format.

Part 2: (10 points) Prompt the user for a number n. Check if the number is a valid non-binary number or not i.e. all digits in the number cannot be just 0 or 1. For example, 101 is a binary number whereas 123 or 201 is a non-binary. Note: 0 and 1 are the only single digit binary numbers.

Part 3: (10 points) Write a JAVA program that generates the list of prime numbers between two given numbers.

Bonus: (5 points) Password checker program basically checks if the password is valid or not based on password policies mention below: a. Password should not contain any space. b. Password should contain at least one digit (0-9) and no consecutive digits. c. Password length should be between 10 to 12 characters. d. Password should contain at least two uppercase letter(A-Z). e. Password should contain no special character (@, #, %, &, $, etc.).

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!