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

    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

    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

    We will extend the deadline of the assignment 2. A new deadline for the assignment 2 is March 19th…

    • 127 Words
    • 1 Page
    Satisfactory 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

    Pt1420 Unit 6 Assignment

    • 606 Words
    • 3 Pages

    When the activity was first assigned each member of the group was assigned a different part of the assignment. For, my part in the assignment I was assigned to complete the evaluation tool. The other three members were assigned one of the other three parts left in the activity. When, it came to deciding the activity we each came up with an idea, but then we eventually decided that we would do softball. After that, during the process there were group meetings held to figure the best way for the activity to be run, and how each member was doing with their part of the assignment. I was a little confused with the fact that I wasn’t assigned more work to do. In my opinion, I felt that I could’ve done more than just the evaluation tool I wanted to contribute more to the group. Beyond that, it confused me that during the activity, it took us a while to decide to let each batter have a runner with and…

    • 606 Words
    • 3 Pages
    Good 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
  • Good Essays

    Pt1420 Unit 2 Assignment

    • 1381 Words
    • 6 Pages

    Person reported she played marbles and card games with eight other siblings, also reported that she and her siblings would be outdoors most of the time, as back in her day, not everyone had a TV and her family were too poor to afford one, so therefore they would play family based games where everyone could participate. She reported that she left school after year seven to help her mother with chores and look after younger siblings. She had a lot of responsibility for a kid.…

    • 1381 Words
    • 6 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