Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Programming Language Expert

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.

Programming Language, Programming

  • Category:- Programming Language
  • Reference No.:- M92075880
  • Price:- $40

Priced at Now at $40, Verified Solution

Have any Question?


Related Questions in Programming Language

Assignment - horse race meetingthe assignment will assess

Assignment - Horse Race Meeting The Assignment will assess competencies for ICTPRG524 Develop high level object-oriented class specifications. Summary The assignment is to design the classes that are necessary for the ad ...

Assignmentquestion onegiving the following code snippet

Assignment Question One Giving the following code snippet. What kind of errors you will get and how can you correct it. A. public class HelloJava { public static void main(String args[]) { int x=10; int y=2; System.out.p ...

Question 1 what is hadoop explaining hadoop 2 what is

Question: 1. What is Hadoop (Explaining Hadoop) ? 2. What is HDFS? 3. What is YARN (Yet Another Resource Negotiator)? The response must be typed, single spaced, must be in times new roman font (size 12) and must follow t ...

Php amp session managment assignment -this assignment looks

PHP & SESSION MANAGMENT ASSIGNMENT - This assignment looks at using PHP for creating cookies and session management. Class Exercise - Web Project: Member Registration/Login This exercise will cover adding data connectivi ...

Question - create a microsoft word macro using vba visual

Question - Create a Microsoft Word macro using VBA (Visual Basic for Applications). Name the macro "highlight." The macro should highlight every third line of text in a document. (Imagine creating highlighting that will ...

Task - hand execution of arraysoverviewin this task you

Task - Hand Execution of Arrays Overview In this task you will demonstrate how arrays work by hand executing a number of small code snippets. Instructions Watch the Hand Execution with Arrays video, this shows how to ste ...

Background informationthis assignment tests your

Background Information This assignment tests your understanding of and ability to apply the programming concepts we have covered throughout the unit. The concepts covered in the second half of the unit build upon the fun ...

1 write a function named check that has three parameters

1. Write a function named check () that has three parameters. The first parameter should accept an integer number, andthe second and third parameters should accept a double-precision number. The function body should just ...

Extend the adworks applicationi add dialogs to allow the

Extend the AdWorks application I. Add Dialogs to allow the user to Add, Edit, Read and Delete a Customer and refresh the view accordingly. 1. The user should be able to select a specific customer from the DataGrid and cl ...

Task silly name testeroverviewcontrol flow allows us to

Task: Silly Name Tester Overview Control flow allows us to alter the order in which our programs execute. Building on our knowledge of variables, we can now use control flow to create programs that perform more than just ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As