Answered step by step
Verified Expert Solution
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 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 init0. Paint0 should be used only for drawing. 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 init0. Paint0 should be used only for drawing
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started