Got it! This site uses cookies. You consent to this by clicking on "Got it!" or by continuing to use this website.nbsp; Note: This appears on each machine/browser from which this site is accessed.
You are not logged in. Go to Login page. You need to login before you can view more content. (content omitted that requires login)
5. Name in big letters
6. Objectives
Edit text (insert, delete, replace, copy, paste, etc.) using a text editor
Create, edit, save, and run a C program
Follow instructions in the form of specifications
Understand the practical implications of fixed-width fonts and characters with descenders.
Learn list concepts if insert and delete through line changes.
7. Requirements
Write a C program to do the following.
Create a C program that uses output statements to output your name in big characters.
Here are detailed requirements. In computer terms, these are the system specifications. In software engineering terms, these are the functional requirements.
Enclose your name with a box of dots using the period character "." as shown in the example above. The beginning dot for each line should start in the leftmost output column.
Use lowercase and uppercase letters in the manner used in the example. Letters should have a two character thickness. For example, each large character should be made up of similar smaller characters. So, large uppercase characters should consist of smaller uppercase characters and large lowercase characters should consist of smaller lowercase letters. In the example, even the large dot character is made up of smaller dot characters.
Use as many characters in your first and last name as can reasonably fit in an 80 column wide screen.
All of your output should fit on no more than 24 lines.
Do not use any tab characters (in the text literals)
Additional requirements:
Do NOT use the tab character within string/text literals. The tab character is interpreted differently on different systems.
Insure that your text editor is set to use a fixed-width font - where all characters have the same width.
Note that some characters, such as "y", have descenders. To maintain a consistent line height, some lines that appear to have extra height just have no characters with descenders on that line.
If the requirements are unclear in any way, use any provided input and output to resolve the discrepancy.
The following coding examples and/or notes may be of use for this requirement.
Tabs and spaces (added 2020-02-01 but mentioned in class to those students who encountered this issue and brought it to my attention)
Make all necessary assumptions. Make no unnecessary assumptions.
In addition to specific coding examples, you should be familiar with all concepts covered to this point in the course.
For example, the text for "Dr. Robin Snyder" might be as follows.
..........................................................................
. .
. DDDDD RRRRRR bbb ii .
. DD DD RR RR bb .
. DD DD rr rrr RR RR oooo bb iii nnnnn .
. DD DD rrr rr RRRRR oo oo bbbbb ii nn nn .
. DD DD rr rr RR RR oo oo bb bb ii nn nn .
. DD DD rr .. RR RR oo oo bb bb ii nn nn .
. DDDDD rrrr .. RRR RR oooo bb bbb iiii nn nn .
. .
. .
. SSSS ddd .
. SS SS dd .
. SSS nnnnn yy yy dd eeee rr rrr .
. SSS nn nn yy yy ddddd ee ee rrr rr .
. SSS nn nn yy yy dd dd eeeeee rr rr .
. SS SS nn nn yyyyy dd dd ee rr .
. SSSS nn nn yy ddd dd eeee rrrr .
. yyyyy .
. .
..........................................................................
9. Example program
Here is the C code.
Here is the output of the C code.
10. Starter program
You are provided with the following starter program in file bigletters.c.
Do not remove any comment that starts with three slashes.
Here is the C code.
You are to fill in the missing parts of the program according to the work requirements (see above).
In the comments at the top, you are to fill in the author (your name), help received (person and type of help), and pseudo-code parts which are not in the solution (usually provided, but you need to add them). Remove the parentheses too.
11. Possible solution
Begin solution
Here is a possible solution to the above problem. Note: Once a solution is provided, or the day before the next class, further submissions for this work receive no credit.
End solution
12. Pseudo-code
Pseudo-code is a "false" code. It is not really code, but a simplified English explanation that is somewhat similar to code. Pseudo-code is useful for understanding what a program does. For this work, the following can be used as the pseudo-code. Adjust if needed.
Note: Only some essential details are included. Some details, such as input, prompts, input echo, and obviously needed output are omitted.
The best way to copy-paste pseudo-code that includes indented code (e.g., with tabs) is as follows (in the code file) using a multi-line comment.
/*
(pasted pseudo-code here)
*/
13. Scoring rubric
CS 101 - A1 : Asmt#1: Name in big letters
Your grade: _ / 40
[LATE] Late or redo penalty: _ / -40
[SUBMIT] Not submitted properly: _ / -40
[RUN] Does not compile, run-time crash, etc.: _ / -40
[ETHICS] Ethical issues: _ / -40
[HEADER] Header comments not done as required: _ / -20
[STYLE] Inconsistant style or indentation: _ / -20
[CODE] Code guidelines ignored: _ / -40
[XCODE] Code used not yet covered: _ / -20
[REMOVED] Triple slash comments removed: _ / -20
[ADDED] Code added outside of marked areas: _ / -20
[OUTPUT] Functional requirements met: _ / 40
[CREDIT] Extra credit: _ / +8
Comments: