Cory Stevens Opus
An Experience
My name is Cory Stevens and I am majoring in computer science, which explains why I am here. I have always been drawn to the use of computers. When my family first got a computer I was ecstatic even tho all I had was a dial up connection and no idea what I was doing. As the years went on I progressively got more of an idea as to what was doing. When I entered the 9th grade I entered computer programing classes in Java and from then on I have always loved programming. My main purpose is to finish college with a computer science major and move to a big city that has more opportunity in the computer field. I would preferably have a job where I can talk to the customer and the actual programmers explaining what the customer wants and when necessarily help with the programming.
Due to my ignorance I did not know that I required 4 separate entries I apologise this wont happen again.
I have been taking classes in not only this class but also Joes discrete structures class. This has caused me to learn a lot about c programming in the past month. The second day of class we had to learn how to recreate string.h due to situations such as these I have learned a lot about strings in c programming and a good amount about arrays. Right now I am dealing with some confusion on the implementation of linklist. I fully understand how they work but I am confused as how to actually include them and manipulate them in my programs. The challenges I face with this course are pretty trivial in retrospect this pas month has been a pretty bad month personally so I was thrown behind in all of my classes. But now that things have settled down I plan on improving myself in all my classes
Array An array is a series of elements of the same type placed in contiguous memory locations that can be individually referenced by adding an index to a unique identifier
C does not have a string type as other modern programming languages. C only has character type so a C string is defined as an array of characters or a pointer to characters. #include <stdio.h> int main() {
A variable is a way of referring to a memory location used in a computer program. This memory location holds values- perhaps numbers or text or more complicated types of data like a payroll record. Pointer A pointer is a special kind of variable in C and C++ that holds the address of another variable.
I/O is an abbreviation of Input / Output and refers to the transfer of data to or from an application. There are three standard libraries for I/O in C (STDIO, STDOUT, STDERR)
The header file is used to access the standard library of functions and personalized functions that you or other programmers have created.
The same as a regular array with the exception that instead of storing one type of variable multiple variables are stored
The C library holds full source code from example articles, reader submitted code and any code that is in the public domain
Functions that require you to enter arguments from the command line
Aids in the helping of comparing values and situations where more than two things need to be compared
Scope refers to identifiers, that is types, functions, classes and variables and is that part of the source code where the particular idntifier is visible.
The ability to read, write or execute a file based on what permissions you have
1.What would happen in a program that counted the number of characters in a string if you entered 2 separate string in the same line.
I believe that the program will only grab the characters until the null terminator
The null terminator stops scan f from continuing on in the array
2.What would happen if you were to insert an integer value into a program that expects a string value?
I believe that it will still treat the numbers as a character and treat them as such
The characters where counted as characters instead of numbers meaning that with a few adjustments you could convert this count program into a base 10 number converter
I have gotten confirmation on my project for RPS 101 it seems like the way I have been thinking it will involve quite a lot of selection statements and a bit of repetition in the program. Hopefully it doesn't cause me too much trouble.
I have learned a lot about C programming since last month and im getting used to how C syntax work but some of it is still alitttle hard for me. Because of me working on the rock paper scissors game I have had to go through a lot of syntax that I haven't used before and this made me essentially learn it a bit harder than I would have liked too but besides that it is all good
Working on my project has been very tiresome to an extent just because of the amount of if statements and selection I have to you I have been thinking that because dude to time I may have to reduce the number if selections by a lot. Ether to the RPS 5 or the 20 hopefully I will get my project done relative soon th. It has been hard with work and programing
I have almost finished my RPS program and I shortened it down to a regular rps program but plan on expanding it. I should be done with the full program buy tomorrow. Also i'm trying to finish up my opus but it seems like my computer likes to mess with me and have random network outages
Converting an expression of a given type into another type is known as type-casting. We have already seen some ways to type cast
short a = 10000
int b
b = a
A selection Structure is a way of making decisions based on information you already have in a program. The most known is the if statement
A repetition structure is an easy way to repeat a process in a program without writing it multiple times
There are 4 main stages
1.preprocessing-In this stage all the preprocessor commands (i.e. #include, #define…anything with a hash) are dealt with. The relevant files and macros are pasted into the appropriate places (so you have all the function prototypes you need).
2.Compile At this stage the program is translated into assembly code. The syntax of the C++ code is analyzed and if there are mistakes (missing semicolons, extra brackets, missing function definitions) the compiler will flag an error.
3.Assembler This stage translates the assembly code into machine code and produces object files.
4.Linker This stage attaches any important libraries and builds the final executable.
is an abstract container or environment created to hold a logical grouping of unique identifiers or symbols
There are a few casting operators
dynamic_cast Used for conversion of polymorphic types.
static_cast Used for conversion of nonpolymorphic types.
const_cast Used to remove the const, volatile, and __unaligned attributes.
reinterpret_cast Used for simple reinterpretation of bits.
safe_cast Used to produce verifiable MSIL.
An abstract class is a class that is designed to be specifically used as a base class. An abstract class contains at least one pure virtual function. You declare a pure virtual function by using a pure specifier (= 0) in the declaration of a virtual member function in the class declaration.
Function templates are special functions that can operate with generic types. This allows us to create a function template whose functionality can be adapted to more than one type or class without repeating the entire code for each type.
You overload a function name f by declaring more than one function with the name f in the same scope. The declarations of f must differ from each other by the types and/or the number of arguments in the argument list. When you call an overloaded function named f, the correct function is selected by comparing the argument list of the function call with the parameter list of each of the overloaded candidate functions with the name f. A candidate function is a function that can be called based on the context of the call of the overloaded function name.
The operator keyword declares a function specifying what operator-symbol means when applied to instances of a class. This gives the operator more than one meaning, or “overloads” it. The compiler distinguishes between the different meanings of an operator by examining the types of its operands
Inheritance is a mechanism of reusing and extending existing classes without modifying them, thus producing hierarchical relationships between them.
Through inheritance, a class can be used as more than one type; it can be used as its own type, any base types, or any interface type if it implements interfaces. This is called polymorphism. In C#, every type is polymorphic. Types can be used as their own type or as a Object instance, because any type automatically treats Object as a base type.
What is the question you'd like to pose for experimentation? State it here.
Collect information and resources (such as URLs of web resources), and comment on knowledge obtained that you think will provide useful background information to aid in performing the experiment.
Based on what you've read with respect to your original posed question, what do you think will be the result of your experiment (ie an educated guess based on the facts known). This is done before actually performing the experiment.
State your rationale.
How are you going to test your hypothesis? What is the structure of your experiment?
Perform your experiment, and collect/document the results here.
Based on the data collected:
What can you ascertain based on the experiment performed and data collected? Document your findings here; make a statement as to any discoveries you've made.
What is the question you'd like to pose for experimentation? State it here.
Collect information and resources (such as URLs of web resources), and comment on knowledge obtained that you think will provide useful background information to aid in performing the experiment.
Based on what you've read with respect to your original posed question, what do you think will be the result of your experiment (ie an educated guess based on the facts known). This is done before actually performing the experiment.
State your rationale.
How are you going to test your hypothesis? What is the structure of your experiment?
Perform your experiment, and collect/document the results here.
Based on the data collected:
What can you ascertain based on the experiment performed and data collected? Document your findings here; make a statement as to any discoveries you've made.
If you're doing an experiment instead of a retest, delete this section.
If you've opted to test the experiment of someone else, delete the experiment section and steps above; perform the following steps:
Whose existing experiment are you going to retest? Prove the URL, note the author, and restate their question.
Evaluate their resources and commentary. Answer the following questions:
State their experiment's hypothesis. Answer the following questions:
Follow the steps given to recreate the original experiment. Answer the following questions:
Publish the data you have gained from your performing of the experiment here.
Answer the following:
Answer the following:
This is a sample format for a dated entry. Please substitute the actual date for “Month Day, Year”, and duplicate the level 4 heading to make additional entries.
As an aid, feel free to use the following questions to help you generate content for your entries:
Remember that 4 is just the minimum number of entries. Feel free to have more.
This is a sample format for a dated entry. Please substitute the actual date for “Month Day, Year”, and duplicate the level 4 heading to make additional entries.
As an aid, feel free to use the following questions to help you generate content for your entries:
Remember that 4 is just the minimum number of entries. Feel free to have more.
This is a sample format for a dated entry. Please substitute the actual date for “Month Day, Year”, and duplicate the level 4 heading to make additional entries.
As an aid, feel free to use the following questions to help you generate content for your entries:
Remember that 4 is just the minimum number of entries. Feel free to have more.
This is a sample format for a dated entry. Please substitute the actual date for “Month Day, Year”, and duplicate the level 4 heading to make additional entries.
As an aid, feel free to use the following questions to help you generate content for your entries:
Remember that 4 is just the minimum number of entries. Feel free to have more.
Identification and definition of the chosen keyword.
If you wish to aid your definition with a code sample, you can do so by using a wiki code block, an example follows:
/* * Sample code block */ #include <stdio.h> int main() { return(0); }
Identification and definition of the chosen keyword.
If you want to demonstrate something on the command-line, you can do so as follows:
lab46:~$ cd src lab46:~/src$ gcc -o hello hello.c lab46:~/src$ ./hello Hello, World! lab46:~/src$
Identification and definition of the chosen keyword. Substitute “keyword” with the actual keyword.
If you wish to aid your definition with a code sample, you can do so by using a wiki code block, an example follows:
/* * Sample code block */ #include <stdio.h> int main() { return(0); }
Identification and definition of the chosen keyword. Substitute “keyword” with the actual keyword.
If you want to demonstrate something on the command-line, you can do so as follows:
lab46:~$ cd src lab46:~/src$ gcc -o hello hello.c lab46:~/src$ ./hello Hello, World! lab46:~/src$
Identification and definition of the chosen keyword. Substitute “keyword” with the actual keyword.
If you wish to aid your definition with a code sample, you can do so by using a wiki code block, an example follows:
/* * Sample code block */ #include <stdio.h> int main() { return(0); }
Identification and definition of the chosen keyword. Substitute “keyword” with the actual keyword.
If you want to demonstrate something on the command-line, you can do so as follows:
lab46:~$ cd src lab46:~/src$ gcc -o hello hello.c lab46:~/src$ ./hello Hello, World! lab46:~/src$
Identification and definition of the chosen keyword. Substitute “keyword” with the actual keyword.
If you wish to aid your definition with a code sample, you can do so by using a wiki code block, an example follows:
/* * Sample code block */ #include <stdio.h> int main() { return(0); }
Identification and definition of the chosen keyword. Substitute “keyword” with the actual keyword.
If you want to demonstrate something on the command-line, you can do so as follows:
lab46:~$ cd src lab46:~/src$ gcc -o hello hello.c lab46:~/src$ ./hello Hello, World! lab46:~/src$
Identification and definition of the chosen keyword. Substitute “keyword” with the actual keyword.
If you wish to aid your definition with a code sample, you can do so by using a wiki code block, an example follows:
/* * Sample code block */ #include <stdio.h> int main() { return(0); }
Identification and definition of the chosen keyword. Substitute “keyword” with the actual keyword.
If you want to demonstrate something on the command-line, you can do so as follows:
lab46:~$ cd src lab46:~/src$ gcc -o hello hello.c lab46:~/src$ ./hello Hello, World! lab46:~/src$
Identification and definition of the chosen keyword. Substitute “keyword” with the actual keyword.
If you wish to aid your definition with a code sample, you can do so by using a wiki code block, an example follows:
/* * Sample code block */ #include <stdio.h> int main() { return(0); }
Identification and definition of the chosen keyword. Substitute “keyword” with the actual keyword.
If you want to demonstrate something on the command-line, you can do so as follows:
lab46:~$ cd src lab46:~/src$ gcc -o hello hello.c lab46:~/src$ ./hello Hello, World! lab46:~/src$
State the course objective; define what that objective entails.
State the method you will use for measuring successful academic/intellectual achievement of this objective.
Follow your method and obtain a measurement. Document the results here.
Reflect upon your results of the measurement to ascertain your achievement of the particular course objective.
What is the question you'd like to pose for experimentation? State it here.
Collect information and resources (such as URLs of web resources), and comment on knowledge obtained that you think will provide useful background information to aid in performing the experiment.
Based on what you've read with respect to your original posed question, what do you think will be the result of your experiment (ie an educated guess based on the facts known). This is done before actually performing the experiment.
State your rationale.
How are you going to test your hypothesis? What is the structure of your experiment?
Perform your experiment, and collect/document the results here.
Based on the data collected:
What can you ascertain based on the experiment performed and data collected? Document your findings here; make a statement as to any discoveries you've made.
What is the question you'd like to pose for experimentation? State it here.
Collect information and resources (such as URLs of web resources), and comment on knowledge obtained that you think will provide useful background information to aid in performing the experiment.
Based on what you've read with respect to your original posed question, what do you think will be the result of your experiment (ie an educated guess based on the facts known). This is done before actually performing the experiment.
State your rationale.
How are you going to test your hypothesis? What is the structure of your experiment?
Perform your experiment, and collect/document the results here.
Based on the data collected:
What can you ascertain based on the experiment performed and data collected? Document your findings here; make a statement as to any discoveries you've made.
If you're doing an experiment instead of a retest, delete this section.
If you've opted to test the experiment of someone else, delete the experiment section and steps above; perform the following steps:
Whose existing experiment are you going to retest? Prove the URL, note the author, and restate their question.
Evaluate their resources and commentary. Answer the following questions:
State their experiment's hypothesis. Answer the following questions:
Follow the steps given to recreate the original experiment. Answer the following questions:
Publish the data you have gained from your performing of the experiment here.
Answer the following:
Answer the following: