Develop a Java GUI application that will display the petrol cost per litre for three different cities with a time span of three years. Q1.1)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, but the following layout is displayed for your convenience. Q1.3 The application must display a report of the city names and the average petrol price for the three different years. all in java with comments from each questions
Develop a Java GUI application that will display the petrol cost per litre for three different cities with a time span of three years.
Q1.1)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, but the following layout is displayed for your convenience.
Q1.3 The application must display a report of the city names and the average petrol price for the three different years.
all in java with comments from each questions
![О АСМР Тригreры с ЭХО | Гип х
W https://ww2.gogoanimes.org/
O Microsoft Word - PROG6112E X
O PROG6112E..pdf
b My Questions | bartleby
->
A sso.ie.ac.za/Past%20Papers/Shared%20Documents/P/2019/PROG6112E..pdf
M Gmail
D YouTube
о Марs
E News
c24 Software Developer. P. PNet - Results List
G w3schools java - G.
G w3schools html - G...
IT Practise e-book
movies
E Reading list
PROG6112EA.pdf
5 / 12
100%
Q.1.3
The application must display a report of the city names and the average petrol price
for the three different years.
4 Petrol Applicat.
File Tools
Submit
Report
Julannesburg
Durban
Саре Town
Year:
2017
SUBMIT
A sample output based on the selection above would be:
Message
Average Petrol Costs for Johannesburg is R 10.42
Average Petrol Costs for Durban is R 12.23
Average Petrol Costs for Cape Town is R 13.41
OK
21:29
O Type here to search
A ô G 1) ENG
2021/11/30
II](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F7afc768e-f51c-4619-bc36-c6c939f3bf9d%2F6b61ad8f-e26f-4af3-9d13-e081f10cf965%2F4c4tuw_processed.png&w=3840&q=75)
![](/static/compass_v2/shared-icons/check-mark.png)
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![C How to Program (8th Edition)](https://www.bartleby.com/isbn_cover_images/9780133976892/9780133976892_smallCoverImage.gif)
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781337627900/9781337627900_smallCoverImage.gif)
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)