Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write A Java Applet That Allows The User To Draw His/Her Data In The Form Of A Chart. First, The User Is Prompted To Enter

Write A Java Applet That Allows The User To Draw His/Her Data In The Form Of A Chart. First, The User Is Prompted To Enter His/Her Data (Maximum Of 64 Integer Values) And Then He/She Will Be Asked To Choose The Type Of Chart To Draw (Bar Chart Or Line Chart). The Program Will Then Execute The User's Request. Additional Requirements 1. The Chart Should Always

image text in transcribedimage text in transcribedimage text in transcribed

Write a java applet that allows the user to draw his/her data in the form of a chart. First, the user is prompted to enter his/her data (maximum of 64 integer values) and then he/she will be asked to choose the type of chart to draw (bar chart or line chart). The program will then execute the user's request. Additional Requirements 1. The chart should always occupy an area of (height = 300 and width=400). 2. The chart title should be displayed on top of the chart. 3. The bars in the bar chart should be displayed in different colors (e.g. randomly generated). The actual data should be displayed on top of each bar. (See Fig. 1) 4. The line chart should be displayed in a single color (e.g. red). The actual data and a character indicating the actual position of each point should be displayed on top of the point. Besides, the two axes showing the limits of the area occupied by the chart, should be displayed in different color (e.g. black). (See Fig.2). Note: Perform all the calculations in init(). Paint() should be used only for drawing.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Accounting

Authors: Jonathan E. Duchac, James M. Reeve, Carl S. Warren

23rd Edition

978-0324662962

More Books

Students also viewed these Accounting questions

Question

How are the limits set?

Answered: 1 week ago