SlideShare uma empresa Scribd logo
1 de 3
Baixar para ler offline
Restrictions: You cannot import any Java classes except those listed below. In particular, you
cannot use any methods from the Java Array(s) class to copy an array, check for equality, or
otherwise manipulate an array. You also may not call the Java System.arraycopy method.
You must write the Java code to perform these functions.
You will need to use (import):
the Java File class. You may use any of the methods that are available in the Java File class in
developing your algorithm. In particular, you should need to use the:
java.io.File
java.io.FileNotFoundException
the Java Scanner class
the Java wrapper classes if needed.
any of the classes that you created in any previous assignment in this course. Specifically, if
needed, you can use your ArrayBag, LinkedBag or SinglyLinkedList (from textbook Code
Fragments) classes if needed.
any Java exception class.
The java.io classes needed to write to a text file:
java.io.FileOutputStream
java.io.PrintWriter
Be sure to read the entire assignment before you begin.
Create a NetBeans project using the convention Lab106-LastFM and ensure it is saved to a
location like desktop or your flash drive. In the project you will do the following:
The Problem:
An inventory of paper and electronic U.S. Savings bonds needs to be maintained.
The U.S. Treasury provides a webpage for maintaining an inventory of Paper Savings Bonds at:
Calculate the Value of Your Paper Savings Bond(s) (treasurydirect.gov) While this webpage is
titled for paper savings bonds it also works for electronic savings bonds.
Once you enter your bonds in on the Treasury webpage you need to use the Mozilla Firefox web
browser to save the inventory. Microsoft Edge and Google Chrome browsers are not compatible.
After saving the webpage it can be reloaded in a browser to add more bonds and/or update the
values.
The upsides of the Treasury webpage are:
It shows the current value of each bond.
It shows the current interested rate for each bond.
The downsides of the Treasury webpage are:
It does not calculate the actual return on each bond.
It does not allow for a user defined memo/description field for each bond.
An Excel spreadsheet is currently being used maintain an inventory of the bonds.
The upsides of the Excel spreadsheet are:
It calculates the actual return for each bond.
It has a memo/description field for each bond.
The downsides of the Excel spreadsheet are:
The current value of each bond must be manually entered each month.
The Task:
Your task will be to write a Java program that does the following:
Convert the Excel spreadsheet information into an HTML file that the Treasury website can read
and understand.
You will actually be converting a comma separated value (CSV) file that is generated by Excel
into an HTML file that the Treasury website can read and understand.
For this assignment you are only going to go one way:
You are going to covert a CSV file into an HTML file.
You ARE NOT required to convert the HTML file into a CSV file.
It will not be necessary for you to create a web page. You will just need to modify and existing
web page so that it includes the information about the bonds in the inventory, i.e. you will add
the contents of the CSV file to the HTML file.
Three examples of the Treasury webpage are included with this assignment:
SavingsBonds-0-Bonds-Entered.html
The default web page with no bond information
SavingsBonds-2-Bonds-Entered.html
The web page with information for two bonds entered.
SavingsBonds-4-Bonds-Entered.html
The web page with information for four bonds entered.
Open these files with a browser to see what the Treasury web page looks like. Once loaded you
will need to press the Update button to see the fully formatted web page.
Fortunately, you do not need to know HTML to complete this assignment.
Open the example files with a text editor such as Notepad to look that the HTML code.
Find the Hidden Variables section in the HTML code.
Determine how bond information is stored in the Hidden Variables section by comparing the
three example web pages.
Open each of the example web pages using a browser to see what the web pages look like. You
will need to press the UPDATE button to see the processed web page.
You will need to load the CSV file information into the web page by modifying the Hidden
Variables.
Here are some example lines from the CSV file:
1/23/2008,200,R000000010I,Memo10
1/4/2022,100,IAAF1,Memo11
11/3/2022,5000,V0000000012I,Memo12
11/25/2022,100,IAAGM,Memo13
The first field is the purchase date in MM/DD/YYYY format.
The second field is the denomination of the bond:
The issue price for series I bonds is the same as the denomination.
The issue price for series EE bonds is the half the denomination.
The third field is the serial number:
For paper bonds serial numbers look like V0000000012I where:
The leading letter indicates the denomination of the bond.
The trailing letter(s) indicates the series of the bond.
You only need to support series E, EE, and I.
For electronic bonds serial numbers look like IAAF1 where:
the first letter indicates the bond series.
The fourth field is a memo field that can be ignored.
Note that there are a number of Hidden Variables that are not included in the CSV file. Your
code can just enter values of zero or blank for those fields.
HINT:
In your text editor try adding a new bond to one of the example HTML files by adding
additional values to the Hidden Variables.
Then save the HTML file and open the HTML in a browser.
Press the UPDATE button to see your updated inventory.
If you get an error, then you did not correctly add the additional values to the Hidden Variables.
Repeat this process until you determine how to correctly add a new bond.
Now write the Java code that generates an HTML file that includes the bond information for
each bond in the CSV file.
The input for your program is the CSV file.
The output for your program is the HTML file.

