Question: Create a method that generates random DMV (DC, Maryland, Virginia) plates. Your method's return type is String and it should accept State names as a
Create a method that generates random DMV (DC, Maryland, Virginia) plates.
Your method's return type is String and it should accept State names as a parameter.
The plate patterns: VA - XXX-####, DC - XX####, MD - #XX####.
Call each of your method in the main method and print the returned String. For other states, print "wrong state" (optionally, you can also add your own state's plate , if you live outside the DMV. )
So the output should be similar to this: in java please
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
