Course Solutions Uncategorized (Solved) : Java Please Help Following Code Tester Thank Instructions Code Activity Implement Program Q34969024 . . . .

(Solved) : Java Please Help Following Code Tester Thank Instructions Code Activity Implement Program Q34969024 . . . .

 

Java: Please help with my following code and tester. Thankyou.

Instructions for code:

Activity – Implement a program prompts a userfor their name, age, salary, hackername and email address.

  1. Catches the following exceptions
    1. NumberFormatException for the salary
    2. User defined Malformed email address (See below)
    3. Allows the user to try again in either case.
  2. User Class
    1. Stores user information in instance variables name, age,salary, hacker name and email address in the appropriate datatype.
    2. Default constructors only
    3. Accessor and mutator methods including:
      1. boolean setSalary(String newSalary)
        1. receives a string and converts it to a number
        2. Handles the NumberFormatException.
        3. Returns true if conversion is successful and false if not.
      2. boolean setEmail(String newEmail)
        1. receives a String
        2. Tests for Malformed email address and
          OR

          PayPal Gateway not configured

          OR

          PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

(Answered) : Explain the importance of establishing ground rules and respecting cultures amongst team members. How does diversity within memb(Answered) : Explain the importance of establishing ground rules and respecting cultures amongst team members. How does diversity within memb

Explain the importance of establishing ground rules and respecting cultures amongst team members. How does diversity within members affect the performances of the group as a whole? Your response should