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

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

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
Transcribed Image Text:О АСМР Триг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
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Running Time of Application
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education