Mais conteúdo relacionado

Semelhante a Restrictions You cannot import any Java classes except those listed.pdf

XLS Processor Engine How To, Tutorials, Tips & Tricks
XLS Processor Engine How To, Tutorials, Tips & TricksXLS Processor Engine How To, Tutorials, Tips & Tricks
XLS Processor Engine How To, Tutorials, Tips & Tricks
Earl Grau
 
XLS PE How To Tutorials Tips & Tricks
XLS PE How To Tutorials Tips & TricksXLS PE How To Tutorials Tips & Tricks
XLS PE How To Tutorials Tips & Tricks
guest92a5de
 
Mfc programming tutorial automation step by-step
Mfc programming tutorial automation step by-stepMfc programming tutorial automation step by-step
Mfc programming tutorial automation step by-step
namtranvanpt
 
770_0629.pdf dump for oracle cloud interface
770_0629.pdf dump for oracle cloud interface770_0629.pdf dump for oracle cloud interface
770_0629.pdf dump for oracle cloud interface
lknam1982
 
Autocad excel vba
Autocad excel vbaAutocad excel vba
Autocad excel vba
rjg_vijay
 
Part 1; CSS and placing images on the page: The following files are located i...
Part 1; CSS and placing images on the page: The following files are located i...Part 1; CSS and placing images on the page: The following files are located i...
Part 1; CSS and placing images on the page: The following files are located i...
hwbloom15
 
WritingSamplesCombined
WritingSamplesCombinedWritingSamplesCombined
WritingSamplesCombined
Janet Henjum
 
Lab #9 and 10 Web Server ProgrammingCreate a New Folder I s.docx
Lab #9 and 10 Web Server ProgrammingCreate a New Folder  I s.docxLab #9 and 10 Web Server ProgrammingCreate a New Folder  I s.docx
Lab #9 and 10 Web Server ProgrammingCreate a New Folder I s.docx
DIPESH30
 
Less07 2 e_testermodule_6
Less07 2 e_testermodule_6Less07 2 e_testermodule_6
Less07 2 e_testermodule_6
Suresh Mishra
 

Semelhante a Restrictions You cannot import any Java classes except those listed.pdf (20)

As pnet
As pnetAs pnet
As pnet
 
XLS Processor Engine How To, Tutorials, Tips & Tricks
XLS Processor Engine How To, Tutorials, Tips & TricksXLS Processor Engine How To, Tutorials, Tips & Tricks
XLS Processor Engine How To, Tutorials, Tips & Tricks
 
XLS PE How To Tutorials Tips & Tricks
XLS PE How To Tutorials Tips & TricksXLS PE How To Tutorials Tips & Tricks
XLS PE How To Tutorials Tips & Tricks
 
BP304 - Blog It Up, Baby! Extending the new IBM Lotus Domino Blog Template
BP304 - Blog It Up, Baby! Extending the new IBM Lotus Domino Blog TemplateBP304 - Blog It Up, Baby! Extending the new IBM Lotus Domino Blog Template
BP304 - Blog It Up, Baby! Extending the new IBM Lotus Domino Blog Template
 
Web programming
Web programmingWeb programming
Web programming
 
Visual Programming
Visual ProgrammingVisual Programming
Visual Programming
 
Mfc programming tutorial automation step by-step
Mfc programming tutorial automation step by-stepMfc programming tutorial automation step by-step
Mfc programming tutorial automation step by-step
 
Access tips access and sql part 4 building select queries on-the-fly
Access tips  access and sql part 4  building select queries on-the-flyAccess tips  access and sql part 4  building select queries on-the-fly
Access tips access and sql part 4 building select queries on-the-fly
 
Build an App with JavaScript and jQuery - LA - July 18
Build an App with JavaScript and jQuery - LA - July 18Build an App with JavaScript and jQuery - LA - July 18
Build an App with JavaScript and jQuery - LA - July 18
 
In press checking with crossref API
In press checking with crossref APIIn press checking with crossref API
In press checking with crossref API
 
770_0629.pdf dump for oracle cloud interface
770_0629.pdf dump for oracle cloud interface770_0629.pdf dump for oracle cloud interface
770_0629.pdf dump for oracle cloud interface
 
