SlideShare a Scribd company logo
Now that you have your GUI operational, it is time to take the
application a step further. Management would like you to write
the entered data into a file. They intend to use an application to
read this file, evaluate the entered data, and display results.
These results will help management to make decisions on sales
force direction and expansion. Each time the ENTER button is
pressed, the entered sales representative’s data will be written
out to a file. A new button, EVALUATE will be added that
reads in the sales representative’s data file after it has been
created.
Design Requirements:
You must use pseudocode to design your algorithm for the
ENTER button functionality.These design artifacts
(pseudocode) will be inserted into a design document to be
reviewed by your classmates and submitted with the final
application for the final task.
Application Requirements:
Expand your Swing application to write the entered data out to a
text file. Instead of displaying the data in the jTextArea when
ENTER is pressed, change this functionality so that the data is
written to a file. Name the output file salesrep.txt. Each time
the ENTER button is pressed, the data will be written to the
file. Write the data in the following format to a text file, using
white spaces as the delimiter. Include the categories
(SUPPLIES, BOOKS, PAPER) in your file to label the dollar
amount sold for each category. The sales district entered should
be converted to upper case (NORTH, SOUTH, EAST, WEST).
Independent line separators should be used in the output file.
Code for the ENTER button should be well commented.
Format of your file:
salesRepID firstName lastName SUPPLIES
totalAmountSuppliesSold BOOKS totalAmountBooksSold
PAPER totalAmountPaperSold district contactMeans
Example output file contents:
1001 Jennifer Ward SUPPLIES 2140.20 BOOKS 5200.10
PAPER 455.23 NORTH Phone
1003 Athena Andrews SUPPLIES 5155.55 BOOKS 6300.50
PAPER 223.25 SOUTH Email
Each time the ENTER button is pressed, the application should
append a new line to the file. When the application starts, the
file should be opened for appending. This file is to keep a
running history of the entered data

More Related Content

PDF
Tm 1st quarter - 2nd meeting
PDF
ibuyer_Manual
PDF
Import Guide - Cloud for Customer Edge and Starter Edition - Guide v2.6
DOCX
Part 1 - Microsoft AccessView GlossaryUse Access to create a.docx
PDF
Sap enhanced functions
DOCX
INTRODUCTION TO CaseWare IDEAProvided by Audimation Services, .docx
PDF
FDMEE script examples
PDF
FDMEE script examples
Tm 1st quarter - 2nd meeting
ibuyer_Manual
Import Guide - Cloud for Customer Edge and Starter Edition - Guide v2.6
Part 1 - Microsoft AccessView GlossaryUse Access to create a.docx
Sap enhanced functions
INTRODUCTION TO CaseWare IDEAProvided by Audimation Services, .docx
FDMEE script examples
FDMEE script examples

Similar to Now that you have your GUI operational, it is time to take the appli.docx (20)

PPTX
Adobe pagemaker
PPT
Alcenco Label Flow Tutorial
PPTX
PPT On MS-Access 2007 | Full Concepts |
DOCX
How to create pivot table in excel
PDF
PDF
Day1, session ii&iii- spss
DOCX
How to Download IDEA for Windows Based ComputersSelect the dow.docx
PDF
Tableau online training
PPTX
INFORMATION TECHNOLOGY (ICT Skills ).pptx
PDF
Tableau online training || Tableau Server
PDF
Tableau online training || Tableau Server
PPTX
Tableau Desktop Material
PPTX
Presentation in computer
PDF
Sale Record System
PPTX
What Are the Key Steps in Scraping Product Data from Amazon India.pptx
PDF
What Are the Key Steps in Scraping Product Data from Amazon India.pdf
DOC
Template builder for word tutorial
PPTX
Lesson 3 advanced word processing skills
DOC
How to design a report with fine report reporting tool
PPTX
Advanced Excel Demo
Adobe pagemaker
Alcenco Label Flow Tutorial
PPT On MS-Access 2007 | Full Concepts |
How to create pivot table in excel
Day1, session ii&iii- spss
How to Download IDEA for Windows Based ComputersSelect the dow.docx
Tableau online training
INFORMATION TECHNOLOGY (ICT Skills ).pptx
Tableau online training || Tableau Server
Tableau online training || Tableau Server
Tableau Desktop Material
Presentation in computer
Sale Record System
What Are the Key Steps in Scraping Product Data from Amazon India.pptx
What Are the Key Steps in Scraping Product Data from Amazon India.pdf
Template builder for word tutorial
Lesson 3 advanced word processing skills
How to design a report with fine report reporting tool
Advanced Excel Demo
Ad

More from abhi353063 (20)

