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

  Determine the constraints on the variables

The CDs she buys at a discount for $12 each. Write an inequality to model the situation. Then, determine the constraints on the variables.

  What is the significance of the "programming language"

Write a response to Hugh McBride's (of McBride Financial Services) e-mail message to Smith Systems Consulting, sent October 12. You can access Internet and Intranet Web sites of McBride Financial Services and of Smith Systems Consulting from the V..

  Utilize linked stack class to support an application

Utilize Linked stack class to support an application

  What are the merits of flash memory over hard disk storage

what are the advantages of flash memory over hard disk storage? what are the advantages of hard disk over flash memory

  Find the values of queuefront and queuerear

assume that queue is a queueType object and the size of the array implementing queue is 100. Also suppose that the value of queueFront is 99 and the value of queueRear is 25.

  How time-variant data can be properly captured

Historical data can be important to measuring performance. Prepare an example on how time-variant data can be properly captured and maintained within a database system.

  Describe write-through and write-back cache modification

Describe write-through and write-back cache modification as they are used in shared memory systems, and the advantages and disadvantages of both approaches.

  Obtains the choice and show action based on that choice

Implements a switch: show the user three choices, obtains the choice and display an action based on that choice. One of the actions will include an if..else. Also include a default for incorrect choices.

  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.

  Express how database processing differs from file

What is e-Commerce? How may e-Commerce businesses be categorized? What are three major issues facing e-Commerce?

  What are the different types of cloud services?

What are the different types of cloud services?

  Explaining the role of cio

Assess the role of CIO within any health care organization and explain the key characteristics a CIO would require to possess to be effective in that position.

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