The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | May 2017 |
| Last Sign in: | 398 Weeks Ago, 4 Days Ago |
| Questions Answered: | 66690 |
| Tutorials Posted: | 66688 |
MCS,PHD
Argosy University/ Phoniex University/
Nov-2005 - Oct-2011
Professor
Phoniex University
Oct-2001 - Nov-2016
1) Write fhe function definition for a function named  outputDottedLine() which has no parameters and returns nothing. When called,outputDottedLine() shall display five consecutive periods ..... on the outupt window followed by a newline. 2) Write a function definition for a function named  ouch() that has no parameters and returns nothing. When ouch() is called it displays the string literal "Ouch!" on the output window. 3) add is a function that accepts two int parameters and returns their sum . Two int  variables , euroSales and asiaSales , have already been declared and initialized .Another int variable , eurasiaSales , has already beendeclared . Write a statement that calls add to compute the sum of euroSales and asiaSales and store this value in eurasiaSales . Instructor Notes: Remember, there are several things we can do with the return value from a function call. One of those things is to assign the return value to a variable, using this syntax: var = function-name ( list-of-args ) ; 4) Write the definition of a function half , which receives an integer  parameter and returns an integer that is half the value of the parameter . (Useinteger division!) So if the parameter 's value is 7, the function returns the value 3. If the parameter 's value happens to be 44, the functions returns the value 22.
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