An english explanation of what the function does

Assignment Help Chemistry
Reference no: EM13758603

Create a unique sample function that takes at least three parameters. At least one of the parameters should be passed by value, and at least two should be passed by reference.

Post the function definition code for your sample function, along with an English explanation of what the function does.

Then show a sample call to your function, along with the declaration of any constants/variables used by the function call.

You do NOT need to write an entire program.

Explain if/how the arguments would be modified by your function call, and what (if anything) would be passed back to the calling function.

Post your function example to the Week 7 Forum under the Discussion Question: parameter function topic.

Create a unique sample recursive function definition, starting with the outline below:

int myRecursiveFunction (int num)
{
if (num _______ ) // stopping condition
return _______;
else
return _________________________;}


Take the outline above, and fill in the blanks to create your own recursive function. The results do not have to mean anything? it can just be some random math expression.


Your post should include:
The recursive function definition code.

A sample call to your function, along with the declaration of any constants/variables used by the function call.

You do NOT need to write an entire program.

A list of each recursive call that will be made from your original call (labelled as pass 1, pass 2, etc).

An explaination what will be returned from each of the recursive calls to the function (and what is finally returned from the original function call).

Your answer should follow the format of the answers given in the exercises in the section 7.4.5 Knowledge Check.

Post your function example to the Week 7 Forum under the Discussion Question: recursive function topic. 

Reference no: EM13758603

Questions Cloud

Why is crm so much broader than ar management : Why is CRM so much broader than AR management? What new elements does this ERP function bring to organizations?
Initial steps be to start planning for these changes : Be sure to use the textbook and other credible outside resources to substantiate your responses: Jennifer, the owner and manager of a company with ten employees, has hired you to take over the HRM function so she can focus on other areas of her busin..
Running total of the number of bugs collected : A bug collector collects bugs every day for seven days. Design a modularized program that keeps a running total of the number of bugs collected during the seven days. The loop should ask for the number of bugs collected for each day, and when the loo..
Confidentiality-autonomy-fidelity and truth telling : Confidentiality, Autonomy, Fidelity and Truth Telling are situations in which the law and ethics have similar expectations. Explain each situation with an example you can share.
An english explanation of what the function does : Create a unique sample function that takes at least three parameters. At least one of the parameters should be passed by value, and at least two should be passed by reference.Post the function definition code for your sample function, along with an E..
Linear programming case study : Your instructor will assign a linear programming project for this assignment according to the following specifications. You will be turning in two (2) deliverables, a short write-up of the project and the spreadsheet showing your work.
Changing a promotion system-staffing organizations : Bioglass, Inc. specializes in sales of a wide array of glass products. One area of the company, the commercial sales division (CSD), specializes in selling high-tech mirrors and microscopes and photographic lenses. Sales associates in CSD are respons..
Explain how cost and schedule risk : Explain how cost and schedule risk may be prioritized in your organization. Then discuss the impact of the steps of Cost Risk Analysis Maturity and which steps may be the easiest and the most difficult to complete.
Texas as a new Vice President of Operations : You were recently hired at a top corporate company in Houston, Texas as a new Vice President of Operations. The frontlines staffs in most departments are not handling customers’ issues correctly. There are no processes in position to funnel complaint..

Reviews

Write a Review

Chemistry Questions & Answers

  How to calculate the volume of the flask

Calculate the volume of this flask. empty weighed 56.12g , and full of ammonia weighed 87.39g . density of liquid ammonia is 0.625g/l . calculate flask volume in L

  Explain hemoglobin bond to using coordinate covalent

what does hemoglobin bond to using coordinate covalent bonds. A CO2 B O2 C CO D all of the above

  Explain what tempurature will the piston start moving up

Liquid water in the cylinder is initially in equilibrium with it's vapour at tempurature of 12 degrees celsius. Assume no other gases are present. If heat is supplied, the tempurature of the water/vapour mix will rise. At what tempurature will the..

  Determine the exit temperature and the power input assuming

air at 100 kpa and 27degc enters an isentropic compressor at a rate of 100 ls and leaves at 1000 kpa. determine the

  Define an organic compound was synthesized

An organic compound was synthesized & a sample of it was analyzed & found to contain only C, H, N, O, & Cl. It was observed that when a 0.150g sample of the compound was burned it produced 0.138g CO2 & 0.0556g H2O.

  Does a chemical reaction occur when a metal ion is placed

does a chemical reaction occur when a metal ion is placed in a flame and a color occurs? explain. what is the

  State what is the new pressure of the gas

An ideal gas is contained in a cylinder with a volume of 5.0x10^2 mL at a temperature of 30. degrees C and a pressure of 710. torr. The gas is then compressed to a volume of 18mL, and the temperature is raised to 818 degree C. What is the new pres..

  From solutions of known concentrations of p-dichlorobenzene

the expresssion for the freezing point depression of a solution relative to that of the pure solute is shown above.

  Explain the chromatography uses silica column

Consider a sample that is a mixture composed of biphenyl, benzoic acid and benzyl alcohol. predict the order of elution oc the components in this mixture. assume that the chromatography uses silica column and the solvent system is based on cyclohe..

  Explain what is the rate mol/ls for 25ml (nh2)2s2o8

Explain what is the rate mol/ls for 25ml (NH2)2S2O8 (ammonium persulfate) with reaction time of 3.49s and .1L total volume

  A sample of zinc metal reacts with an excess of

a sample of zinc metal reacts with an excess of hydrochloric acid hydrogen chloride via a single displacement reaction.

  Depict the skeletal structure of the major organic product

Draw the skeletal structure of the major organic product produced when 2-methylpropanoyl chloride reacts with 3-methylbutanoic acid

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd