Function, Loop, and String Exercise: Table of Contents Display

Completed Posted Jun 14, 2014 Paid on delivery
Completed Paid on delivery

Need to submit snapshots of your code for all 5 steps (but not helper steps). This assignment is about using variables and passing parameters. Only the code in main() knows book details like title, chapter number, and page number. All the other functions do not assume any particular title, chapter number, or page number. Those values are passed as inputs to produce the table of contents for any book. The resulting output is shown at the end, below.

In order to use both cout and the string variable type, your cpp file will need lines at the top for both #include <iostream> and #include <string>.

The overall project is to create an app to print the table of contents for a book. Create a main() function with 5 string variables, three of which are called sCh1Name, sCh2Name and sCh3Name and two which are called sSec3_1Name and sSec3_2Name. Use the chapter names: “Introduction”, “Using Variables”, and “Using If Statements”. The sections in the last chapter (chapter 3) are “If” and “Else”. Here is an example:

The final result after step 7 should look like:

Chapter 1: Introduction .................................... 1

Chapter 2: Using Variables ................................ 18

Chapter 3: Using If Statements ............................ 29

Section 1: If ........................................... 30

Section 2: Else ......................................... 37

12345678901234567890123456789012345678901234567890123456789012

C++ Programming

Project ID: #6069289

About the project

3 proposals Remote project Active Jun 14, 2014

Awarded to:

alquarizm

I have been implementing code in Python,C#, Java, C++, C for last 4 year and as this needs good knowledge of algorithm and C++ language, I have good experience in these. I have developed many software in Java,C# and mo More

$30 USD in 2 days
(9 Reviews)
3.7

3 freelancers are bidding on average $30 for this job

vano101

Hello. I am C and C++ expert it looks as easy assignment for me, there is possible to complete it in few hours

$30 USD in 2 days
(1054 Reviews)
7.5
PeinOS

Hello, I have experience in C, C++, OOP, OOD, algorithms and data structure. So, I can do your task.

$30 USD in 3 days
(10 Reviews)
2.5