subject
Computers and Technology, 14.07.2020 19:01 jumana3

An old computer program which computes the n^\text{th}n th n, start superscript, start text, t, h, end text, end superscript Fibonacci number takes 0.050.050, point, 05 microseconds (\mu \text{s})(μs)(, mu, start text, s, end text, )to compute the 1^\text{st}1 st 1, start superscript, start text, s, t, end text, end superscript number. After this, each number takes twice as long as the previous number to compute. A computer engineer designs a new program which takes 0.8 \, \mu \text{s}0.8μs0, point, 8, mu, start text, s, end text to compute the 1^\text{st}1 st 1, start superscript, start text, s, t, end text, end superscript Fibonacci number. After this, each number takes 0.6 \, \mu \text{s}0.6μs0, point, 6, mu, start text, s, end text longer than the previous number to compute. How much longer in microseconds does it take the old program to compute the 8^\text{th}8 th 8, start superscript, start text, t, h, end text, end superscript Fibonacci number compared to the new program?

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 06:00
What role do chromosomes play in inheritance?
Answers: 1
question
Computers and Technology, 23.06.2019 01:30
How do you set up a slide show to play continuously, advancing through all the slides without requiring your interaction? a. click set up slide show, and then select the loop continuously until ‘esc' and show without narration options. b. click set up slide show, and then select the loop continuously until ‘esc' and use timings, if present options. c. click set up slide show, and then select the show presenter view and use timings, if present options. d. click set up slide show, and then select the show without animation and browsed at a kiosk (full screen) options.
Answers: 3
question
Computers and Technology, 23.06.2019 02:50
Define a class named movie. include private fields for the title,year, and name of the director. include three public functions withprototypes void movie: : settitle(cstring); , voidmovie: : setyear(int); , void movie: : setdirector(string); . includeanother function that displays all the information about a movie.write a main() function that declares a movie object namedmyfavoritemovie. set and display the object's fields.this is what i have but know its wrong since it will notcompile: #include#includeusing namespace std; //class declarationclass movie{private: string movietitle ; string movieyear; string directorname; public: void settitle(string title); void setyear(string year); void setdirector(string director); void displayinfo(); }; //class implementationvoid movie: : settitle(string title){ movietitle = title; cout< < "what is the title of themovie? "< > temp; myfavoritemovie.settitle(temp); cout< < "enter movie year"< > temp; myfavoritemovie.setyear(temp); cout< < "enter director'sname"< > temp; myfavoritemovie.setdirector(temp); //display all the data myfavoritemovie.displayinfo(); system("pause"); return 0; this code is not entirely mine someone on cramster edited my firstcode but then i try manipulating the new code and i still get acompile error message : \documents\visual studio 2008\projects\movie\movie\movie.cpp(46) : error c2679: binary '< < ' : no operator found which takes aright-hand operand of type 'std: : string' (or there is no acceptableconversion)c: \program files (x86)\microsoft visual studio9.0\vc\include\ostream(653): could be'std: : basic_ostream< _elem,_traits> & std: : operator< < > (std: : basic_ostream< _elem,_traits> & ,const char *)w
Answers: 1
question
Computers and Technology, 23.06.2019 22:20
Learning sign language is an example of a(n) learning sign language is an example of a(n)
Answers: 2
You know the right answer?
An old computer program which computes the n^\text{th}n th n, start superscript, start text, t, h, e...
Questions
question
Chemistry, 31.03.2021 02:50
question
English, 31.03.2021 02:50
question
Mathematics, 31.03.2021 02:50
question
Mathematics, 31.03.2021 02:50
Questions on the website: 13722362