Write a C++ program (single program) using the given guidelines. (a Include all the necessary headers for your program along with the following headers #include #Include #Include Create a macro with symbol MY_ID and assign your student ID to it. (c Create a macro with symbol MY_NAME and assign your Full Name to it. Create a parameterized macro to convert the given "inch" value to its equivalent “cm" using symbol INCH and parameter X to (e calculate X*2.54. The C++ program will read announcement.txt and data_file.csv and generate an output file with file name "Output_File.html". (f If the text file does not open / not found then display "Error Reading Text File ..!" on the console screen, otherwise create the output file. The first line of your output file must contain your ID (using macro MY_ID) to be displayed with html element. (h The second line of your output file must contain your Name (using macro MY_NAME) to be displayed with html element. Read the announcement.txt and output only 1* and 5th lines (no other lines of this file must be included) using html element. (each line must be used in separate .) If the CSV file does not open / not found then display "Error Reading CSV File" on the console screen, otherwise create the output file. Read the data_file.csv and output all lines into the html table under appropriate columns using html element set. (Each line must be used in separate row and multiple columns <>..s/>) ...

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

c++

Write a C++ program (single program) using the given guidelines.
Include all the necessary headers for your program along with the following headers (b
#include<sstream>
#Include<string>
#Include<cmath>
Create a macro with symbol MY_ID and assign your student ID to it.
(c
Create a macro with symbol MY_NAME and assign your Full Name to it. (d
Create a parameterized macro to convert the given "inch" value to its equivalent "cm" using symbol INCH and parameter X to
(e
calculate X*2.54.
The C++ program will read announcement.txt and data_file.csv and generate an output file with file name “Output_File.html". (f
If the text file does not open / not found then display "Error Reading Text File..." on the console screen, otherwise create the
output file.
The first line of your output file must contain your ID (using macro MY_ID) to be displayed with <h1> html element.
(h
The second line of your output file must contain your Name (using macro MY_NAME) to be displayed with <h3> html element.
Read the announcement.txt and output only 1* and 5th lines (no other lines of this file must be included) using <p> html
element. (each line must be used in separate <p> .</p>)
If the CSV file does not open / not found then display "Error Reading CSV File." on the console screen, otherwise create the
(k
output file.
Read the data_file.csv and output all lines into the html table under appropriate columns using <table> html element set. (Each
line must be used in separate row and multiple columns <t><td></td><t>.</td>.S/>)
Transcribed Image Text:Write a C++ program (single program) using the given guidelines. Include all the necessary headers for your program along with the following headers (b #include<sstream> #Include<string> #Include<cmath> Create a macro with symbol MY_ID and assign your student ID to it. (c Create a macro with symbol MY_NAME and assign your Full Name to it. (d Create a parameterized macro to convert the given "inch" value to its equivalent "cm" using symbol INCH and parameter X to (e calculate X*2.54. The C++ program will read announcement.txt and data_file.csv and generate an output file with file name “Output_File.html". (f If the text file does not open / not found then display "Error Reading Text File..." on the console screen, otherwise create the output file. The first line of your output file must contain your ID (using macro MY_ID) to be displayed with <h1> html element. (h The second line of your output file must contain your Name (using macro MY_NAME) to be displayed with <h3> html element. Read the announcement.txt and output only 1* and 5th lines (no other lines of this file must be included) using <p> html element. (each line must be used in separate <p> .</p>) If the CSV file does not open / not found then display "Error Reading CSV File." on the console screen, otherwise create the (k output file. Read the data_file.csv and output all lines into the html table under appropriate columns using <table> html element set. (Each line must be used in separate row and multiple columns <t><td></td><t>.</td>.S/>)
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY