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

  Questiondevelop a program that displays information about a

questiondevelop a program that displays information about a family member or friend. this program must print out

  Main differences between selection and switch structure

What do you need to analyze when directing flow of information in each case? Give code examples for if/else structure and switch structure that produce the same result.

  Different visual basic command

Write down the visual basic command in order to Load a LVM file ( file name: Data.lvm), Delete the first 22 row , Insert a new column from 0 to last row of file with increment of 0.1 ( For example, if there are 25 rows in Data.lvm; then 25-22=3, it w..

  Tools that help in the attack

When initially collecting the information on a network, that reconnaissance tool or method do you believe would generate the best results include what information could you learn utilizing this tool or method and how could this information be used..

  Write a class called "deck" with the traits

Write a class called "Card" with the following traits: it holds 2 private variables, a suit and a value (ace is high). It has public functions that randomly generate and build the suit, value and print out the suit/value to the screen. Write a suit..

  Program that stores and converts a number

Write down a program that stores and converts a number entered in Roman numerals to an integer value. Your program should consist of a class named Roman.

  Modify the implementations of the classes in the atm

Modify the implementations of the classes in the ATM example so that the bank manages a collection of bank accounts and a separate collection of customers. Allow joint accounts in which some accounts can have more than one customer.

  Cost estimate for the topliance corporation

You have already generated a project charter, a project schedule, and the cost estimate for the TopLiance Corporation, which sells home appliances. They have over 50 sales agents across multiple states.

  Define a prefix of a string is a substring string

An exact match will override a prefix match. For instance, the prefix "car" matches the given word "car" exactly. Therefore, it is understood without ambiguity that "car" is an abbreviation for "car", not for "carriage" or any of the other words i..

  Calculate the efficiency of transmission at data link layer

Calculate the efficiency of transmission at the data link layer. Assume no options for IP header and Ethernet-II format are used at the data link layer.

  This assignment is due for online students by midnight on

this assignment is due for online students by midnight on sunday of week 7 and for on-ground students before week 8s

  Questiona create a vbnet program that will give change as

questiona create a vb.net program that will give change as given by a vending machine. allow the user to enter cost of

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