Create a simple java program that connects to database

Assignment Help JAVA Programming
Reference no: EM131556703

Assignment: Java Database Program

Part 1

1. Create a file with your name as the data (Use the name Precious Benz). Save the file using your first initial and last name as part of the file name. Include code to copy the file. Check if the file exists first and throw a message if the file already exists. Include code to read the file using a data stream. Display the file's data on screen.

2. Using JFileChooser, build a dialog box to open and save files. The dialog box should allow you to browse directories and type in a file name. You need to consider what you will do with the file once you open it and code accordingly.

Part 2

Database Access

The objective of this assignment is to allow you to work with JDBC via an ODBC-connected Access database.

Your first task for this assignment is to locate and set up the "exampleMDB.mdb" file in the supplemental chapters section of the CD-rom that came with your Liang text. Copy this file to your hard drive. Next, create an ODBC connection to this database called "assignment8".

Next, create a simple Java program that connects to this database using JDBC. Your program should then query this database's "student" table and display a list of all the students' names in alphabetic order (based upon last name).

If you implement your program correctly, this is the output you should see:

Rick R. Carter

Frank E. Jones

Joy P. Kennedy

Toni R. Peterson

Josh R. Smith

Jean K. Smith

George K. Smith

Jacob R. Smith

John K. Stevenson

Patrick R. Stoneman

Josh R. Woo

Please do not waste my time if you do not know Java

Access database cannot be uploaded as file type is not allowed. Will email it separately.

Reference no: EM131556703

Questions Cloud

Importance of information technology and systems : Explain the importance of information technology and systems in businesses today. Include at least one (1) real-world industry example.
What is the required rate of return for rich company shares : FINA 202 Business Finance Exam. The Rich Company has a dividend growth rate of 14 percent, What is the required rate of return for Rich Company shares
Creating a training and development program : Imagine that you have been tasked with creating a training and development program for midlevel business managers in an organization.
How much less can they expect to pay over the life of loan : FINANCING A HOME The Sandersons are planning to refinance their home. The outstanding principal on their original loan is $100,000 and was to be amortized.
Create a simple java program that connects to database : create a simple Java program that connects to this database using JDBC. Your program should then query this database's "student" table.
How much larry should deposit each month : INVESTMENT ANALYSIS Since he was 22 years old, Ben has been depositing $200 at the end of each month into a taxfree retirement account earning interest.
Natural rate of unemployment : Potential GDP is $25 trillion; expectations are adaptive; the natural rate of unemployment is 5.5%; the 2010 inflation rate was 3.5%. The phillips curve is:
Warehouse management processes : Research at least 2 companies, and familiarize yourself with their warehouse management processes, and then discuss the following:
Which will provide the program user some basic information : DisplayApplicationInformation, which will provide the program user some basic information about the program.

Reviews

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd