Modify given program to automatically repeat process x time

Assignment Help Computer Engineering
Reference no: EM131258123

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 <iostream>
#include <ctime>
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 << "." <<std::endl;
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).

Reference no: EM131258123

Questions Cloud

What is the companys contribution margin ratio : Last month when Holiday Creations, Inc., sold 42,000 units, total sales were $306,000, total variable expenses were $260,100, and fixed expenses were $39,300. What is the company’s contribution margin (CM) ratio?
Calculate the company break-even point in unit sales : Jaffre Enterprises distributes a single product whose selling price is $16.00 and whose variable expense is $10.80 per unit. The company’s fixed expense is $17,160 per month. Calculate the company’s break-even point in unit sales.
Treat guaranteed payments they receive from a partnership : Which of the following is true regarding how partners treat guaranteed payments they receive from a partnership?
How is fedexs location a competitive advantage : How is FedEx's location a competitive advantage? Discuss ? Why do so many U.S. firms build facilities in other countries? Why do so many foreign companies build facilities in the U.S.? What is clustering?
Modify given program to automatically repeat process x time : Modify the program to automatically repeat the process X times, where X is specified by user. Include meaning prompts, messages, and additional comments.
How is fedexs location a competitive advantage : How is FedEx's location a competitive advantage? Discuss ? Why do so many U.S. firms build facilities in other countries? Why do so many foreign companies build facilities in the U.S.? What is clustering?
Calculate integral in preceding problem using simpson rule : Calculate the integral in the preceding problem using Simpson's rule. Also use the quad command in MATLAB to get the integral and compare the results. Do you expect the two-point Gauss-Legendre method to give accurate results for this problem? Exp..
How this inflation can be managed strategically in future : Suggest one (1) key financial ratio that a health care administrator should create a trend analysis for. Suggest one (1) key insight that may be gained by the administrator in regard to the performance of the organization. Provide support for your..
Identify the specific qualitative research design used : Once you have located an appropriate qualitative study, identify the specific qualitative research design used. Summarize the main points of the study including information on the research question and sampling strategy.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd