SlideShare a Scribd company logo
CenTable - Requirements Specification CenTable is a system for creating tabular reports from
county-level U.S.Census Data it is appropriate for batch processing (both off Ine and in support
of an on-line system). The inputs to the system are the ASCII county data fle (land associated
data dictionary) and an ASCI tle that describes the tabular report to be created. The output is a
table in either HTMI or AScll text format 1. Command-Line Parameters 1.1. The first command
line parameter must be the mame of the county level data file to use. 1.2 The second parameter
must be either-h (to indicate that the output should be in HTMor (to indicate that the output
should be in ASCl et) Location of "Files" .1. All census data fles must be in the same directory
as the executable 2.2 The report desoription fle must be read from standard in. 2· 3 Report
Description File 1. The format of the report deicription file has not been specified 32. Contents
of the Report Description File 3.2.1it must include a list of all of the counbies to include in the
report 22.It musz contain the field identifiers for the columns so inclade in the report [in ender.
3.23Jt mast contain #tte for each field in the report. 3.2.3.1 It must contain a format descriptor for
the title that idudt the horizonal positioning of the titie (left, center, or right) and the appropriane
way to handle ttles that are too long truncate, break word boundareia 324Jt must contain a format
descrigtor for each field in the report that includes the width of the field, the number of digts to
the right of the decimal place (for floating-point fields the padding character to use, and an
indication of whether or not the sign should always 12 5Jt must contain a specifier for each field
Chatt indicates what information (total, mean nothingl should be diplayed in the last now of the
output 1 42 Output must When the containing the required information 42.1. The tedt must be
displayed in a xed-width font 4.22. The output need not handle page breaks ie, the repert can
have an arbitrary mumber of be sent to standard out witch is used, the output must be an
appropriately formatted HTML table rows when the fiag t.ned, the output munt be an
approprately formatted ASCII tnt file ethat wil look coreect when displayed in a feed with fo
4.3.1 The output need not handle page breaks e, the report can have an arbibrary number of rows.
S1 The report desoription fle may be generated by an untrusted source. 52 Command-line
parameters may be provided by an untrusted source 5.3. CenTable must only be able to read 0m
the dinectory is installed in and standard in, Centable must only be able to write to standa out.
Solution
Okay So basically what you have to create a C Program for an application. This should be called
CenTable.
Input:
1. This system will take as input a text file which contains information about countries and their
census. It must be containing a lot of fields. You need to once take a look at the file to
understand what format it is in and create your program accordingly.
2. The next input is a commnd line argument which would be given while running the program.
This would be the name of the new file your program will create as an output.
3. Another input will be again a command line argument that is either -h or -t where -h indicates
that your program will generate a HTML file and -t indicates that your program generates a text
file.
Processing:
What you have to do is,
1. Read the input file. Have different array variables that will strore different fields provided in
the file in the same order.
2. Have two functions - one for HTML file creation and one for text file creation.
3. In HTML file creation function, have your standard out to first add the header, body and table
heading tags. Then have a loop to add each and every row of the table with data. Also provide
the attributes for table (aligment). Dont forget to name this file with the extension .html
4. In text file creation function, use standard output to do the same job as above but the spacing
and formatting must be hardcoded. i.e you have to provide dashes(-) to provide table borders.
Name this file with .txt extension.
Output:
Either a html file or a txt file that will contain tables regarding census information for all the
countries.

More Related Content

PPTX
CADA
PPT
Quantum data processing
DOCX
Bitstuffing
PPS
C programming session 08
PDF
DOCX
CS 23001 Computer Science II Data Structures & AbstractionPro.docx
PDF
Managing I/O in c++
PPTX
4 Introduction to C.pptxSSSSSSSSSSSSSSSS
CADA
Quantum data processing
Bitstuffing
C programming session 08
CS 23001 Computer Science II Data Structures & AbstractionPro.docx
Managing I/O in c++
4 Introduction to C.pptxSSSSSSSSSSSSSSSS

Similar to CenTable - Requirements Specification CenTable is a system for creati.pdf (20)

PPTX
Lecture 1
PDF
Lecture 2.1 - Phase of a Commmmpiler.pdf
PPTX
Fpt connector
PDF
demo.pdf
PPTX
Introduction to C Unit 1
PPT
Assemblers: Ch03
PPT
Day Of Dot Net Ann Arbor 2007
DOCX
PDF
Project 2 Assigned Tuesday February 21tst2023 Due Tuesd.pdf
PDF
SessionFive_ImportingandExportingData
PPTX
C Theory
DOCX
Dineshmaterial1 091225091539-phpapp02
ODT
(3) cpp abstractions more_on_user_defined_types_exercises
PDF
It’s sometimes useful to make a little language for a simple problem.pdf
PPTX
Functions in C++
PDF
Maxbox starter19
PPTX
programming language in c&c++
PPTX
c_pro_introduction.pptx
PPTX
IIM.Com-FIT-Unit2(14.9.2021 TO 30.9.2021).pptx
PPS
C programming session 01
Lecture 1
Lecture 2.1 - Phase of a Commmmpiler.pdf
Fpt connector
demo.pdf
Introduction to C Unit 1
Assemblers: Ch03
Day Of Dot Net Ann Arbor 2007
Project 2 Assigned Tuesday February 21tst2023 Due Tuesd.pdf
SessionFive_ImportingandExportingData
C Theory
Dineshmaterial1 091225091539-phpapp02
(3) cpp abstractions more_on_user_defined_types_exercises
It’s sometimes useful to make a little language for a simple problem.pdf
Functions in C++
Maxbox starter19
programming language in c&c++
c_pro_introduction.pptx
IIM.Com-FIT-Unit2(14.9.2021 TO 30.9.2021).pptx
C programming session 01
Ad

More from omarionmatzmcwill497 (20)

PDF
Are silenced genes associated with high or low levels of DNA methyla.pdf
PDF
A south facing window is 2.1 m high and 4.2 m long. A horizontal diff.pdf
PDF
Write an extended summary (They say”) of Sheryl Sandbergs Lean.pdf
PDF
Write a program that will prompt a user to input their name(first .pdf
PDF
With a blow count of 14 the density of the soil is Select one 15e bit.pdf
PDF
Which process(es) can move solutes against concentration gradients (.pdf
PDF
What role do piRNAs play Serve as atemplate for transposon silencin.pdf
PDF
what was the PRIMARY cause of the current Greece Crisis Excessive g.pdf
PDF
Three LR circuits are made with the same resistor but different induc.pdf
PDF
There are several things fundamentally wrong in this illustration. Po.pdf
PDF
The poor are available to do the unpleasant jobs that no one .pdf
PDF
Suppose that 14 of people are left handed. If you pick two people a.pdf
PDF
Please help me with these General Biology 1 (Bio 111) questions. You.pdf
PDF
NEED HELP ON C HOMEWORKIntroduction Programmers for a Better Tomo.pdf
PDF
Problem 14. Your probability class has 250 undergraduate students and.pdf
PDF
Simplify each expression. Write all ansers without using negative ex.pdf
PDF
Our understanding of genetic inheritance and the function of DNA i.pdf
PDF
Please Explain. Compute the worst case time complexity of the follow.pdf
PDF
3. Variance of exponential and uniform distributions(a) Compute Va.pdf
PDF
Prove using a common notion that if P and Q are any points on a circ.pdf
Are silenced genes associated with high or low levels of DNA methyla.pdf
A south facing window is 2.1 m high and 4.2 m long. A horizontal diff.pdf
Write an extended summary (They say”) of Sheryl Sandbergs Lean.pdf
Write a program that will prompt a user to input their name(first .pdf
With a blow count of 14 the density of the soil is Select one 15e bit.pdf
Which process(es) can move solutes against concentration gradients (.pdf
What role do piRNAs play Serve as atemplate for transposon silencin.pdf
what was the PRIMARY cause of the current Greece Crisis Excessive g.pdf
Three LR circuits are made with the same resistor but different induc.pdf
There are several things fundamentally wrong in this illustration. Po.pdf
The poor are available to do the unpleasant jobs that no one .pdf
Suppose that 14 of people are left handed. If you pick two people a.pdf
Please help me with these General Biology 1 (Bio 111) questions. You.pdf
NEED HELP ON C HOMEWORKIntroduction Programmers for a Better Tomo.pdf
Problem 14. Your probability class has 250 undergraduate students and.pdf
Simplify each expression. Write all ansers without using negative ex.pdf
Our understanding of genetic inheritance and the function of DNA i.pdf
Please Explain. Compute the worst case time complexity of the follow.pdf
3. Variance of exponential and uniform distributions(a) Compute Va.pdf
Prove using a common notion that if P and Q are any points on a circ.pdf
Ad

Recently uploaded (20)

PPTX
Unit 4 Computer Architecture Multicore Processor.pptx
PPTX
202450812 BayCHI UCSC-SV 20250812 v17.pptx
PPTX
ELIAS-SEZIURE AND EPilepsy semmioan session.pptx
PDF
IGGE1 Understanding the Self1234567891011
DOCX
Cambridge-Practice-Tests-for-IELTS-12.docx
PDF
David L Page_DCI Research Study Journey_how Methodology can inform one's prac...
PDF
International_Financial_Reporting_Standa.pdf
PPTX
Introduction to pro and eukaryotes and differences.pptx
PDF
MBA _Common_ 2nd year Syllabus _2021-22_.pdf
PPTX
TNA_Presentation-1-Final(SAVE)) (1).pptx
PDF
Trump Administration's workforce development strategy
PDF
medical_surgical_nursing_10th_edition_ignatavicius_TEST_BANK_pdf.pdf
PDF
Weekly quiz Compilation Jan -July 25.pdf
PPTX
Share_Module_2_Power_conflict_and_negotiation.pptx
PPTX
CHAPTER IV. MAN AND BIOSPHERE AND ITS TOTALITY.pptx
PPTX
20th Century Theater, Methods, History.pptx
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PDF
Τίμαιος είναι φιλοσοφικός διάλογος του Πλάτωνα
PDF
advance database management system book.pdf
PDF
Complications of Minimal Access-Surgery.pdf
Unit 4 Computer Architecture Multicore Processor.pptx
202450812 BayCHI UCSC-SV 20250812 v17.pptx
ELIAS-SEZIURE AND EPilepsy semmioan session.pptx
IGGE1 Understanding the Self1234567891011
Cambridge-Practice-Tests-for-IELTS-12.docx
David L Page_DCI Research Study Journey_how Methodology can inform one's prac...
International_Financial_Reporting_Standa.pdf
Introduction to pro and eukaryotes and differences.pptx
MBA _Common_ 2nd year Syllabus _2021-22_.pdf
TNA_Presentation-1-Final(SAVE)) (1).pptx
Trump Administration's workforce development strategy
medical_surgical_nursing_10th_edition_ignatavicius_TEST_BANK_pdf.pdf
Weekly quiz Compilation Jan -July 25.pdf
Share_Module_2_Power_conflict_and_negotiation.pptx
CHAPTER IV. MAN AND BIOSPHERE AND ITS TOTALITY.pptx
20th Century Theater, Methods, History.pptx
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
Τίμαιος είναι φιλοσοφικός διάλογος του Πλάτωνα
advance database management system book.pdf
Complications of Minimal Access-Surgery.pdf

CenTable - Requirements Specification CenTable is a system for creati.pdf

  • 1. CenTable - Requirements Specification CenTable is a system for creating tabular reports from county-level U.S.Census Data it is appropriate for batch processing (both off Ine and in support of an on-line system). The inputs to the system are the ASCII county data fle (land associated data dictionary) and an ASCI tle that describes the tabular report to be created. The output is a table in either HTMI or AScll text format 1. Command-Line Parameters 1.1. The first command line parameter must be the mame of the county level data file to use. 1.2 The second parameter must be either-h (to indicate that the output should be in HTMor (to indicate that the output should be in ASCl et) Location of "Files" .1. All census data fles must be in the same directory as the executable 2.2 The report desoription fle must be read from standard in. 2· 3 Report Description File 1. The format of the report deicription file has not been specified 32. Contents of the Report Description File 3.2.1it must include a list of all of the counbies to include in the report 22.It musz contain the field identifiers for the columns so inclade in the report [in ender. 3.23Jt mast contain #tte for each field in the report. 3.2.3.1 It must contain a format descriptor for the title that idudt the horizonal positioning of the titie (left, center, or right) and the appropriane way to handle ttles that are too long truncate, break word boundareia 324Jt must contain a format descrigtor for each field in the report that includes the width of the field, the number of digts to the right of the decimal place (for floating-point fields the padding character to use, and an indication of whether or not the sign should always 12 5Jt must contain a specifier for each field Chatt indicates what information (total, mean nothingl should be diplayed in the last now of the output 1 42 Output must When the containing the required information 42.1. The tedt must be displayed in a xed-width font 4.22. The output need not handle page breaks ie, the repert can have an arbitrary mumber of be sent to standard out witch is used, the output must be an appropriately formatted HTML table rows when the fiag t.ned, the output munt be an approprately formatted ASCII tnt file ethat wil look coreect when displayed in a feed with fo 4.3.1 The output need not handle page breaks e, the report can have an arbibrary number of rows. S1 The report desoription fle may be generated by an untrusted source. 52 Command-line parameters may be provided by an untrusted source 5.3. CenTable must only be able to read 0m the dinectory is installed in and standard in, Centable must only be able to write to standa out. Solution Okay So basically what you have to create a C Program for an application. This should be called CenTable. Input: 1. This system will take as input a text file which contains information about countries and their census. It must be containing a lot of fields. You need to once take a look at the file to
  • 2. understand what format it is in and create your program accordingly. 2. The next input is a commnd line argument which would be given while running the program. This would be the name of the new file your program will create as an output. 3. Another input will be again a command line argument that is either -h or -t where -h indicates that your program will generate a HTML file and -t indicates that your program generates a text file. Processing: What you have to do is, 1. Read the input file. Have different array variables that will strore different fields provided in the file in the same order. 2. Have two functions - one for HTML file creation and one for text file creation. 3. In HTML file creation function, have your standard out to first add the header, body and table heading tags. Then have a loop to add each and every row of the table with data. Also provide the attributes for table (aligment). Dont forget to name this file with the extension .html 4. In text file creation function, use standard output to do the same job as above but the spacing and formatting must be hardcoded. i.e you have to provide dashes(-) to provide table borders. Name this file with .txt extension. Output: Either a html file or a txt file that will contain tables regarding census information for all the countries.