Create the investment calculator

Assignment Help JAVA Programming
Reference no: EM13781392

Introduction

Lab Exercise 12 introduces students to graphical user interfaces. After completing this exercise students should be able to:

? create a simple graphical user interface in java

? use layout managers to arrange user-interface components in a container

? use several common user-interface components, such as radio buttons, combo boxes, and text fieldsin a GUI program

? handle events from user-interface components

Getting Started

Create a Java project in your Eclipse workspace called Lab12. There are several programs in this programming assignment. Each program will have one or more java files that you will create. Create these java files under the Lab12project source folder (called src by default) in your Eclipse workspace.

What to submit

When you have completed all of the programs in this assignment you will create a single zip file that includes your source code for each program. The zip file should only include the .java files. Archive files in any other format (rar for example) will not be accepted. You should submit the following files:

· Exercise 1

HelloWorldFrame.java

HelloWorldApp.java

· Exercise 2

InvestmentFrame.java

InvestmentApp.java

Exercise 1: Hello World

Write a GUI application that prints out "Hello!" in either: English, French, or Spanish. When the user selects another language, the greeting shown in the greeting area should change.Your GUI should look like the interface shown below:
it would be French= "Bonjour!", English="Hello!", and Spanish="Hola!"

You should submit two classes for this exercise:

? HelloWorldFrame

? HelloWorldApp

The HelloWorldFrame should extend JFrame and include the GUI code. The HelloWorldApp should include a main method that creates a HelloWorldFrameand displays it.

Exercise 2: Investment Calculator

Create the following GUI that allows a user to calculate the value of an investment after a certain number of years with monthly compound interest.

The GUI should allow the user to enter the initial amount of the investment, the number of years (displayed as a drop down list with a choice of 5, 15, or 30 years), and the annual interest rate. The future value is calculated with the following formula:

Here is an example showing how to use the future value equation:

? Investment amount = 10000
? Number of Years = 5
? Annual Interest Rate = 3%
You should submit two classes for this exercise:
? InvestmentFrame
? InvestmentApp

The InvestmentFrame should extend JFrame and include the GUI code. The InvestmentAppshould include a main method that creates anInvestmentFrameand displays it.

Reference no: EM13781392

Questions Cloud

Write a program to compute the cumulative gpa : This program will compute the cumulative GPA based on user input.  This program will use dialog boxes with the JOptionPane class as well as the console to send/receive information to/from the user.
Students with severe and multiple disabilities : Visit a program for students with severe and multiple disabilities. During the interview with teachers and staff, discuss the following topics:
Create at least two vectors and demonstrate the use of each : Create a separate class, VectorTest, that will demonstrate the use of your Vector class. You must create at least two vectors, and demonstrate the use of each method. When you demonstrate the use of each method, print the results to the console ..
Discriminatory belief or phobia : Pretend you are a racist, you have this discriminatory belief or phobia. Explain what is being racist? Include an example and explain how it is NOT practicing higher-level thinking. (Intro paragraph)
Create the investment calculator : Create the following GUI that allows a user to calculate the value of an investment after a certain number of years with monthly compound interest.
Organizing function of management : Prepare a 1,050- to 1,400-word paper in which you evaluate the organizing function of management as it relates to at least two of the following organizational resources:
Effective brand name creation : Discuss ten characteristics of effective brand name creation. Then, locate three established brands that meet at least five of the listed characteristics. Explain why you think these brands meet the selected five criteria. Support your choices wit..
Problem related to the constitutional provisions : Prepare a 750-1,000-word paper that describes how the Arizona Constitution affects counties, municipalities, corporations, and schools. By way of conclusion, discuss the enduring impact the people in Arizona have had in determining the overall dir..
Problem related to the arizona constitution : Create a chart or matrix summarizing the powers and functions of the three branches of Arizona's government: List each branch of government, and identify the powers and functions of each branch. Bullet points may be used.

Reviews

Write a Review

 

JAVA Programming Questions & Answers

  Tracer for java

Implementation of a tracer of Java objects and the tracer can be invoked from any point of a Java program, accepting an object as argument.

  Create a book class for the library application project

Create a Book class for the Library application project. In addition to properties of author and isbn, with setters/getters, the Book should override Object's base method "boolean equals(Object)" and have a "boolean validate()" method.

  Write a program to read and add polynomials

Write a program to read and add polynomials - If the exponents are equal, then create a new term with that exponent and the sum of the coefficients, and advance both iterators.

  Delete a random element from an arraylist

Elements in an ArrayList and picking one at random to remove. Unfortunately, this slow, since deleting a random element from an ArrayList is slow because of all the shifting. For this question, you should modify the poll()method so that it runs in..

  Sorted list adt and the binary search tree adt

Explain the differences between our specifications of the Sorted List ADT and the Binary Search Tree ADT.

  Wrappershallow and wrapperdeep

Each class is simply a wrapper class to hold a private array variable. int [] a; The default constructor for each class should initialize â??aâ??. Each class should have a toString() and equals(). Each class should have a setArray method that allows ..

  What can a catch block do with the exception object

What can a catch block do with the exception object that it receives and write lines of code to create object input and output streams for the file c:\temp\mydata.out

  Feature of object-oriented programming

Use the Internet or Strayer databases to research the advantages, features, and common examples of OOP and EDP. Describe at least one (1) feature of object-oriented programming that Visual Logic lacks

  Create a class for services offered by a hair-styling salon

Create a class for services offered by a hair-styling salon. Data fields include a String to hold the service description and write an application named Salon Report that contains an array to hold six Service objects and fill it with the data

  Program (using java) that is suppose to find the largest

writing a program (using java) that is suppose to find the lowest integer that can be evenly divided by a range (ex. 1-25). I need help fixing/debugging it so it comes up with the proper output.

  Method level comment

What type of information should be included in a method level comment?

  Can you provide the output of this program

Can you provide the output of this program - What is the output of following JavaScript code?

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