Gui-based event-driven application program, JAVA Programming

GUI-Based Application

Objectives:  

(1)   Learning how to write a GUI-based application in Java.

(2) Learning how to write an event driven application program in Java. 

(3) Develop further understanding of object-oriented programming.  

Description:  In this programming assignment, you will write a GUI-based event-driven application program.   In  this GUI-based application you will implement a program that determines heart-rate based aerobic and anaerobic  training zones for endurance athletes.  Racing cyclists, for example, will maintain heart rates just below their anaerobic threshold  for hours at a time.  This capability comes from training in various zones which are based upon an individual's maximum heart rate (MHR).  Most high-level training regimes classify five different training zones.  These zones are classified as follows:

    Zone 1 = 50% - 60% of MHR 

    Zone 2 = 60% - 70% of MHR

    Zone 3 = 70% - 80% of MHR

     Zone 4 = 80% - 90% of MHR

    Zone 5 = 90% - 100% of MHR  

While an exact value for MHR requires controlled laboratory testing, an individual's theoretical MHR can be fairly accurately approximated according to the following formula:  

  MHR = 210 - (half_your_age) - (5% x weight_in_pounds) + SF

 where SF = 0 if female and 4 if male  

Your GUI-based  application should ask the user to input the three necessary pieces of information (age, weight in pounds, sex) and produce as output the recommended heart rates for  each of the five training zones as well as the calculated theoretical maximum heart rate for the user.  

For this program your GUI should look exactly like the one shown below:

1230_GUI-based application in Java.png

Restrictions:

Your .java file shall begin with header comments containing the following information: 

/*  Name: 

     COP 3330 - Summer 2011

     Assignment title: Program  #4: GUI-based Even-driven Application

     Date:   July 17, 2011

*/  

Your GUI window must be properly sized by your code to receive full-credit on the  program.  Do not resize/reshape  your GUI-window by dragging it with the mouse. You must use a FlowLayout manager for this assignment.  

The UML class diagram for the HeartRateZones class looks like the one shown below.  Note that this diagram is incomplete...you will add more class variables, instance variables, and methods  that are not shown here.

 

Posted Date: 2/25/2013 6:48:32 AM | Location : United States







Related Discussions:- Gui-based event-driven application program, Assignment Help, Ask Question on Gui-based event-driven application program, Get Answer, Expert's Help, Gui-based event-driven application program Discussions

Write discussion on Gui-based event-driven application program
Your posts are moderated
Related Questions
iPhone /Android app implemented on a website Project Description: I need someone to implement an iPhone/Android app onto a website page, So users can be able to use the Ap

Explain function system.arraycopy() ? Although copying an array isn't particularly hard, it is an operation that advantages from a native implementation. Thus java.lang.System

AskWrite an application that uses an Array to store 10messages of type String. You will store this Array with 10 messages of your choosing. For example, a message could be “I love

Explain the term- Strings A string is generally considered to be a sequence of characters stored in memory and accessible as a unit. Strings in java are signified as objects

Cryonic Labs Project Description: Seeking people to collaborate with in designing gaming apps and mobile apps for the Android Market. I'm presently a student in Computer Engi

The series of steps followed by an application is known its life cycle. A JSF application typically follows six steps in its life. 1. Restore view phase 2. Apply request valu

How many JSP scripting elements and what are they? Ans) Three scripting language elements are there: a)      declarations, b)      scriptlets, c)       expressions.

How can you define a consistent web design? Why is it needed? A consistent web design should be the one in which achieves the result in which it was designed for, which result

Explain the Execute phase of Java Program Development Finally in phase computer, under the control of its CPU, interprets program one bytecode at a time. Hence performing

The last exercise of each assignment will be continuous from assignment to assignment and will have the goal of building an e-store website by the end of the course. Date & Tim