Answer:
see explaination
Explanation:
MATLAB script:
% MATLAB script that calculates reciprocal Fibonacci constant Ψ
% Initial Values
a0 = 1;
a1 = 1;
% Looping variable
i = 2;
% Reading n value from user
n = input(' Enter n value: ');
% Initializing sum
sum = (1/a0) + (1/a1);
% Loop till i reaches n value
while i <= n
% Finding term in Fibnocii series
a2 = a0 + a1;
% Accumulating Sum
sum = sum + (1/a2);
% Updating previous terms
a0 = a1;
a1 = a2;
% Incrementing loop variable
i = i + 1;
endwhile
% Printing result
printf("\n Reciprocol Fibnocii Constant: %f \n", sum);
See attachment for sample output
Answer:
Class are the collection of variable and member function.
Class are the blueprint of an object.
Explanation:
Following are the points regarding class in c++
1.In C++ class is an user defined datatype..
2.Classes are the collection of variable and function in c++.
3.To access the property of class we can create object of that class
4.We can use following syntax to declared any class in c++
class classname
{
accessmodifier:
//statement and function
};
main()
{
classname objectname;
}
implementation of class in c++
#include<iostream>
class test // class declaration
{
public: // access modifier
void fun3() // Method definition
{
cout<<" hello :";
}
};
void main() // main function
{
test ob;// creating object
ob.fun3(); // calling function
}
In this program we declared a class "test " in class test. We giving public access modifier .The public access modifier define that variable and function are accessible outside the class and in main method we create the object ob which call the function fun3().
Output:hello :
Answer:
c i think it mit be right i'm sorry if it's not ,
Explanation:
it's c or D.
It help to melt the snow quicker. they salt eats away the snow.
1. go back to the feedback you submitted
2.Locate the order, and then click remove
3.select a reason for the removal and click to remove the feedback button.
(But why would you write a rude comment in the first place to begin with?)