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, 22.06.2019 10:00
Create a word problem that involves calculating the volume and surface area of a three-dimensional object. cube: surface area 6 s2 , volume s3
Answers: 3
question
Computers and Technology, 23.06.2019 05:00
Acompany is inviting design for its new corporate logo from its users. this is an example of ? a. crowdfunding b. crowdvoting c. crowdsourced design d. crowdtracking
Answers: 3
question
Computers and Technology, 23.06.2019 05:30
Sally is editing her science report about living things. she needs to copy a paragraph from her original report. order the steps sally needs to do to copy the text to her new document.
Answers: 1
question
Computers and Technology, 23.06.2019 08:30
Helen's credit card has an apr of 15.32% and a grace period of 17 days and helen pays her balance in the full every month. if her last billing cycle ended on september 26, 2009, and she made her payment on october 11, 2009, did she owe any interest on her last statement's balance?
Answers: 3
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
History, 24.05.2020 19:58
Questions on the website: 13722367