Autocad excel vba
Autocad excel vbaAutocad excel vba
Autocad excel vba
 
VBA Tips
VBA TipsVBA Tips
VBA Tips
 
Part 1; CSS and placing images on the page: The following files are located i...
Part 1; CSS and placing images on the page: The following files are located i...Part 1; CSS and placing images on the page: The following files are located i...
Part 1; CSS and placing images on the page: The following files are located i...
 
SYSTEMS DESIGN / CAPSTONE PROJECT
SYSTEMS DESIGN / CAPSTONE PROJECTSYSTEMS DESIGN / CAPSTONE PROJECT
SYSTEMS DESIGN / CAPSTONE PROJECT
 
WritingSamplesCombined
WritingSamplesCombinedWritingSamplesCombined
WritingSamplesCombined
 
M02 un10 p01
M02 un10 p01M02 un10 p01
M02 un10 p01
 
Lab #9 and 10 Web Server ProgrammingCreate a New Folder I s.docx
Lab #9 and 10 Web Server ProgrammingCreate a New Folder  I s.docxLab #9 and 10 Web Server ProgrammingCreate a New Folder  I s.docx
Lab #9 and 10 Web Server ProgrammingCreate a New Folder I s.docx
 
Less07 2 e_testermodule_6
Less07 2 e_testermodule_6Less07 2 e_testermodule_6
Less07 2 e_testermodule_6
 
Template builder for word tutorial
Template builder for word tutorialTemplate builder for word tutorial
Template builder for word tutorial
 

Mais de alertshoeshingkimand

Share your results from taking Organizational Culture Assessment Ins.pdf
Share your results from taking Organizational Culture Assessment Ins.pdfShare your results from taking Organizational Culture Assessment Ins.pdf
Share your results from taking Organizational Culture Assessment Ins.pdf
alertshoeshingkimand
 
Sessizlik, Damgalanma ve Akl Hastal Madeline Halpert ve Eva Rosenfel.pdf
Sessizlik, Damgalanma ve Akl Hastal Madeline Halpert ve Eva Rosenfel.pdfSessizlik, Damgalanma ve Akl Hastal Madeline Halpert ve Eva Rosenfel.pdf
Sessizlik, Damgalanma ve Akl Hastal Madeline Halpert ve Eva Rosenfel.pdf
alertshoeshingkimand
 
SENDER It is a helmet that contains a sensor for gases, vital s.pdf
SENDER  It is a helmet that contains a sensor for gases, vital s.pdfSENDER  It is a helmet that contains a sensor for gases, vital s.pdf
SENDER It is a helmet that contains a sensor for gases, vital s.pdf
alertshoeshingkimand
 
September 21, 2022Russia�s war against Ukraine is causing tremendo.pdf
September 21, 2022Russia�s war against Ukraine is causing tremendo.pdfSeptember 21, 2022Russia�s war against Ukraine is causing tremendo.pdf
September 21, 2022Russia�s war against Ukraine is causing tremendo.pdf
alertshoeshingkimand
 

Mais de alertshoeshingkimand (20)

Ships provide maritime transport services but emit polluting gases s.pdf
Ships provide maritime transport services but emit polluting gases s.pdfShips provide maritime transport services but emit polluting gases s.pdf
Ships provide maritime transport services but emit polluting gases s.pdf
 
Short essayThe next step in effective argumentation is the ability.pdf
Short essayThe next step in effective argumentation is the ability.pdfShort essayThe next step in effective argumentation is the ability.pdf
Short essayThe next step in effective argumentation is the ability.pdf
 
Share your results from taking Organizational Culture Assessment Ins.pdf
Share your results from taking Organizational Culture Assessment Ins.pdfShare your results from taking Organizational Culture Assessment Ins.pdf
Share your results from taking Organizational Culture Assessment Ins.pdf
 
Seth named his wife, Monique, who is age 57, as the sole beneficiary.pdf
Seth named his wife, Monique, who is age 57, as the sole beneficiary.pdfSeth named his wife, Monique, who is age 57, as the sole beneficiary.pdf
Seth named his wife, Monique, who is age 57, as the sole beneficiary.pdf
 
se�or. y se�ora Una vez que ambos tienen 62 a�os, presentan una decl.pdf
se�or. y se�ora Una vez que ambos tienen 62 a�os, presentan una decl.pdfse�or. y se�ora Una vez que ambos tienen 62 a�os, presentan una decl.pdf
se�or. y se�ora Una vez que ambos tienen 62 a�os, presentan una decl.pdf
 
