Homework Answers

Math 58880 52480
Physics 50710 47629
Chemistry 44357 42759
Programming & Computer Science 34330 30918
Economics 34267 33209
English 12729 11462
Biology 9425 8734
Management 8270 7078
Engineering 8082 6895
History 4259 3853
Psychology 2611 2287
Geography 2457 1903
Sociology 2387 2125
Law 2080 1463
Other 2007 1890
Marketing 1915 1605
Philosophy 1405 1148
Political Science 1107 1010
French 565 528

Questions: 281 843

Answers by our Experts: 258 976

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

Instructions

  1. Define the hasVowel() function with the following details
  2. Return type - int
  3. Name - hasVowel
  4. Parameter:
  5. char* - to hold the character array
  6. Return value - 1 if there is at least 1 vowel and 0 if there is none. Be sure to consider both the capital and small letter vowels when checking.

Given code

#include <iostream>

using namespace std;


int main(void) {

  char word[100];


  cout << "Enter the word: ";

  cin >> word;


  int result = hasVowel(word);


  if(result == 1) {

    cout << "There is a vowel in the word \"" << word << "\"";

  } else if(result == 0) {

    cout << "There is no vowel in the word \"" << word << "\"";

  }


  return 0;

}


Ex

Enter·the·word:·CodeChum

There·is·a·vowel·in·the·word·"CodeChum"


Instructions:

  1. Declare and define display() function with the ff. details:
  2. Return type - void
  3. Name - display
  4. Parameters
  5. int* - an array
  6. int - the size of an array

Given code

#include <iostream>

using namespace std;


// TODO: Declare the display() function here



int main(void) {

  int world[100] = {

    1,3,2,4,5,7,6,8,9,11,

    100,13,0,14,16,17,3,18,20,10,

    12,8,15,14,-5,17,19,18,1,9,5,

    10,13,11,14,16,22,0,18,20,3,

    99,13,15,14,22,17,19,0,23,2,

    12,13,15,22,16,17,56,18,44,99,

    2,13,22,14,16,89,19,69,101,34,

    12,22,15,14,78,17,69,18,2,33,

    4,13,77,7,10,17,19,91,4,22,

    12,98,15,14,15,17,19,18,7

  };


  display(world, 100);

   

  return 0;

}


// TODO: Define the display() function here


Ex

Element·at·index·0:·1

Element·at·index·1:·3

Element·at·index·2:·2

Element·at·index·3:·4

.

.

.



Inst.

  1. Implement the findRing() function w/ the ff. details
  2. Return type int
  3. Name findRing
  4. Parameters
  5. int* - rings array
  6. int - array size of rings
  7. int - ring she wants
  8. Return value - the index of the ring in the array of rings.

Given code

#include <iostream>

using namespace std;

// TODO: Declare findRing()


int main(void) {

  int rings[10];


  for(int i = 0; i < 10; i++) {

    cout << "Enter option #" << i + 1 << ": ";

    cin >> rings[i];

  }


  int wantedRing;

  cout << "Enter the ring she wants: ";

  cin >> wantedRing;


  cout << endl << "Ring " << wantedRing << " is found at option " << findRing(rings, 10, wantedRing) + 1 << "!";


  return 0;

}


// TODO: Define findRing()


Ex

Enter option #1: 5

Enter option #2: 3

Enter option #3: 10

Enter option #4: 9

Enter option #5: 13

Enter option #6: 11

Enter option #7: 20

Enter option #8: 25

Enter ring she wants: 25


Ring·25 found·at·option·8


example to illustrate the efficiency of estimators


example of a moment estimator which is unbiased


In the last month, the average number of items produced by 16 employees was 200. If 15 of the 16 employees produced a total of 6000 units, how many units did the 16th employee produce?

Solve for x in the given matrix equalities



det (x −3 4


3 −5 x


1 2 −1)= 45


Nyanza textile ltd sells six brands of shower-proof jacket. The prices and the numbers sold in week are

Price 18,20,25,27

Number sold 8,6,5,2


Question.

Calculate the Pearson correlation coefficient for the data above. Interprete your results.


An office hasthe following types of employees. Administrative female 20, male 21. Managerial female 12, male 10, operational female 42 female 38.

If one person from the office is chosen at random what is the probability that the person is a) a male administrator b) a female manager c) male d) an operator e) either a manager or an administrator. F) either a female administrator or a female manag


LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS