COMP 122 DeVry All Week Discussions
Downloading is very simple, you can download this Course here:
Contact us at:
COMP 122 DeVry All Week Discussions
COMP 122 DeVry Week 1 Discussion 1
From Word Problem to Program Design (graded)
This week we are looking at the process of analyzing a problem written in English, attempting to understand how we might build a program that solves the problem. Let’s begin by looking at the analysis process and discussing what inputs are, what outputs are, and what processing is. What do we look for in a word problem to identify these components? What is an algorithm?
COMP 122 DeVry Week 1 Discussion 2
Using Variables and Arithmetic Expression (graded)
Variables are used in a program for storing values. What sort of properties do all variables have in common? What type of arithmetic operations are supported in C++? What role does the data type of a variable have on the type of information the variable can contain and the type of operations that can be performed on the variable? What is operator precedence and how does it impact expression evaluation?
COMP 122 DeVry Week 2 Discussion 1
Selecting Between Alternatives (graded)
It is common to need to make choices between different alternatives when solving problems. Alternatives can take different forms. For instance, only do action X if condition 1 is true presents an alternative of either doing or not doing action X. A different form of alternative occurs in the case where we need to do action X if condition 2 is true, otherwise do action Y. Here we have a choice between 2 different actions, and we will always do X or Y depending on condition 2. This form can be extended to choosing between 3, 4, or any number of actions where one action is always selected. Lets discuss some real examples where making these types of choices are needed. Identify the alternative actions and the condition that controls the choice.
COMP 122 DeVry Week 2 Discussion 2
Input and Output Operations (graded)
Many programs require the use of an input mechanism to get data into the program and an output mechanism to present results and guidance. When interacting with a user, a program must output instructions to the user and also output results that are formatte
COMP 122 DeVry Week 3 Discussion 1
Recognizing Repetition (graded)
This week’s lecture discusses the different types of repetition situations and how they are controlled. Let’s start out by discussing some simple example problems where you see the need for repetition. Is the repetition in your example count controlled, or would it be controlled by some sort of condition? Which type of loop would you choose for your example and why?
COMP 122 DeVry Week 3 Discussion 2
Controlling When a Loop Completes (graded)
Loops can be tricky and can cause errors in the program containing them. The trick is to get the loop to execute its body the correct number of times. Let’s discuss how to figure out how many times a loop will execute its body. Give an example of a count controlled loop structure, explain how you determine the number of times it will execute its body. How will you determine the number of times a conditional controlled loop with a sample input set executes its body?
COMP 122 DeVry Week 4 Discussion 1
Debugging and Testing a Program (graded)
This week we are examining techniques for debugging and testing a program. Let’s start off the week by discussing how to debug a program that compiles and links correctly, contains both selection and repetition statements, but does not generate correct output results. What techniques would you use to try to determine where the problems are in the program?
COMP 122 DeVry Week 4 Discussion 2
Midterm Review (graded)
The Midterm is this week. The Midterm covers all the material from the first 3 weeks of the course. Look back over the reading materials, homework, and labs from the first 3 weeks. The language summary documents can be a good source of review information about the specifics of C++. Use this thread to ask any questions that you have regarding anything you are uncertain about. If you don’t have a specific question, post some things you have observed about the programming process or about using C++.
COMP 122 DeVry Week 5 Discussion 1
Prob. Decomp. and Recognizing Functions (graded)
Most programming problems are quite large and difficult to fully understand. One approach to dealing with such a problem is to decompose the problem into smaller sub-problems (divide and conquer). Each sub-problem may then be further broken down into even smaller problems (stepwise refinement). Eventually, each remaining problem is small enough to develop a function for. Think about software systems you have used (i.e. word processor, web server, calculator, iPod, etc.) and identify some of the main functions that those systems would need.
COMP 122 DeVry Week 5 Discussion 2
Passing Data Between Functions (graded)
Functions would not be very useful if there were no way to pass information between them. Let’s use this thread to discuss the mechanisms that functions use to communicate with each other. How does a caller provide values to a called function? How does a called function present a result to the caller? How do pass by value and pass by reference work? What determines when each technique should be used?
COMP 122 DeVry Week 6 Discussion 1
Arrays and Repetition in Problem Solving (graded)
There are many problems in programming that involve sets of information that can be managed within a program using arrays. Think about some different problems that could be solved using software and that include sets of information that could be represented using arrays. Give an example of an array declaration that could be used in a program to contain the data. Discuss how the data might need to be loaded into the array.
COMP 122 DeVry Week 6 Discussion 2
Using Loops to Process Array Data (graded)
There are many situations where array data must be processed using loops. Give some examples of such situations. What sort of loop would you choose to use for your situation? Include some code examples illustrating how a program might process your array using a loop.
COMP 122 DeVry Week 7 Discussion 1
Using C Style Strings (graded)
Let’s discuss how C-style strings are used in a program. How do you create a C-style string? Give examples. How do you input or output a C-style string? What kinds of tools are available to work with C-style strings? Show some examples of using those tools!
COMP 122 DeVry Week 7 Discussion 2
Using the string Data Type (graded)
You have been using the string type throughout this course. What new features have you discovered about the string type this week? Give some examples of how you might be able to use these new string capabilities in a program.