2011-12-05 18:24:45 UTC
I cant seem to get the right commands into the program..
Program Description: A table of contents in many books use periods to align text with the page numbers. These are called “dot leaders”. You are to write a program that accepts from the user a chapter title and a page number. Then you will output these to a line that contains exactly fifty characters. The space between the title and the page number will be filled with periods (“.”).
Statements Required: input, output, loop control, strings, and string methods
Sample Output:
Enter the title: An Introduction to Java
Enter the page number: 5
An Introduction to Java……………………….5
Enter the title: Simple Data Types
Enter the page number: 27
Simple Data Types………………………..…27
THANKS IN ADVANCE