Computer Science Homework Solutions

Describe how a strategy for playing tic-tac-toe can make use of genetic algorithm

Describe how a strategy for playing tic-tac-toe (naughts-and-crosses or x-mix-drix) could be developed using the genetic algorithm approach.

Algorithm T/F

(See attached file for full problem description)

Algorithms TF

(See attached file for full problem description)

Testing and Debugging

1. Explain the difference between testing and debugging. 2. Which activity is more time consuming? 3. Why do companies often release software that is not bug-free?

Application Development

Part I. Basic mathematical calculation 1. How are Integer and String data types used in an application? 2. Are Integers and Strings considered objects in VB? Elaborate. 3. Why is it inherited from a String class? Part II. Advanced Calculations 1. In Application Development, what are control properties? 2. Are all the ...continues

VB Basic Mathematical Calculation

Hello, I need some help on my assignment (I attached the actual assignment at the end of the answers). I did most of the parts but I still have problems writing some codes in Visual Basic. I need answers to the followings: 1. I need a code (Visual Basic) for the syntax X = P * R^2 (P=3.14) 2. I need a code to make the Text b ...continues

Visual Basic Advanced Calculations

I have been hired by an engineering company to develop software to perform advanced geometric calculation. My new boss asked me to develop an application that allows engineers to calculate the surface area and the volume of a sphere using Visual Basic. For this, I will need to use the following formulas. Surface Area p = 4r2 ...continues

Visual Basic Math Functions

Develop a simple scientific calculator that will allow the following functions to be calculated using Visual Basic: a) tangent b) square c) sine d) cosine e) absolute value 1. Make the Calculate button the Accept button. 2. Create a Clear button to clear the result text box and reset all controls. 3. Create an ...continues

How many cells can be in a computer's main memory if each cell's address can be represented by two hexadecimal digits? What if four hexadecimal digits are used? Explain your answer.

How many cells can be in a computer's main memory if each cell's address can be represented by two hexadecimal digits? What if four hexadecimal digits are used? Explain your answer.

Write an algorithm, using pseudo code, to perform the following task: Given a string of numbers, identify all of the substrings that form numbers that are divisible by 3. For example, applying the algorithm on the string 37540 should produce the following substrings (not necessarily in this order): 0; 3; 75; 54; 375; 540

1.Write an algorithm, using pseudo code, to perform one of the following tasks,* Given a string of numbers, identify all of the substrings that form numbers that are divisible by 3. For example, applying the algorithm on the string 37540 should produce the following substrings (not necessarily in this order): 0; 3; 75; 54; 375; ...continues

Browse