Find Jobs
Hire Freelancers

Basic Java Programming :JavaProjects

$30-50 USD

In Progress
Posted over 11 years ago

$30-50 USD

Paid on delivery
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.
Project ID: 4021394

About the project

7 proposals
Remote project
Active 11 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
i am a Masters student in computer science and engineering with 5years java programming experience. Im ready to start this tasks
$40 USD in 0 day
5.0 (3 reviews)
2.7
2.7
7 freelancers are bidding on average $34 USD for this job
User Avatar
Hi, I'd like to do this project please and I want to do it right now. Let me know if you are interested so I can start. Thanks.
$30 USD in 0 day
5.0 (176 reviews)
6.1
6.1
User Avatar
Ready to do it. Thanks.
$50 USD in 1 day
4.9 (79 reviews)
4.6
4.6
User Avatar
Hi, I read your requirements carefully, i can handle this. Please see PMB!
$30 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
I am sure I can do this and can deliver work on time.
$30 USD in 15 days
0.0 (0 reviews)
0.0
0.0
User Avatar
It sounds interesting. I am ready to do it.
$30 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
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.
$30 USD in 7 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
Evansville, United States
0.0
0
Member since Dec 7, 2012

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759) & Freelancer Online India Private Limited (CIN U93000HR2011FTC043854)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.