The first Programming project is:
Write a program to enter employee data, including Social Security number and salary, into an array. The maximum number of employees is 100, but your program should also work for any number of employees less than 100. Your program should use two exception classes, one called SSNLengthException for when the Social Security number entered - without dashed or spaces - is not exactly nine characters and the other called SSNCharacterException for when any character in the Social Security number is not a digit. When an exception is thrown, the user should be reminded of what she or he entered, told why it is inappropriate, and asked to reenter the data. After all data has been entered, your program should display the records for all employees, with an annotation stating whether the employee's salary is above or below average. You will also need to define the classes Employee, SSNLengthExceptoin, and SSNCharacterException. Derive the class Employee from the class Person in Listing 8.1 of Chaper 8. Among other things, the class Employee should have input and output methods, as well as constructors, accessor methods, and mutator methods. Every employee object should record the employee's name (as defined in Person), salary, and Social Security number, as well as any other data you need or think is appropriate. Listing 8.1: public class Person { private String name; public Person() { name = "No name yet"; } public Person(String initialName) { name = initialName; } public void setName(String newName) { name = newName; } public String getName() { return name; } public void writeOutput() { [login to view URL]("Name: " + name); } public boolean hasSameName(Person otherPerson) { return [login to view URL]([login to view URL]); } }
The next programming project is:
Traditional password entry schemes are susceptible to "shoulder surfing" in which an attacker watches an unsuspecting use enter their password or Pin number and uses it later to gain access to the account. One way to combat this problem is with a randomized challenge-response system. In these systems the user enters different information every time based on a secret in response to a randomly generated challenge. Considder the following scheme in whish the password consists of a five digit pin number(00000-99999). Each digit is assigned a random number that is 1,2,or 3. The user enters the random numbers that correspond to their pin instead of their actual pin numbers.
for example, consider the pin number 12345.
to authenticate the user would be presented with a screen such as:
Pin: 0 1 2 3 4 5 6 7 8 9
Num:3 2 3 1 1 3 2 2 1 3
the user would enter 23113 instead of 12345
Write a program to simulate the authentication process. Store an actual pin number in your program. The program should use an array to assign random numbers to the digits from 0 to 9. Output the random digits to the screen, input the response from the user, and output whether or not the user correctly matches the pin number.
I am a college student and have to write projects like this all the time and my programming is more likely to look like yours. Please let me know the deadlines you are looking at and I can get on this right away.