Gui-based event-driven application program, JAVA Programming

Assignment Help:

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.

 


Related Discussions:- Gui-based event-driven application program

Explain multiple initializers and incrementers, Explain Multiple Initialize...

Explain Multiple Initializers and Incrementers ? Sometimes it's essential to initialize several variables before starting a for loop. Similarly you may need to increment more t

Implementation of Kruskal’s Algorithm, • A Graph Data Type (including a dis...

• A Graph Data Type (including a display method to show adjacencies) • A Cycle Checker (as described in lecture notes) • An Edge class • A sorting algorithm to sort an array of Edg

Catch clause should be used to handle the exception, How does a try statem...

How does a try statement determine which catch clause should be used to handle the exception?

Developing a prototype system in php and javascript, General Overview A...

General Overview A number of organisations are using micro-blogging as a cost-effective way of communicating with customers, building online communities and releasing informati

Difference between an application server and a web server, An application s...

An application server creates data for a Web server - as, collecting data from databases, processing security checks, applying relevant business programs, and/or storing the state

What are application softwares, What are application softwares? List down t...

What are application softwares? List down the names of three application software's. Definition: Application Software are in which software then can interact directory along

Getting code, can i have code on this assignment: The code in the main meth...

can i have code on this assignment: The code in the main method should do the following: 1. Prompt the user for a string input value for the amount in dollars and store it in a va

Complete back end and front end development, Complete Back end and Front En...

Complete Back end and Front End Development Project Description: This work is a part of ongoing project. The need is to prepare and integrate the web part of this project.

Illustrate inheritance and composition?, The ' is a ' relationship is use...

The ' is a ' relationship is used with inheritance and ' has a ' relationship is used with composition . Both composition and inheritance allow you to perform sub-objects in

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd