08.21.17 - 12.17.17
Introduction to Computer Programming
Tuesday Thursday
02:00 PM - 03:20 PM
Pseudocode contains all of the needed logical steps | 25 pts |
Pseudocode is in proper form and is readable | 5 pts |
Pseudocode is unambiguous | 10 pts |
Total | 40 pts |
For this lab you will need to describe in detail all of the steps that are needed to display a string (a group of characters) centered within an area. Think of centering the title at the top of a document, for example.
Assume that for this task you only know the number of characters in the string and the width in characters of the display area. Again, imagine you know the number of letters in the title and how wide the document is in spaces.
Also assume that the only instructions you can give are those for basic arithmetic and inputs from a keyboard, there is no magic "center alignment" button or feature.
You will need to express the logic of this program in pseudocode.