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

  What is overloading and what is overriding

What is overloading and what is overriding? Please use code to explain it.

  Write a java servlet to validate the data

Write a Java Servlet to validate the data submitted through the above registration page. If the required fields are empty relevant error messages should be displayed on the same registration page.

  Your task in this assignment is to develop a graphical user

your task in this assignment is to develop a graphical user interface based java program that can communicate with a

  Prepare a java program to simulate a simple multiuser

prepare a java program to simulate a simple multiuser computer system as follows each user has a unique id and wishes

  Determine when the application should stop looping display

Write an application that reads a series of pairs of numbers as follows: 1) product number 2) quantity sold - Create an application in java

  Polymorphism concepts

Explain polymorphism concepts in java

  Write a java program that uses the elapsed time

Write a Java program that uses the elapsed time for an event in second and then outputs the elapsed time in hours, minutes and seconds. (For example, if the desired time is 9630 seconds, then the output is 2: 40: 30)

  Write a java application that reads a file containing text

Write a Java application that reads a file containing text. Your program should read each line and display it on the console screen preceded by line numbers.

  Design and implementation of a hangman game

Design and Implementation of a Hangman game

  Create a java class named headphones

Create a Java class named HeadPhones to represent a headphone set. The class contains- A private String data field named manufacturer that specifies the name of· A private boolean data field named pluggedIn that specifies if the headphone is plugge..

  Write an application bmicalc

Write an application (BMICalc) that reads the user's weight in poinds and height in inches, then calculates the Body Mass Index.

  Consider a class that could be used to play a game of

consider a class that could be used to play a game of hangman. the class has the following attributesthe secret wordthe

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