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

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

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