Fundamentals of Operating Systems and Java Programming: Volbank System

Verified

Added on  2019/11/20

|14
|763
|260
Homework Assignment
AI Summary
The assignment focuses on the Volbank computer system, which matches volunteers with volunteer organizations. It begins with a system analysis, including the identification of actors (Volunteers, Volbank, Organizations, and Web Server) and use cases (Create Account, Add Time, Handle Notifications, etc.). A use case diagram is employed to visualize the relationships between these entities. Priority use cases, such as 'Create Account' and 'Handle Notifications,' are identified for further elaboration. The assignment then transitions into class design, requiring the creation of at least four classes (Volunteer, Organisation, Volbank, and Server), along with their attributes, datatypes, and possible value ranges. Finally, the assignment provides class declarations and implementations in Java, including initialization and a display() method to output the datatypes to the console. This comprehensive approach allows students to demonstrate their understanding of system analysis, UML diagrams, and object-oriented programming using Java.
Document Page
Fundamentals of Operating Systems and Java
Programming.
Volbank Computer System is tasked on simply matching volunteers and
volunteer organizations on regard on
Opportunities available by notifying both parties, via either fax or Email.
Hence on review of the case study it was apparent to come up with a
manner of analyzing the system explaining the collaboration of entities
within the system.
A use case diagram is used to describe the relations of entities (Use
cases) that make up a system that is actors and use cases. Actors can be
human or external systems, use cases are roles.
Q1.
a) List the actors and use cases that you think area
involved with the system
Actor Use case
1 Volunteer Create account
tabler-icon-diamond-filled.svg

Paraphrase This Document

Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
Document Page
Add time
2 Volbank Handle
notifications
Transfer data
Record time
Record needs
Volbank Handle matching
Record match
Record successful
matches
volbank Produce
agreements
3 Organization Create account
Outline needs
4 Web server Handle accounts.
Document Page
b) Which actors have an association with which use cases?
Actor Association Use case
1 Volunteer associates Create
account
Add time
2 Volbank associates Handle
notifications
Transfer
data
Record time
Record
needs
Handle
matching
Document Page
Record
match
Record
successful
matches
Produce
agreements
3 Organization associates Create
account
Outline
needs
4 Web server associates Handle
accounts.
c) Which are the priority use cases for elaboration?
Priority use cases for elaboration include:
i. Create account use case.
ii. Handle accounts use case
tabler-icon-diamond-filled.svg

Paraphrase This Document

Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
Document Page
iii. Add time
iv. Handle notifications.
d) Provide the UML diagram.
Document Page
Q2) Determine the classes that are required for the design
(minimum of four classes). All classes need to be given a
meaningful name.
a. Volunteer class
b. Organisation class
c. Volbank class
d. Server class
Q3 Assign attributes/fields for the classes specifying the
datatype, the possible range of values (meaningful names
should be given).
a. Volunteer class attributes
Account number :INT
Name :string
Gender: STRING
ZipCode:INT
EMAIL: String
b. Organisation class attributes
Account number :INT
Name :string
Category need: STRING
ZIPCODE :INT
Document Page
C. Volbank Class attribute
Volbank ID:INT
ZIPCODE:INT
VolbankName:String
D) Volbank server attributes:
Account no: INT
ZIPCODE:INT
Q4) Provide the class declaration for three of the classes and a simple
implementation of initialization of datatypes of the classes. And provide
a display () method that outputs the datatypes to the console.
1.VOLUNTEER CLASS
import java.util.Scanner;
tabler-icon-diamond-filled.svg

Paraphrase This Document

Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
Document Page
public class Volunteer {
public static final int Accno=getAcc();
public static int count = 0;
public int id,zip;
public String Gender,Name,Email;
public Volunteer() {
id = count;
count++;
}
private static int getAcc(){
System.out.println("Please input your ACC no");
Scanner in = new Scanner (System.in);
return in.nextInt();
Document Page
}
public void display()
{
System.out.println(Accno);
System.out.println(id+zip);
System.out.println(Gender+Email+Name);
}
public static void main(String[] args) {
Volunteer.getAcc();
Volunteer Disp = new Volunteer();
Disp.display();
}
Document Page
}
2.ORGANISATION CLASS
package organisation;
import java.util.Scanner;
public class Organisation {
public static final int Accno=getAcc();
public static int count = 0;
public int id,zip;
tabler-icon-diamond-filled.svg

Paraphrase This Document

Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
Document Page
public String Name,Email,Category;
public Organisation() {
id = count;
count++;
}
private static int getAcc(){
System.out.println("Please input your ACC no");
Scanner in = new Scanner (System.in);
return in.nextInt();
}
public void display()
{
System.out.println(Accno);
System.out.println(id+zip);
Document Page
System.out.println(Email+Name+Category);
}
public static void main(String[] args) {
Organisation.getAcc();
Organisation Disp = new Organisation();
Disp.display();
}
}
3.Volbank class
package volbanks;
public class Volbanks {
public static int count = 0;
chevron_up_icon
1 out of 14
circle_padding
hide_on_mobile
zoom_out_icon
[object Object]