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. Output name in quotes
6. Requirements
Write a C program to do the following.
Output your name on one line and your name in quotes on the next line.
Use your name, not my name.
Insure you use the same indentation as in the example.
Use tabs to indent code, not spaces.
Note: There are many variations of how the output could be done.
If the requirements are unclear in any way, use any provided input and output to resolve the discrepancy.
Here is a C program to output some text, without and with quotes.
Here is the C code.
Here is the output of the C code.
8. Starter program
You are provided with the following starter program in file myname.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.
9. 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
Here is the output of the C code.
10. 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)
*/
11. Scoring rubric
CS 101 - L1 : Lab#1: Output name in quotes
Your grade: _ / 20
[LATE] Late or redo penalty: _ / -20
[SUBMIT] Not submitted properly: _ / -20
[RUN] Does not compile, run-time crash, etc.: _ / -20
[ETHICS] Ethical issues: _ / -20
[HEADER] Header comments not done as required: _ / -10
[STYLE] Inconsistant style or indentation: _ / -10
[CODE] Code guidelines ignored: _ / -20
[XCODE] Code used not yet covered: _ / -10
[REMOVED] Triple slash comments removed: _ / -10
[ADDED] Code added outside of marked areas: _ / -10
[OUTPUT] Functional requirements met: _ / 20
[CREDIT] Extra credit: _ / +4
Comments: