Question: Please write Java program with comments. Thank u Event-Driven Programming This assignment will have you write three short programs that illustrate Event-Driven programs and Animations.

Please write Java program with comments. Thank u  Please write Java program with comments. Thank u Event-Driven Programming This
assignment will have you write three short programs that illustrate Event-Driven programs

Event-Driven Programming This assignment will have you write three short programs that illustrate Event-Driven programs and Animations. The skills you get from this chapter will help you to better visualize some of the classical data structures you will tackle in the latter chapters of the book. Part l: Future Value Calculator (same as Exercise 15.5, page 635) Write a program that calculates the future value of an investment at a given interest rate for a specified number of years. The formula for the calculation is: futureValue- investmentAmount* (1 + monthlylnterestRate)years 12 Use text fields for the investment amount, number of years, and annual interest rate. Display the future amount in a text field when the user clicks the Calculate button, as shown in Figure 15.2b of the text. Part II: Vertices and Distances (same as Exercise 15.16, page 637) Write a program that displays two circles with radius 10 at locations (40, 40) and (120, 150) with a line connecting the two circles as shown in Figure 15.30b, on page 636 of the text. The distance between the circles is displayed along the line connecting them. The user can drag a circle. When that happens, the circle and line are moved, and the distance between the circles is updated Part III: Control the Clock (similar to Exercise 15.32, page 640) Modify the DetailedClockPane.java class in your detailed clock program, to add animation to this class. Be sure to include start and stop methods to start and stop the clock, respectively.Then write a program that lets the user control the clock with the start and stop buttons

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!