DOCX
number 1answer this in a paragraphShare the findings of your DiS.docx
DOCX
number 1complete the attached test called the urbulence Tole.docx
DOCX
number 1Are you a born leader If yes, provide examples of how y.docx
DOCX
number 1complete the attached test called the urbulence Tole.docx
DOCX
number 1answer this one in a pargraphAlthough you may not be.docx
DOCX
Nr  QuestionMarkDiscuss the three main environments that make.docx
DOCX
nron Corporation was launched in 1985, with the merger of Houston Na.docx
DOCX
Now that you understand the full project lifecycle and how all the p.docx
DOCX
Now that you sre beginig your second semester as astudent at Califor.docx
DOCX
Now that you have developed an in-text citation for a summary, parap.docx
DOCX
Now that you have completed the sections on fiscal and monetary poli.docx
DOCX
Now that we have decided to become an S Corp after reviewing the var.docx
DOCX
Novel Shift by Em BaileyDescribe each of the minor characters i.docx
DOCX
Nothing in science is written in stone.Whenever new discoveries .docx
DOCX
Now my experiment was to go to randomly selected people and ask th.docx
DOCX
Notice Due today before 12 am pacifAssignment 1 Discussion—Soci.docx
DOCX
Notes on Hermes I. Hermes and Boundaries A. Hermes’ na.docx
DOCX
Note. The purpose of this outline is to assist you in gathering th.docx
DOCX
Note1. The Topic of research is Roller derbysubculture name .docx
DOCX
Note You may not rely on any fallacy websites. Attempting to use .docx
number 1answer this in a paragraphShare the findings of your DiS.docx
number 1complete the attached test called the urbulence Tole.docx
number 1Are you a born leader If yes, provide examples of how y.docx
number 1complete the attached test called the urbulence Tole.docx
number 1answer this one in a pargraphAlthough you may not be.docx
Nr  QuestionMarkDiscuss the three main environments that make.docx
nron Corporation was launched in 1985, with the merger of Houston Na.docx
Now that you understand the full project lifecycle and how all the p.docx
Now that you sre beginig your second semester as astudent at Califor.docx
Now that you have developed an in-text citation for a summary, parap.docx
Now that you have completed the sections on fiscal and monetary poli.docx
Now that we have decided to become an S Corp after reviewing the var.docx
Novel Shift by Em BaileyDescribe each of the minor characters i.docx
Nothing in science is written in stone.Whenever new discoveries .docx
Now my experiment was to go to randomly selected people and ask th.docx
Notice Due today before 12 am pacifAssignment 1 Discussion—Soci.docx
Notes on Hermes I. Hermes and Boundaries A. Hermes’ na.docx
Note. The purpose of this outline is to assist you in gathering th.docx
Note1. The Topic of research is Roller derbysubculture name .docx
Note You may not rely on any fallacy websites. Attempting to use .docx
Ad

Recently uploaded (20)

PPTX
Lesson notes of climatology university.
PDF
VCE English Exam - Section C Student Revision Booklet
PDF
Computing-Curriculum for Schools in Ghana
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PPTX
Presentation on HIE in infants and its manifestations
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
O7-L3 Supply Chain Operations - ICLT Program
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PPTX
Cell Types and Its function , kingdom of life
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PDF
A systematic review of self-coping strategies used by university students to ...
PDF
Microbial disease of the cardiovascular and lymphatic systems
PDF
RMMM.pdf make it easy to upload and study
PPTX
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PDF
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
PPTX
Institutional Correction lecture only . . .
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Lesson notes of climatology university.
VCE English Exam - Section C Student Revision Booklet
Computing-Curriculum for Schools in Ghana
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
Presentation on HIE in infants and its manifestations
2.FourierTransform-ShortQuestionswithAnswers.pdf
O7-L3 Supply Chain Operations - ICLT Program
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Cell Types and Its function , kingdom of life
Supply Chain Operations Speaking Notes -ICLT Program
A systematic review of self-coping strategies used by university students to ...
Microbial disease of the cardiovascular and lymphatic systems
RMMM.pdf make it easy to upload and study
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
Institutional Correction lecture only . . .
Chapter 2 Heredity, Prenatal Development, and Birth.pdf

Now that you have your GUI operational, it is time to take the appli.docx

  • 1. Now that you have your GUI operational, it is time to take the application a step further. Management would like you to write the entered data into a file. They intend to use an application to read this file, evaluate the entered data, and display results. These results will help management to make decisions on sales force direction and expansion. Each time the ENTER button is pressed, the entered sales representative’s data will be written out to a file. A new button, EVALUATE will be added that reads in the sales representative’s data file after it has been created. Design Requirements: You must use pseudocode to design your algorithm for the ENTER button functionality.These design artifacts (pseudocode) will be inserted into a design document to be reviewed by your classmates and submitted with the final application for the final task. Application Requirements: Expand your Swing application to write the entered data out to a text file. Instead of displaying the data in the jTextArea when ENTER is pressed, change this functionality so that the data is written to a file. Name the output file salesrep.txt. Each time the ENTER button is pressed, the data will be written to the file. Write the data in the following format to a text file, using white spaces as the delimiter. Include the categories (SUPPLIES, BOOKS, PAPER) in your file to label the dollar amount sold for each category. The sales district entered should be converted to upper case (NORTH, SOUTH, EAST, WEST). Independent line separators should be used in the output file. Code for the ENTER button should be well commented. Format of your file: salesRepID firstName lastName SUPPLIES totalAmountSuppliesSold BOOKS totalAmountBooksSold PAPER totalAmountPaperSold district contactMeans Example output file contents: 1001 Jennifer Ward SUPPLIES 2140.20 BOOKS 5200.10
  • 2. PAPER 455.23 NORTH Phone 1003 Athena Andrews SUPPLIES 5155.55 BOOKS 6300.50 PAPER 223.25 SOUTH Email Each time the ENTER button is pressed, the application should append a new line to the file. When the application starts, the file should be opened for appending. This file is to keep a running history of the entered data