Question
I'm a C++ beginner, and I'm not sure how to do this, please help! Project C: Personal Web Page Generator Write a program that creates
I'm a C++ beginner, and I'm not sure how to do this, please help!
Project C: Personal Web Page Generator Write a program that creates simple web
pages using data from an input file. The input file contains an unknown number of lines,
two lines for each person for which this program generates a web page. The name of the
person is found on the first line, followed by a short description on the next line. Here is
an example:
Julie Taylor
I am a computer science major, a member of the jazz club, and I hope to work as a
mobile app development after I graduate.
When you copy this example to a text file, there will be only two lines: one for the name,
and a much longer line for the description. In the input file add two more lines for your
own web page. Then interview three of your classmates or friends and add their names
and description to the input file. Now the input file looks like this:
Julie Taylor
I am a computer science major, a member of the jazz club, and I hope to work as a
mobile app development after I graduate.
Julie Taylor
I am a computer science major, a member of the jazz club, and I hope to work as a
mobile app development after I graduate.
Julie Taylor
I am a computer science major, a member of the jazz club, and I hope to work as a
mobile app development after I graduate.
Julie Taylor
I am a computer science major, a member of the jazz club, and I hope to work as a
mobile app development after I graduate.
Julie TaylorI am a computer science major, a member of the jazz club, and I hope to work as a
mobile app development after I graduate.
Your program displays a welcome message, opens the input file (with validation
see 5B), reads two strings from the input file: name and description, opens an
output file with the same name as in name and extension html, such as:
Julie Taylor.html,
and writes to the output file the following HTML content:
Julie Taylor
I am a computer science major, a member of the jazz club, and
Finally closes the output file. Keep track of the number of web pages. When done reading
from file, close the input file and display the number of web pages that have been created
along with an end of the program message. Here is a sample output:
Welcome to the
Personal Web Page Generator
Start creating a Web Page for Julie Taylor
. . .
Done creating a Web Page for Julie Taylor
Julie Taylor's web page has been saved as:
Julie Taylor.html
Start creating a Web Page for John Smith
. . .
Done creating a Web Page for John Smith
John Smith's web page has been saved as:
John Smith.html
~***~ 2 web pages have been created. ~***~
Thank you for using our
Personal Web Page Generator
Program ended with exit code: 0
Next PageYour programs output should contain the same information either using the same format
as shown above or create a different format (make sure it is easy to read)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started