Maurice Tutor

(5)

$15/per page/Negotiable

About Maurice Tutor

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Algebra,Applied Sciences See all
Algebra,Applied Sciences,Biology,Calculus,Chemistry,Economics,English,Essay writing,Geography,Geology,Health & Medical,Physics,Science Hide all
Teaching Since: May 2017
Last Sign in: 398 Weeks Ago, 4 Days Ago
Questions Answered: 66690
Tutorials Posted: 66688

Education

  • MCS,PHD
    Argosy University/ Phoniex University/
    Nov-2005 - Oct-2011

Experience

  • Professor
    Phoniex University
    Oct-2001 - Nov-2016

Category > Computer Science Posted 27 Aug 2017 My Price 13.00

odd random numbers

Hi sir i was looking for help for these 3 question if you can do it and put much comments as possible so i can understand thanks. Problem 3 Create a function that fills one vector with even random 2 digit numbers and another vector with odd random numbers. Prompt the user for the size of these vectors. Both will be the same size. Output the results where you ask the user how many columns to display. These should be done with 2 functions, fillVec and prntVec. Then do the same with a 2-Dim array where the first column has even numbers and the second column has the odd numbers. Fill the 2-D array with values obtained from the odd/even vectors. */ /* Problem #4 (Random Sequence) Create a function/method/procedure that returns a random number from the following set, {19,62,88,101,121}. Loop 10000 times with this procedure and print the frequency of each of the 5 numbers obtained. Hint: Use an array for the sequence and frequency. The following is a brief hint on items that might be helpful in obtaining the results. This is not direct code but more pseudo code related. Don't try and run the following directly and more code will be needed. Setup const int n=5,ntimes=10000; int freq[n]={0}; short int rndseq[]={19,62,88,101,121}; Call to the routine to return a random sequence retrand(rndseq,freq,n,ntimes); Results cout<><" occurred=""></"><><"></"></endl; sample output 19 occurred 2055 times 62 occurred 1986 times 88 occurred 1962 times 101 occurred 2079 times 121 occurred 1919 times note: your results are not expected to be exactly the same! after all these are pseudo-random number sequences with different seeds. */ create the following input tables. output the sum of the rows, columns and grand total. you will need to create procedures that print the table, then sum rows, columns and grand total, then pass that information to the same print routine. note: the 2 procedures printtable,sumtable and finally a call to printtable again are all invoked from function prob6(). i want to see each number formatted to 6 spaces. print the table out exactly as below. example input table 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 129 130 example output augmented table with rows summed, columns summed and the grand total printed. 100 101 102 103 104 105 615 106 107 108 109 110 111 651 112 113 114 115 116 117 687 118 119 120 121 122 123 723 124 125 126 127 129 130 761 560 565 570 575 581 587 3438 more credit will be given if you read the input and write the results to a file. however, if you can't do this in a procedure then embed in the program. but full credit will not be given for the problem if files are not utilized. name the files table.dat and augtable.dat>

Answers

(5)
Status NEW Posted 27 Aug 2017 09:08 PM My Price 13.00

Hel-----------lo -----------Sir-----------/Ma-----------dam-----------Tha-----------nk -----------You----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------and----------- ac-----------qui-----------sit-----------ion----------- of----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n.P-----------lea-----------se -----------pin-----------g m-----------e o-----------n c-----------hat----------- I -----------am -----------onl-----------ine----------- or----------- in-----------box----------- me----------- a -----------mes-----------sag-----------e I----------- wi-----------ll

Not Rated(0)