Using Write Program Asks User String Letters Size Spaces Finally Special Character Values Q37136167

Using, write a program that asks the user for a string ofletters of any size (no spaces), and finally a special character(values 33 to 47 in the Ascii table, or ‘!’ to ‘/’). Generate arandom number of any size, integer or floating point, and combinethose three pieces of information (in any order) to create apassword and display that out to the user.

Sample input 1:   ILikePatterns

   +

Sample output 1: 525235325ILikePatterns+

Sample input 2:    ILikeDecimalNumbers

/

Sample output 2: ILikeDecimalNumbers/52325.25


Solution


import java.util.*;

public class Main
{
   public static void main(String[] args) {
      
       Scanner s = new Scanner(System.in);// define scanner class
      
  

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.