Develop a Java GUI application that will display the petrol cost per litre for three different cities with a time span of three years. On the form create a list box, to allow a user to select between three different cities. Also create a combo box for the user to select the year. Finally add a submit button. Once the user has selected a city, year and clicked the submit button display the petrol price per litre for that year. Use the following table for the city and yearly petrol prices per litre: 2017 2018 2019 Johannesburg 10.72 10.35 10.20 Durban 12.75 12.32 12.22 Cape Town 13.70 13.31 13.23 Q.1.2 You are also required to create a menu system which will allow the user to exit the application under the file menu. Under the tools menu allow the form submission and option to display the average yearly petrol price report. The layout of the form is left to your discretion. Marks will be allocated to the presentation and effectiveness of the layout
Comments
Leave a comment