Find Jobs
Hire Freelancers

Blue J Proj

$30-5000 USD

Closed
Posted over 14 years ago

$30-5000 USD

Paid on delivery
This is a Blue J Project that requires just a small amount of programming using java. ## Deliverables For this assignment, you will write your own `FacePamphlet` class. Your `FacePamphlet` class must extend the `Application` class in the `[login to view URL]` package. Note that you do not have to complete this class before you start working on the ZHTML page for this project--you can switch back and forth between the two tasks as needed. Before you start writing code, however, first read the [Javadoc page for the Application class][1]. Make sure your `FacePamphlet` class meets the following requirements (note that you may not be able to create an instance of your class until you have completed all of these steps): 1. It must be a subclass of `Application`. 2. Give it a constructor that takes no parameters. Make sure to pick a unique identifier for your personal version of FacePamphlet--something that will be different from anyone else in the class (using only letters, digits, and underscores). Make sure to pass your unique identifier to the superclass using `super()`. **Note: if you are trying to use "`new Application()`", that is a mistake**. Ask a TA for an explanation. 3. Give it a method called `getCurrentUser()` that returns a `UserProfile`. To implement this method, call the version of `getCurrentUser()` provided in the `Application` class, and pass it `[login to view URL]` as the required parameter--that is how you tell it the kind of class you are using to represent user accounts. 4. Define a method called `createUser()` that takes a user name and a password as parameters; both are strings. Implement this method using the following algorithm: 1. Create a new user profile object. 2. Set its (user) name and password. 3. Use `setSharedObject()` to store the new user profile with its name as the object identifier. 4. Use `setCurrentUser()` to make the new profile be the current user of your application. 5. Define a `login()` method using the same signature as the one in the `Application` class. Implement this method using the following algorithm: 1. Use `getSharedObject()` to retrieve the user profile associated with the user name. 2. If no profile is found, return false. Otherwise, complete the remaining steps. 3. Check the password to see if it equals the one in the user profile (do **not** use ==). 4. If it matches, set the profile as the current user and return true. Otherwise, return false. There is also an Optional Part 2 to this assignment that would require some ZHTML writing for this program
Project ID: 2891225

About the project

Remote project
Active 15 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

About the client

Flag of UNITED STATES
United States
0.0
0
Member since Sep 24, 2009

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)
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.