Create an array of student objects

Assignment Help JAVA Programming
Reference no: EM132385022

Assignment -

A text document (i.e text file) student.txt contains the following information:

711_figure.png

The text document is attached for you. The format of the information in Figure 1 is depicted as in the following order: The username is in the first position, followed by the first name of the student, the last name of the student and the age of a student.

You are required to write a program in Java which will allow any user to load data from the text document into a java array object and insert these data from the array object to a database:

1. Build a class "student" which will allow any other java classes to access the username, firstname, lastname and the age of a student object.

2. You will have to create an array of student objects. You will also have to load all the data from the text document student.txt into the array you created.

3. The user shall then be allowed to input any username to the program.

4. The program will then verify if the username input in part (3) is presently in the student array you created. If the username is not present in the student array, the program shall print on the screen "username is not present in the text document" and request the user to input username again.

5. If the username is present in the student array, the program shall print "Username is present in the text document".

6. If the username is present in the student array,, the program shall then connect to a database. Note: The database you choose is as per your choice.

7. The program shall store the following value retrieved from the array object and store them into two database tables.

The database fields are as followed: username,firstname, lastname and age into two database tables.

Details of tables:

"tbl_login" database table contains the following field names: id, username and password

"tbl_student" database table contains the following field names: id, username, first name, last name.

In both tables, id is the primary key and is auto generated.

Reference no: EM132385022

Questions Cloud

ITECH1100 Hat City Assignment Problem : ITECH1100 Hat City Assignment help and solution, Federation University, Assessment help - Apply business information software for data visualization.
Count of drawing a red ball is a binomial distribution : A ball is drawn from a bag of 26 red and 12 yellow balls. The process is repeated 50 times, replacing each ball that is drawn.
Select the observed and expected frequencies for item : Select the observed and expected frequencies for Item 2 produced by Plant B.
What is the value of joe z-test statistic : To test if the doors differ significantly from the standard industry width of 36 inches, he computes a z-statistic. What is the value of Joe's z-test statistic
Create an array of student objects : You will have to create an array of student objects. You will also have to load all the data from the text document student.txt into the array you created
How many students will marta have to sample : How many students will Marta have to sample without replacement to treat the observations as independent?
Observed differences in the group means : Can we conclude that the group membership or treatment variable caused the observed differences in the group means? Why or why not?
Interpreted as evidence for a causal connection : Are there any circumstances when a correlation such as Pearson's r can be interpreted as evidence for a causal connection between 2 variables? If yes, when?
Briefly describe the fictional firm : You will be acting as a team of consultants to a fictional global engineering and construction company. Briefly describe the fictional firm

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