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 19:20
Consider the following code snippet: #ifndef cashregister_h#define cashregister_hconst double max_balance = 6000000.0; class cashregister{public: cashregister(); cashregister(double new_balance); void set_balance(double new_balance); double get_balance() const; private: double balance[12]; }; double get_monthly_balance(cashregister bk, int month); #endifwhich of the following is correct? a)the header file is correct as given.b)the definition of max_balance should be removed since header files should not contain constants.c)the definition of cashregister should be removed since header files should not contain class definitions.d)the body of the get_monthly_balance function should be added to the header file.
Answers: 1
question
Computers and Technology, 24.06.2019 04:30
Write and test a python program to find and print the largest number in a set of real (floating point) numbers. the program should first read a single positive integer number from the user, which will be how many numbers to read and search through. after reading in all of the numbers, the largest of the numbers input (not considering the count input) should be printed.
Answers: 1
question
Computers and Technology, 24.06.2019 15:50
Andy would like to create a bulleted list. how should he do this? andy should click on the bullet icon or select the bullet option from the menu and then type the list. andy should press the shift key and the 8 key at the beginning of each line of text. andy should type the text and then click on the bullet command. andy should press return and the bullets will automatically
Answers: 2
question
Computers and Technology, 24.06.2019 18:30
What is the local portion of the e-mail address below? [email protected] a.) @ b.) biz c.) gumchewer d.) twrigley
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
Mathematics, 20.10.2020 18:01
question
Mathematics, 20.10.2020 18:01
question
Mathematics, 20.10.2020 18:01
question
Mathematics, 20.10.2020 18:01
question
English, 20.10.2020 18:01
Questions on the website: 13722360