Sessizlik, Damgalanma ve Akl Hastal Madeline Halpert ve Eva Rosenfel.pdf
Sessizlik, Damgalanma ve Akl Hastal Madeline Halpert ve Eva Rosenfel.pdfSessizlik, Damgalanma ve Akl Hastal Madeline Halpert ve Eva Rosenfel.pdf
Sessizlik, Damgalanma ve Akl Hastal Madeline Halpert ve Eva Rosenfel.pdf
 
Set residents strategy to always defect and invaders strategy to t.pdf
Set residents strategy to always defect and invaders strategy to t.pdfSet residents strategy to always defect and invaders strategy to t.pdf
Set residents strategy to always defect and invaders strategy to t.pdf
 
SENDER It is a helmet that contains a sensor for gases, vital s.pdf
SENDER  It is a helmet that contains a sensor for gases, vital s.pdfSENDER  It is a helmet that contains a sensor for gases, vital s.pdf
SENDER It is a helmet that contains a sensor for gases, vital s.pdf
 
Service Values1. I build strong relationships and create Ritz-Carl.pdf
Service Values1. I build strong relationships and create Ritz-Carl.pdfService Values1. I build strong relationships and create Ritz-Carl.pdf
Service Values1. I build strong relationships and create Ritz-Carl.pdf
 
send SERIALWISE with headings In F2021, the charity trained 19,591.pdf
send SERIALWISE with headings In F2021, the charity trained 19,591.pdfsend SERIALWISE with headings In F2021, the charity trained 19,591.pdf
send SERIALWISE with headings In F2021, the charity trained 19,591.pdf
 
September 21, 2022Russia�s war against Ukraine is causing tremendo.pdf
September 21, 2022Russia�s war against Ukraine is causing tremendo.pdfSeptember 21, 2022Russia�s war against Ukraine is causing tremendo.pdf
September 21, 2022Russia�s war against Ukraine is causing tremendo.pdf
 
Self-awareness involves being aware of different aspects of the self.pdf
Self-awareness involves being aware of different aspects of the self.pdfSelf-awareness involves being aware of different aspects of the self.pdf
Self-awareness involves being aware of different aspects of the self.pdf
 
Select one theory from the following categories Sociological Syste.pdf
Select one theory from the following categories Sociological Syste.pdfSelect one theory from the following categories Sociological Syste.pdf
Select one theory from the following categories Sociological Syste.pdf
 
Select one of the scenarios below and address the following Describ.pdf
Select one of the scenarios below and address the following Describ.pdfSelect one of the scenarios below and address the following Describ.pdf
Select one of the scenarios below and address the following Describ.pdf
 
Select all correct statements related to the contribution of scienti.pdf
Select all correct statements related to the contribution of scienti.pdfSelect all correct statements related to the contribution of scienti.pdf
Select all correct statements related to the contribution of scienti.pdf
 
Seleccione todas las afirmaciones que se aplican al proceso de pre.pdf
Seleccione todas las afirmaciones que se aplican al proceso de pre.pdfSeleccione todas las afirmaciones que se aplican al proceso de pre.pdf
Seleccione todas las afirmaciones que se aplican al proceso de pre.pdf
 
Seleccione un tema de liderazgo relevante y de actualidad de los med.pdf
Seleccione un tema de liderazgo relevante y de actualidad de los med.pdfSeleccione un tema de liderazgo relevante y de actualidad de los med.pdf
Seleccione un tema de liderazgo relevante y de actualidad de los med.pdf
 
Seleccione el orden correcto para los siguientes eventos clave en la.pdf
Seleccione el orden correcto para los siguientes eventos clave en la.pdfSeleccione el orden correcto para los siguientes eventos clave en la.pdf
Seleccione el orden correcto para los siguientes eventos clave en la.pdf
 
Security analysis Perform security analysis on your proposed ransom.pdf
Security analysis Perform security analysis on your proposed ransom.pdfSecurity analysis Perform security analysis on your proposed ransom.pdf
Security analysis Perform security analysis on your proposed ransom.pdf
 
