Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Java Expert


Home >> Java

Need to implement an UML to java code. Choose one of the two UML's and just implement.

Overview - Teaching children good behavior is a central activity to parenting. Generally there are two models for doing so:

  • Positive reinforcement, in which children are rewarded for good behavior. For example, a parent may add a marble to a cup every time the child exhibits good behavior, and after a certain number of marbles are collected, the child may cash them in for a reward (like ice cream, a new video game, etc.) (The parent could also remove marbles for bad behavior.)
  • Punishment, in which children are given negative consequences for bad behavior. With this model, a parent may add a marble to a cup every time the child exhibits bad behavior, and after a certain number of marbles are collected, the child must experience some negative consequence (like losing video game privileges, doing extra chores, etc.) (The parent could also remove marbles for good behavior.)

In either model, parents often find it hard to keep track of a child's rewards or consequences, especially when they have multiple children. Thus, your client wants you to develop Behave!, a program that allows parents to manage their children's behavior by keeping track of their rewards and/or consequences, much like in the above examples, but in an automated way. Below are the detailed requirements for Behave! The program will be developed in Java.

Tokens - In Behave!, all behavior is rewarded/punished in the form of tokens. Tokens are equivalent to marbles in the above examples.

Modes - A parent must choose a mode for each child: positive or negative.

  • In positive mode, tokens are positive, meaning that the parent gives the child one or more tokens for good behavior (as in example 1 above), and can take them away for bad behavior. In this mode, tokens should look positive (e.g., have a happy face on them).
  • In negative mode, tokens are negative, meaning that the parent gives the child one or more tokens for bad behavior (as in example 2 above), and can take them away for good behavior. In this mode, tokens should look negative (e.g., have a sad face on them).

 Users - There are two types of users: parents and children.

Parents should be able to:

  • add, edit and delete children
  • add, edit and delete tokens

When a token is added, it should be time stamped and the parent can optionally add a note about why the token was added

  • view the status of all their children (number of tokens and info about each token)
  • redeem a child's tokens for a reward (positive mode) or a consequence (negative mode)
  • define, per child, the number of tokens required for redemption and (optionally) what the tokens will be redeemed for
  • define one mode per child
  • schedule tokens to be automatically added periodically (e.g., one per day)

Children should be able to:

  • view the status of their tokens (number of tokens and info about each token)
  • redeem their tokens for a reward (positive mode)

Simplifications/Clarifications/Assumptions -

This initial version of Behave! will be a simplified proof-of-concept version to demonstrate the feasibility of the approach. Thus, there are some simplifications that you can make:

  • No authentication is needed, just identifying users by a simple username is fine.
  • For this version of Behave!, there doesn't have to be a GUI-it can all work through the command line if that is easier for you.
  • The program does not need to save anything-when it is closed all data is lost, and that is fine

Future Changes -

For future versions of Behave!, the customer is planning the following features:

  • Adding a GUI (if you don't already have one)
  • The addition of other types of modes
  • The ability to have multiple modes for one child
  • Saving data and allowing the user to load it again over multiple uses of the program
  • A "view history" feature in which users can view behavior history over time
  • Allowing parents to choose customized images to represent tokens in the GUI
  • Adding a teacher user so that parents and teachers can collaborate to manage children's behavior

Assignment: Behave! Implementation

Description -

You are to implement someone else's design, namely, the design that you ranked first (although you are allowed to change your mind at any point if you wish). In making this implementation, you have two goals:

1. To hand in a fully working Behave! program, adhering to all the original requirements (not future changes) of Behave! The only requirement that is optional for this assignment is the console input/output. If you feel it would be easier to make a GUI, you are welcome to, but it is not necessary.

2. To adhere to the chosen design as much as possible

Deliverables

1. Submitted as a single zip file via Canvas:

Working Java code (both source and a JAR file)

Brief instructions on how to provide input to the program

The original design you implemented

A revised UML document describing the design underlying the code (i.e., the design you eventually implemented)

A document describing any and all changes you had to make to the original design with a motivation as to why:

Why you made these changes

Why these changes could not be avoided.

Assignment - https://www.dropbox.com/s/gs0ksj8lmmmgcpi/Assignment.zip?dl=0

Java, Programming

  • Category:- Java
  • Reference No.:- M92195888
  • Price:- $60

Priced at Now at $60, Verified Solution

Have any Question?


Related Questions in Java

Operating systems assignment -problem 1 sharing the bridgea

Operating Systems Assignment - Problem 1: Sharing the Bridge A new single lane bridge is constructed to connect the North Island of New Zealand to the South Island of New Zealand. Farmers from each island use the bridge ...

Fundamentals of operating systems and java

Fundamentals of Operating Systems and Java Programming Purpose of the assessment (with ULO Mapping) This assignment assesses the following Unit Learning Outcomes; students should be able to demonstrate their achievements ...

Assessment -java program using array of Assessment -JAVA Program using array of objects

Assessment -JAVA Program using array of objects Objectives This assessment item relates to the course learning outcomes as stated in the Unit Profile. Details For this assignment, you are required to develop a Windowed G ...

Object-oriented software development1 introduction 11

OBJECT-ORIENTED SOFTWARE DEVELOPMENT 1. Introduction 1.1 Assignment Requirement 1.2 Deliverables and Structure (what to submit) 1.3 Software Restrictions 1.4 How to score high... 1.5 Assumptions 2. System Requirements 2. ...

Can someone kindly help me to consider whether java

Can someone kindly help me to consider whether Java provides the facility of operator overloading? If it does, may you kindly describe how overloading operators can be accomplished? If not, may you kindly describe why yo ...

Project descriptionwrite a java program to traverse a

Project Description: Write a java program to traverse a directory structure (DirWalker.java) of csv files that contain csv files with customer info. A simple sample in provided in with the sample code but you MUST will r ...

Assignment taskwrite a java console application that allows

Assignment task Write a java console application that allows the user to read, validate, store, display, sort and search data such as flight departure city (String), flight number (integer), flight distance (integer), fl ...

Assignment taskwrite a java console application that allows

Assignment task Write a java console application that allows the user to read, validate, store, display, sort and search data such as flight departure city (String), flight number (integer), flight distance (integer), fl ...

Simple order processing systemquestion given the classes

Simple Order Processing System Question: Given the classes Ship (with getter and setter), Speedboat, and SpeedboatTest. Answer the following questions: Refine the whole application (all classes) and create Abstract class ...

Can someone please help me with the following java

can someone please help me with the following java question The input is an N by N matrix of nonnegative integers. Each individual row is a decreasing sequence from left to right. Each individual column is a decreasing s ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As