Modify the program to automatically repeat the process x


1. Data Mining

Read chapter 9 in Computer Science: An Overview and note especially section 9.6.

Create a 3 page document which will summarize the six forms of data mining. After you describe each form, give a good example of the use of each form within an IT context. The example should be different from the one given in the text.

Speculate how large online retailers such as amazon.com or ebay.com use data mining. Pick one or two of the forms of data mining and then describe how they are used.

The document should be clear and concise, free from syntax and semantic errors.

2. 3D Representation

Read chapter 10 in Computer Science: An Overview and note especially section 10.2. Create a 2 page document which will summarize the three steps involved in producing an image using 3D graphics. After you describe each step, give a good example of each. The example should be different from the one given in the text.

Find a recent news article (not a tutorial or description) that relates to 3D graphics. Explain how any aspect of the news article relates to one of the steps you summarized above.

The document should be clear and concise, free from syntax and semantic errors.

3. Analyzing Code

Consider the following C++ code.
#include
#include
using namespace std;
int main()
// purpose of this procedure is to ...
// author, date, revision
{
int rn;
srand(time(NULL));
rn = rand()%6+1;
std::cout << "You _____ a " << rn << "." < return 0;
}

Tasks:

1. Fully comment the code. You will include a meaningful initial comment (//purpose..) along with inline comments.

Remember that a good comment explains _why_ and not just _what_

For example, this comment is not helpful
int rn; // declare the variable rn as an int

Any C++ programmer would understand _what_ the statement is doing. Instead a meaningful comment would indicate the purpose of the variable (why is being declared and how is it used?)
Change the output message so it is meaningful.

2. Code is more readable when meaningful identifiers are used. In this case, choose a better variable name for rn. In the assignment statement, "6" would be considered a "magic number" - this is poor programming practice. Improve the code in some way to avoid the use of the magic number.

3. Modify the program to automatically repeat the process X times, where X is specified by user. Include meaning prompts, messages, and additional comments.

Hint: this code could be used along with the popular game Toma Todo (from Mexico).

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Modify the program to automatically repeat the process x
Reference No:- TGS01660967

Expected delivery within 24 Hours