Preview

Pt1420 Unit 5 Assignment 2

Satisfactory Essays
Open Document
Open Document
188 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Pt1420 Unit 5 Assignment 2
Samuel Aggor
CSC 1100
3/3/16
Assignment 5
Problem 1
a. Output: 3.94
b. Output: 6.67
c. Output: 15.00
d. Output: -35.00
e. Output: 0
Problem 2
a. Output: 62
b. Output: 20160
c. Output: 20 213837312
d. Output: 1
Problem 3
a. Func1 has two parameters. Func1 is an integer function.
b. Func2 has three parameters. Func2 is a double function.
c. Func3 has four parameters. Func3 is a char function.
d. Join has two parameters. Join is a string function
e. 2; int and double, int first and then double
f. func1(3, 8.5)
g.
Problem 4 double func(double& x, double& y, double& z)
{
if (pow(x, y) == z) return true;

else return false;
}
Problem 5
a. Output: 720
b. Output: 0
c. Output: 71
d. Output: 362880
Problem 6
a. Output: “Take Programming I.”
b. Output:

You May Also Find These Documents Helpful

  • Satisfactory Essays

    Microsoft. (2012, April 26). Window Server Creating A Site Link Design. Retrieved from Tech Net.Microsoft.com: http://technet.microsoft.com/en-us/library/cc732837(v=ws.10).aspx…

    • 670 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    Unit 9 Assignment SC121

    • 907 Words
    • 9 Pages

    a. Values of maximal depolarization of membrane potential (mV) at different stimulation voltages, by location.…

    • 907 Words
    • 9 Pages
    Powerful Essays
  • Powerful Essays

    NOTE: • If a candidate answers a question TWICE, only mark the FIRST attempt. • If a candidate has crossed out an attempt of a question and not redone the question, mark the crossed out version. • Consistent Accuracy applies in all aspects of the marking memorandum. QUESTION 1 1.1.1 x( x + 1) = 6 x2 + x = 6 x2 + x − 6 = 0 (x + 3)(x − 2) = 0 x = −3 or 2 OR Note: Answers by inspection: award 3/3 marks Note: Answer only of x = 2 : award 1/3 marks Note: If candidate converts equation to linear: award 0/3…

    • 7470 Words
    • 30 Pages
    Powerful Essays
  • Satisfactory Essays

    Pt1420 Unit 3 Assignment

    • 298 Words
    • 2 Pages

    2. Consider the following two vectors: x =  1  and y =  1 .…

    • 298 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    The free group with two generators a and b is composed of all finite strings that are formed from the four symbols a, a−1, b and b−1 given that no a is directly next to an a−1 and no b is directly next to a b−1. Two such strings can be concatenated and converted into a string of this type by repeatedly replacing the "forbidden" substrings with the empty string. For example: abab−1a−1 concatenated with abab−1a yields abab−1a−1abab−1a, which contains the substring a−1a underlined in the example, and so the “forbidden” string gets cancelled and reduced to abab−1bab−1a, which again contains the substring b−1b underlined in the example, which then gets reduced to abaab−1a. It can be checked that the group formed from the set of those strings with…

    • 493 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    b. Include the function written in Exercise 2a in a working program. Make sure your function…

    • 720 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    No the supervisor isn't right because Mark and Jean can fill the pool less than ten hours.…

    • 104 Words
    • 1 Page
    Satisfactory Essays
  • Satisfactory Essays

    2.What number does a bit that is turned on represent? What number does a bit that is turned off represent? On is 1 and Off is 2…

    • 286 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    For Visual Basic a variable’s name must have a letter as the first character, you cannot use spaces, periods, or other special characters such as !@#. The name cannot exceed 255 characters. The variable should not have a similar name as the functions, statements, and methods, and the name cannot be repeated within the scope. This language is not case sensitive.…

    • 333 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    1. Explain in words why the equation {n \choose k} = {n \choose n -k} is true.…

    • 527 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    Similarities in the languages are that their variables should be made up of Alphanumeric characters. Another similarity is they should refrain from using most symbols. A third similarity is each has reserved words that the language uses for its own purposes.…

    • 218 Words
    • 1 Page
    Satisfactory Essays
  • Satisfactory Essays

    Pt1420 Unit 1 Assignment

    • 303 Words
    • 2 Pages

    These administrations help in building common dialect UIs. Discourse to Text gives a transcript of common dialect into content. Artificial intelligence is utilized to join linguistic and dialect structures with the preparing of voice motion for a more exact recognizable proof of words. Then again, Text to Speech benefit incorporates discourse from a content document while altering cadence and sound. The words are integrated progressively in a few dialects.…

    • 303 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Hash ____ are mathematical functions that create a hash value, also known as a message digest, by converting variable-length messages into a single fixed-length value.…

    • 1195 Words
    • 17 Pages
    Good Essays
  • Satisfactory Essays

    Test Bank Ch1

    • 2610 Words
    • 11 Pages

    7. In which of the following addition problems (using two’s complement notation) does an overflow error occur?…

    • 2610 Words
    • 11 Pages
    Satisfactory Essays
  • Good Essays

    Shell Programming

    • 1869 Words
    • 8 Pages

    7) Write Script to find out biggest number from given three nos. Nos are supplies as command line argument. Print error if sufficient arguments are not supplied.…

    • 1869 Words
    • 8 Pages
    Good Essays