Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need help completing this assignment. My code is posted below and any help is greatly appreciated. Description In this activity, you will create two

I need help completing this assignment. My code is posted below and any help is greatly appreciated.
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
Description In this activity, you will create two classes: one called UserInfo and another called UserInfoDriver which contains a main method that uses the first class (i.e., UserInfoDriver creates instances of Userlnfo and calls its methods). You will also create a project, UML class diagram, and canvas for the program Part 1: Userlnfo.java - Create and test the Userlnfo class. Create your Userlnfo class and add the following comments (there will be no main method in this class). Save this class in a file named UserInfo.java as soon as you have entered the code below. public class UserInfo { // instance variables //constructor // methods Instance variables (or fields) represent the information that an object of the class needs to store. Declare the following variables after the comment:// instance variables o o o o firstName: a String for the user's first name lastName: a String for the user's last name location: a String for the user's location age: an int for the user's age status: int indicates whether the user is online or offline Hint: Use the private access modifier so that values cannot be directly accessed from outside of the object; for example, declare firstName as follows: private String firstName; Constants store values that eannot be changed. Use constants to represent the two possible statuses of the user. Constants are usually grouped with the instance variables

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Heikki Topi, Jeffrey A Hoffer, Ramesh Venkataraman

13th Edition

0134773659, 978-0134773650

More Books

Students also viewed these Databases questions

Question

Define and describe target costing

Answered: 1 week ago

Question

Create a Fishbone diagram with the problem being coal "mine safety

Answered: 1 week ago