Question
Create a java project named lastname_firstname_exam2 that solves the problem stated. After the project is created a main class with a similar naming scheme should
Create a java project named lastname_firstname_exam2 that solves the problem stated. After the project is created a main class with a similar naming scheme should also be created. In addition, there will also be four additional classes named fileCrypt, baseUser, superUser and advancedUser which you will have to create. For this problem, the baseUser class will need to accept user input for a name and email for a base user. The advancedUser class should be able to extend the baseUser, by allowing an hourly rate and hours worked to be entered. Hours worked must be in the range of 0 to 80 and hourly rate is in the range of 10 to 42.50. The superUser class will then extend the advancedUser class and allow permission level of high, medium or low to be entered. All these values must be entered by the user, then output to the screen. After the user information has been entered, the user should then be able to take the permission level of the user and encrypt it by adding 15 to the base value of each character. It will then output this to a file name MyPermit.txt as a binary file type. The program will then read from the file that was created and output the information from the file to the screen. As always proper programming practices should be adhered to at all times. In addition, all input validation should be performed within the main class, not inside the classes that are created.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started