subject

Write a program for the Department of Motor Vehicles that allows new drivers to obtain a license and existing drivers
to renew their licenses or pay violations,
New licenses are randomly generated numbers >= 3000 and
less than 4000. The fee for a new license is the last digit of
the generated license Id in dollars.
If an existing driver with a license Id >= 2000 and less than
3000 attempts to renew his or her license, the program responds that
his or her license is suspended. The fee for other drivers to
renew their license is either the license Id divided by
one hundred or 10 dollars, whichever is greater.
The fee for an existing driver to pay his or her violations is
the number of violations times the license Id divided by one hundred.
The result is rounded up to the next whole dollar amount.
*
求 * IMPORTANT IMPORTANT IMPORTANT *
Your program must duplicate the sample runs exactly.
DO NOT USE arrays, loops, or any Java constructs not taught yet
in class. Also do not use any Java API classes except
Scanner, System, String, and Math.
* IMPORTANT IMPORTANT IMPORTANT *
SAMPLE RUNS:
Are you a new driver(Type Y or N)?Y
Your license ID is 3759
Please pay new license fee of $9.0
Are you a new driver(Type Y or N)?N
Enter your licenseId: 2501
Select a service
- Renew License
1 - Pay Violation(s):0
Your license is suspended and cannot be renewed
Are you a new driver(Type Y or N)?N
Enter your licenseId: 1234
Select a service
- Renew License
1 - Pay Violationen


Write a program for the Department of Motor Vehicles that

allows new drivers to obtain a license

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 19:00
When keyboarding, if you want to be fast and accurate you should return your hands on home row with your fingers relaxed and your eyes on the text use only your index fingers to hunt and peck keep your fingers stiff and your eyes on the keys slouch in your chair and keep your fingers hovering over all of the keys
Answers: 2
question
Computers and Technology, 23.06.2019 18:00
Ramona enjoys her job because she is able to kids in an after school program. the work value ramona feels strongest about is a. leadership b. risk c. independence d. work with people select the best answer from the choices provided a b c d
Answers: 1
question
Computers and Technology, 24.06.2019 10:00
What did i do wrong with this const discord = require('discord.js'); var bot = new discord.client(); const token = 'ntm3mjcxmtu1mjg3ote2ntq2.dyogew.dpfiwfpuifzuzvifop-csuxasnm' const prefix = "! " bot.registry.registergroup('simple', 'simple'); bot.registry.registerdefaults(); bot.registry. + '/commands'); bot.on('message', message => { if(message.content == 'hi! ') { message.channel.send ('@everyone sup, how is @everyone day going'); } if(message.content == 'h3lp') { message.channel.send ('dose not have any commands yet'); } bot.on('ready', function() { console.log("ready") }); bot.login(token);
Answers: 1
question
Computers and Technology, 24.06.2019 21:30
The hybrid uses 144 to 158 volt batteries.
Answers: 1
You know the right answer?
Write a program for the Department of Motor Vehicles that allows new drivers to obtain a license an...
Questions
question
Chemistry, 10.11.2020 01:00
question
Arts, 10.11.2020 01:00
question
Mathematics, 10.11.2020 01:00
question
Mathematics, 10.11.2020 01:00
question
History, 10.11.2020 01:00