Se realiz� un estudio que muestra que el politetrafluoroetileno (PFO.pdf
Se realiz� un estudio que muestra que el politetrafluoroetileno (PFO.pdfSe realiz� un estudio que muestra que el politetrafluoroetileno (PFO.pdf
Se realiz� un estudio que muestra que el politetrafluoroetileno (PFO.pdf
 

Último

Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
kauryashika82
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
heathfieldcps1
 

Último (20)

Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 

Restrictions You cannot import any Java classes except those listed.pdf

  • 1. Restrictions: You cannot import any Java classes except those listed below. In particular, you cannot use any methods from the Java Array(s) class to copy an array, check for equality, or otherwise manipulate an array. You also may not call the Java System.arraycopy method. You must write the Java code to perform these functions. You will need to use (import): the Java File class. You may use any of the methods that are available in the Java File class in developing your algorithm. In particular, you should need to use the: java.io.File java.io.FileNotFoundException the Java Scanner class the Java wrapper classes if needed. any of the classes that you created in any previous assignment in this course. Specifically, if needed, you can use your ArrayBag, LinkedBag or SinglyLinkedList (from textbook Code Fragments) classes if needed. any Java exception class. The java.io classes needed to write to a text file: java.io.FileOutputStream java.io.PrintWriter Be sure to read the entire assignment before you begin. Create a NetBeans project using the convention Lab106-LastFM and ensure it is saved to a location like desktop or your flash drive. In the project you will do the following: The Problem: An inventory of paper and electronic U.S. Savings bonds needs to be maintained. The U.S. Treasury provides a webpage for maintaining an inventory of Paper Savings Bonds at: Calculate the Value of Your Paper Savings Bond(s) (treasurydirect.gov) While this webpage is titled for paper savings bonds it also works for electronic savings bonds. Once you enter your bonds in on the Treasury webpage you need to use the Mozilla Firefox web browser to save the inventory. Microsoft Edge and Google Chrome browsers are not compatible. After saving the webpage it can be reloaded in a browser to add more bonds and/or update the values. The upsides of the Treasury webpage are: It shows the current value of each bond. It shows the current interested rate for each bond. The downsides of the Treasury webpage are: It does not calculate the actual return on each bond.
  • 2. It does not allow for a user defined memo/description field for each bond. An Excel spreadsheet is currently being used maintain an inventory of the bonds. The upsides of the Excel spreadsheet are: It calculates the actual return for each bond. It has a memo/description field for each bond. The downsides of the Excel spreadsheet are: The current value of each bond must be manually entered each month. The Task: Your task will be to write a Java program that does the following: Convert the Excel spreadsheet information into an HTML file that the Treasury website can read and understand. You will actually be converting a comma separated value (CSV) file that is generated by Excel into an HTML file that the Treasury website can read and understand. For this assignment you are only going to go one way: You are going to covert a CSV file into an HTML file. You ARE NOT required to convert the HTML file into a CSV file. It will not be necessary for you to create a web page. You will just need to modify and existing web page so that it includes the information about the bonds in the inventory, i.e. you will add the contents of the CSV file to the HTML file. Three examples of the Treasury webpage are included with this assignment: SavingsBonds-0-Bonds-Entered.html The default web page with no bond information SavingsBonds-2-Bonds-Entered.html The web page with information for two bonds entered. SavingsBonds-4-Bonds-Entered.html The web page with information for four bonds entered. Open these files with a browser to see what the Treasury web page looks like. Once loaded you will need to press the Update button to see the fully formatted web page. Fortunately, you do not need to know HTML to complete this assignment. Open the example files with a text editor such as Notepad to look that the HTML code. Find the Hidden Variables section in the HTML code. Determine how bond information is stored in the Hidden Variables section by comparing the three example web pages. Open each of the example web pages using a browser to see what the web pages look like. You will need to press the UPDATE button to see the processed web page. You will need to load the CSV file information into the web page by modifying the Hidden
  • 3. Variables. Here are some example lines from the CSV file: 1/23/2008,200,R000000010I,Memo10 1/4/2022,100,IAAF1,Memo11 11/3/2022,5000,V0000000012I,Memo12 11/25/2022,100,IAAGM,Memo13 The first field is the purchase date in MM/DD/YYYY format. The second field is the denomination of the bond: The issue price for series I bonds is the same as the denomination. The issue price for series EE bonds is the half the denomination. The third field is the serial number: For paper bonds serial numbers look like V0000000012I where: The leading letter indicates the denomination of the bond. The trailing letter(s) indicates the series of the bond. You only need to support series E, EE, and I. For electronic bonds serial numbers look like IAAF1 where: the first letter indicates the bond series. The fourth field is a memo field that can be ignored. Note that there are a number of Hidden Variables that are not included in the CSV file. Your code can just enter values of zero or blank for those fields. HINT: In your text editor try adding a new bond to one of the example HTML files by adding additional values to the Hidden Variables. Then save the HTML file and open the HTML in a browser. Press the UPDATE button to see your updated inventory. If you get an error, then you did not correctly add the additional values to the Hidden Variables. Repeat this process until you determine how to correctly add a new bond. Now write the Java code that generates an HTML file that includes the bond information for each bond in the CSV file. The input for your program is the CSV file. The output for your program is the HTML file.