Adventures in Programming

Site Stats
APCS schedule | APCS Login | APCS Forms | APCS Resources | APCS Archive | APCS Stuff
Java schedule | Java Login | Java Forms | Java Resources | Java Archive | Java Stuff
Adven schedule | Adven Login | Adven Forms | Adven Resources | Adven Archive | Adven Stuff
Stats schedule | Stats Login | Stats Forms | Stats Resources | Stats Archive | Stats Stuff

Output statements using tabs ( \t )

\t inserts a tab in the output.

Modify your schedule program to output your schedule in this format.

The cout statements should use tabs instead of blank spaces to get everything to line up. Sample output :

 

 

These two lines
cout <<"Period\tClass\tTeacher" << endl;
cout <<"Period 1\tStudy Hall\tSmith"<< endl;

Produces this output

Notice the columns do NOT line up. Add \t (tabs) where you need to in order to get all the columns to line up. Changing the first two lines to this will do that:
cout <<"Period\t\tClass\t\tTeacher" << endl;
cout <<"Period 1\tStudy Hall\tSmith"<< endl;

Write a program to output the following output using tabs to line up columns

 

 

 

Br Ca Ho LaN
Law Mac McH McL
Po Sm St Va
Not Listed

 


Last Name :

Email :
If you don't have an email address, use student@brentwoodhigh.com

Select one of the following that describes when and why you are filling out this form:
This assignment is in on time.
This assignment is in on time, being resubmitted due to a failed submission (I have a copy of the original submission).
This assignment is a corrected submission for half the missed credit.
This assignment is one day late and will lose 15%.
This assignment is more than one day late (half credit at best).
This assignment is late because of an EXCUSED absence.
This assignment is being resubmitted at the request of the teacher.


Updated: Wednesday, January 13, 2010 11:38 AM

Submit the source code with IDOC and sample output.

 

Updated: Wednesday, January 13, 2010 11:38 AM

 

 

 

About Us | Site Map | Contact Us | Search | ©2005 brentwoodhigh.com