Question: 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

Write a java applet that allows the user to draw his/her datain the form of a chart. First, the user is prompted toenter his/her data (maximum of 64 integer values) and then he/she will

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

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 Accounting Questions!