Introduction to Computer Programming Assignment

Assignment Help JAVA Programming
Reference no: EM132392937 , Length: 3 Pages

Introduction to Computer Programming Assignment -

BSc(Hons) Applied ICT with Specialisation

Open University of Mauritius

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

2201_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.

Attachment:- Computer Programming Assignment File.rar

Reference no: EM132392937

Questions Cloud

Movie program that is based on current market trends : Imagine you have the opportunity to pitch an idea for a new TV or movie program that is based on current market trends.
Improving communication within the organization : Discuss a tool or strategy a leader can adopt for improving communication within the organization.
Discuss the process for closing the project management plan : Discuss how the deliverable will be accepted by the customer/client. Discuss the process for closing the project management plan.
Define several forms of metadata : Define several forms of metadata that can be useful to an investigation. How are valuable to an investigator?
Introduction to Computer Programming Assignment : Introduction to Computer Programming Assignment Help and Solution. Open University of Mauritius.
Indicate what is the research question : Indicate what is the research question is. Identified other research that might inform your proposed research. (Eg. professional bodies, government report).
What was your impression of the pay surveys : What was your impression of the pay surveys you were able to access? If you were a compensation manager trying to price these positions, would the information.
Define what is meant by risk management : A human resource professional, as we have learned, has many disparate duties and responsibilities. One of the duties that is increasing in its importance.
How you would address the aspect you have selected : Propose how you, as the head of a U.S.-based multinational organization, would address the aspect you have selected as part of the TPP.

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