Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Version B Note to Student Once you have completed all the question requirements, copy your code to the answer box below the question box, then
Version B
Note to Student
Once you have completed all the question requirements, copy your code to the answer box below the question box, then save your project files in a folder, zip it and upload in the upload file box below the answer box.
Question
The National Energy Regulator of South Africa NERSA keeps annual statistics of the number of litres of fuel sold at fuel stations across the country. They have approached you as a Java developer to assist them in developing a program that they can use in their business operations. They have provided you with a file with a list of the litres of fuel sold in the respective nine provinces for the year
Source: Makura SM
Question
Develop a Java application for NERSA. Your application should retrieve the fuel sales from the database then output the results back to System.out. Your application should consist of the following:
A database:
The database should be called nersa, and should have a table called provincial sales with the following table properties:
tableField Name,Data Type SQLsaleIDINT Primary KeyAuto incrementprovinceVARCHARlitresBIGINT
You are allowed to use any Relational Database management software you are comfortable with. NERSA has given you the following information to populate the database:
tablesaleIDprovince,litresGauteng,Western Cape,KwaZuluNatal,Mpumalanga,Eastern Cape,North West,Free State,Limpopo,Northern Cape,
Figure Structure of the Provincial Sales Table
Ensure that your program handles basic exceptions.
Also, ensure that the program repeatedly shows the menu until a point when Option is selected which terminates the program. A goodbye message must be displayed as shown in Figure below.
Figure When Option is selected
Source: Makura, SM
Note: You will need to copy and paste the MySQL connector.jar file in the jrelibext folder should you use MySQL as your databa
Figure below shows the added products as seen from a MySQL database.
Figure Products table as seen from the Checkers database
Please help me resolve this assignment. I really need help, I am writing tomorrow. Please resolve the all assignment. I really appreciate your help!
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