Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

this is the excercise he mentions in the question, as of participation week 3 please help in Java eclipse Display: Drive with Caution. Question 2:

image text in transcribed

this is the excercise he mentions in the question, as of participation week 3

image text in transcribed

please help in Java eclipse

Display: "Drive with Caution". Question 2: (40 points) Same problem as in Participation Week 3. But redo where your pick number is a string of two digits and the Winning number is a two digit number generated randomly converted into a string. You can reuse the code from exercise but use all string operations instead of integer operations. The user wins according to the following rule: If the user input matches the lottery in exact order, the award is $10,000. If all digits in the user input match all the digits in the lottery number, the award is $5,000. If one digit in the user input matches a digit in the lottery, the award is $1,000. As usual submit both your programs in one zip file. w2020 - Password/src/Password jy - Eclipse File Edit Source Refactor Navigate Search Project Run Window Help N .99#@993) O . - Lottery Love Sumloopjava DoWhile java D Nested.com Brandcont Passwordjava 1 import java.util.Scanner; 2 public class Password { tem Library lavas fault package public static void main(String[] args) { BrandContjave // TODO Auto-generated method stub Scanner input = new Scanner(System.in); tem Library String passwd = input.next(); /*Print the password is valid fault package * if i) It contains at least one lower case DoWhile ja * ii) If it contains atleast one upper case * iii) If it contains at least one digit * iv) Length of password should be greater than on equal to 8 chars * If the conditions are not met let the user know what condition(s) * are not met LOOP **** console Program Files Java e 180 181\binavaw exe dan 30, 2020, 10:3526 AM) em Library clien ted and cont Lava Application Nested -2.5 -3.3333333333333335 -5.0 - 10.2 Tem Library 06 65 101 sample

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts International Edition

Authors: David M. Kroenke

6th Edition International Edition

0133098222, 978-0133098228

More Books

Students also viewed these Databases questions

Question

The company has fair promotion/advancement policies.

Answered: 1 week ago