ComputerScienceExpert

(11)

$18/per page/

About ComputerScienceExpert

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Applied Sciences,Calculus See all
Applied Sciences,Calculus,Chemistry,Computer Science,Environmental science,Information Systems,Science Hide all
Teaching Since: Apr 2017
Last Sign in: 103 Weeks Ago, 3 Days Ago
Questions Answered: 4870
Tutorials Posted: 4863

Education

  • MBA IT, Mater in Science and Technology
    Devry
    Jul-1996 - Jul-2000

Experience

  • Professor
    Devry University
    Mar-2010 - Oct-2016

Category > Programming Posted 25 May 2017 My Price 8.00

Java Programming Lab 6 Files

Java Programming

Lab 6 Files

 

Purpose

Purpose is to practice using file input and output, and array list of objects. Also, this

document tells you only what to do, you now have more responsibility to design how to

do it.

 

Problem description

You are given a text file called 'Students.txt' that contains information on many

students. Your program reads the file, creating many Student objects, all of which will

be stored into an array list of Student objects, in the Students class. The Tester class

controls everything, calling many Students class methods to produce lots of different

outputs. The program must write the output to an output file and to the Terminal

Window.

 

File and class specifications

Students.txt file format

Information for each student is stored in the file as 3 lines of text:

name

age

GPA

e.g. the following shows data for two students:

Name0

22

1.2

Name1

22

2.71

 

Student class

The Student class has instance variables and methods to represent one single student.

 

Your Student class must have exactly and only the following instance variables:

private String name;

private int age;

private double gpa;

 

 

© Anthony W. Smith, 2016CSCI 114 Programming Fundamentals IILab 6 Files1Lab 6 FilesPurposePurpose is to practice using file input and output, and array list of objects.Also, thisdocument tells you only what to do, you now have more responsibility to design how todo it.Problem descriptionYou are given a text file called 'Students.txt' that contains information on manystudents.Your program reads the file, creating manyStudentobjects, all of which willbe stored into an array list ofStudentobjects, in theStudentsclass.TheTesterclasscontrols everything, calling manyStudentsclass methods to produce lots of differentoutputs.The program must write the output to an output file and to the TerminalWindow.File and class specificationsStudents.txtfile formatInformation for each student is stored in the file as 3 lines of text:nameageGPAe.g. the following shows data for two students:Name0221.2Name1222.71StudentclassTheStudentclass has instance variables and methods to represent one single student.YourStudentclass must have exactly and only the following instance variables:private String name;private int age;private double gpa;

Attachments:

Answers

(11)
Status NEW Posted 25 May 2017 08:05 AM My Price 8.00

-----------

Attachments

file 1495700658-Solutions file 2.docx preview (51 words )
H-----------ell-----------o S-----------ir/-----------Mad-----------am ----------- Th-----------ank----------- yo-----------u f-----------or -----------you-----------r i-----------nte-----------res-----------t a-----------nd -----------buy-----------ing----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n. -----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be----------- qu-----------ick-----------ly -----------onl-----------ine----------- an-----------d g-----------ive----------- yo-----------u e-----------xac-----------t f-----------ile----------- an-----------d t-----------he -----------sam-----------e f-----------ile----------- is----------- al-----------so -----------sen-----------t t-----------o y-----------our----------- em-----------ail----------- th-----------at -----------is -----------reg-----------ist-----------ere-----------d o-----------n -----------THI-----------S W-----------EBS-----------ITE-----------. ----------- Th-----------ank----------- yo-----------u -----------
Not Rated(0)