subject
Engineering, 19.12.2019 23:31 farashka03

Using c++

1. implement a recursive method fibo that takes an integer num as a parameter and returns the nth
fibonacci number.
2. implement a recursive method printdigits that takes an integer num as a parameter and prints its
digits in reverse order, one digit per line.
3. implement a recursive method mult that takes two integer parameters, x and y and returns their
product. (x*y = x*(y-1)+y. you should know not all computers provide 'product' as an operator. some computers can only do two operations, plus and minus)
4. write a program that tests the three methods above.

ansver
Answers: 2

Another question on Engineering

question
Engineering, 03.07.2019 23:20
Two technicians are discussing the intake air temperature (iat) sensor. technician a says that the computer uses the iat sensor as a backup to the engine coolant temperature (ect) sensor. technician b says that the powertrain control module (pcm) will subtract the calculated amount of fuel if the air measures hot. who is correct
Answers: 3
question
Engineering, 04.07.2019 18:10
Burgers vector is generally parallel to the dislocation line. a)-true b)-false
Answers: 2
question
Engineering, 04.07.2019 18:10
Assuming compressible flow of air and that the measurements are done at flagstaff a pitot static tube that gives the difference of total and static pressure measures 0.35 m of mercury. what is the velocity of air? assume the temperature to be 300k. (submit your excel or matlab calculation sheet)
Answers: 1
question
Engineering, 04.07.2019 18:10
True or false (explain) (110)[111] is a slip system in bcc metals . the {111} family in fcc contains 8 planes. resolved shear stress (rss) in single crystals is just related to the applied stress. critical resolved shear stress (crss) in single crystal metals is direct proportional to the number of defects in the structure
Answers: 2
You know the right answer?
Using c++

1. implement a recursive method fibo that takes an integer num as a parameter...
Questions
question
Mathematics, 26.02.2020 03:53
question
Geography, 26.02.2020 03:53
Questions on the website: 13722361