Create a client arraylist to process input records in main

Assignment Help Programming Languages
Reference no: EM131321279

Assignment

Scenario/Summary

In this lab, you will create one project that reads from a file, one project that writes to a file, and one project drawing a snowman.

Program files for each of the following programs.
Write out client information
Read in client information
Draw a snowman

At the beginning of all your programs, put a comment box that includes the program name, your name, and a brief description of the program.

Example:

/***********************************************************************

Program Name: ProgramName.java

Programmer's Name: Student Name

Program Description: Describe here what this program will do

***********************************************************************/

How to submit your assignment:

The programs must have the same names as the assignment title.

Each Java source file (*.java) must include a corresponding class file (*.class) program as evidence of success.

In addition to the program source code files and byte code files, put all your program source code files and screen shots of your program output files into a Word document.

You must use a zipped folder to send your weekly assignment to the Dropbox. Do not send subfolders within your zipped folder. Place all of the .java and .class files for the week into the one zipped folder. The zip folder should be named CIS355A_YourLastName_iLab_Week5, and this zip folder will contain all the weekly programming assignments.

Required Software

Eclipse

Steps: 1, 2, and 3

Lab Steps

STEP 1: Writing out Client Information

1) Create the following GUI, so that when your program is running, your user can input information regarding a client and hit the save button to save the information out to a file.

2) Every time the user hits the save button, that information should be saved out to a file called client.txt; each new client's information should append to the information already saved onto the file client.txt.

3) The data in the client.txt file should be formatted like the following.

STEP 2: Reading in Client Information

1) Create a class called Client, the Client class must contain attributes for Client name, Client ID, starting balance, and closing balance, and all other accessor/mutator/constructor functions as necessary.

2) Assume you have a client.txt file with the following sample information.

Charles Smith|100235|5700.75|1200.00
James Peterson|320056|349.56|4005.56
Francis Lewis|400556|7500.00|456.23
William Burgess|45399|5000.00|1245.56
Philip Wilson|10090|10000.00|2300.75
James Brown|34291|25000.45|31454.86

3) Create a Client ArrayList to process input records in main().

4) Use a for loop to read in the information from client.txt.

5) The GUI to this program should look similar to this:

6) Once the user hits the display button, everything read in from the file should display in the Console window in this format.

STEP 3: Snowman!

Use the many draw methods provided to you by Java and draw a Snowman-be as creative or as basic as you would like, as long as the final result resembles a snowman. It doesn't have to necessarily look exactly like this, but this is the minimum you should achieve with your drawing.

1) You must have at least three circles in your project.

2) You must have at least a line, a polygon, an oval, or a rectangle.

3) In addition to your snowman, you should also use drawString to draw some text.

4) Use draw or fill and the color class as you see fit.

Reference no: EM131321279

Questions Cloud

What is lowest density detectable using current transient : At what temperatures would you use these two methods to get maximum sensitivity and sufficiently slow decay to allow the use of highly sensitive but slow capacitance and current meters.?
Initial angular acceleration of the object : 1) What is the initial angular acceleration of the object? 2) What is the initial acceleration  of the center of mass of the object?
Are the reverse characteristics affected : What can you conclude from this exercise - what can an experimental I-V curve reveal about the processing and design difficulties?
Does the correlation demonstrate construct validity : Compute the Pearson correlation coefficient between the new measure and the score on the Likert scale. Does the correlation demonstrate construct validity?
Create a client arraylist to process input records in main : Create a Client ArrayList to process input records in main(). Use a for loop to read in the information from client.txt. Create a class called Client, the Client class must contain attributes for Client name.
Three concepts or laws to support : Explain how flight is achieved.  Please provide an example and use three concepts or laws to support your explanation and example.
Contrast different types of probability sampling techniques : Compare a sample and a population. Under what circumstances can a sample be used to draw conclusions about a population?
Evaluate the internal control procedures : Evaluate the internal control procedures that have been implemented in the business - In theory, you should be able to expect these things. In practice, however, you must establish an internal control framework to make sure your business objectives..
What are the pros and cons : Several governments have subsequently signaled their intention to go to the Moon to mine helium-3 as a fuel supply. Is this a potential and viable solution to our energy problems? What are the pros and cons?

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a program for a calculator

Write a program for a Calculator that can do two operations, + and -. This calculator should be able to add or subtract two numbers of any size. You may use Recursion if you want.

  Create a menu type form that gives user to select subforms

Create a menu type form that provides the user the capability to select one of the following two subforms. Means of selection is programmers choice.

  Create a very simple four function integer calculator

Create a very simple four function integer calculator with buttons for Add, Subtract, Multiply, and Divide, and with two text-type input fields. When the user enters two numbers and clicks one of the buttons, the answer is displayed where shown.

  Type of control used in programming

Loop statements are another type of control used in programming that allow programmers to interrupt the structural flow of a program.

  Implement and test the human resource information system

Assignment C# Application & Test Report - As part of your development efforts you will prepare and apply a small collection of test cases to verify that the completed application meets some of the key requirements agreed with the client - Your smal..

  Get input from command line file1 & file2

Check if file1 is the same as file2, if yes, printout error message

  Write a single line for body of constructor to create object

Create the constructor Orb(int xSpeed, int ySpeed). Write a single line for the body of the constructor,which creates a new Velocity object.

  Write code using while loop for data validation

Write code or pseudo code using while loops to do Data Validation for following user prompts:input positive # input negative # input number between 1 and 100, inclusive.

  Write a perl program to parse out the file

Do a search for the term "anthrax" in PubMed. Then search the Protein and Nucleotide databases -

  Develope a tutoring software for an elementary school

You are the project manger for a company that is planning to develope a tutoring software for an elementary school that will follow their curriculum create a work breadown structure.

  Write a short report on a current game engine

Briefly introduce and discuss a game engine of students own choice. Students are encouraged to explore the concept and discussion of existing technologies which define a game engine.

  Design and write program using functions to calculates area

Design and write a program, using functions, that calculates the area and perimeter of a rectangle whose dimensions (length and width) are provided by a user.

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