Question: 1. Create a program that asks the user to create a password with 5-10 characters. While their password is the wrong size print an

1. Create a program that asks the user to create a password

 

1. Create a program that asks the user to create a password with 5-10 characters. While their password is the wrong size print an error message and keep asking them for a password. Once an acceptable password is entered, print "password created successfully". Use a while loop. 2. Create a program that calculates the sum of the first n natural numbers using a while loop. While the total of these numbers is less than 639,000 keep adding natural numbers. Once the total exceeds 639,000 print the last number that you added to the total. 3. Create a program that finds the average of five numbers the user gives you. Use a while loop to keep asking the user for numbers. 4. Create a program that finds the average of n numbers the user gives you. Use a while loop to keep asking the user for numbers until they type "done".

Step by Step Solution

3.31 Rating (151 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Program to create a password import javautilScanner public class PasswordProgram public static void ... View full answer

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 Programming Questions!