Answer:
Codes for each of the problems are explained below
Explanation:
PROBLEM 1 IN C++:
#include<iostream>
using namespace std;
//fib function that calculate nth integer of the fibonacci sequence.
void fib(int n){
// l and r inital fibonacci values for n=1 and n=2;
int l=1,r=1,c;
//if n==1 or n==2 then print 1.
if(n==1 || n==2){
cout << 1;
return;
}
//for loop runs n-2 times and calculates nth integer of fibonacci sequence.
for(int i=0;i<n-2;i++){
c=l+r;
l=r;
r=c;
cout << "(" << i << "," << c << ") ";
}
//prints nth integer of the fibonacci sequence stored in c.
cout << "\n" << c;
}
int main(){
int n; //declared variable n
cin >> n; //inputs n to find nth integer of the fibonacci sequence.
fib(n);//calls function fib to calculate and print fibonacci number.
}
PROBLEM 2 IN PYTHON:
def fib(n):
print("fib({})".format(n), end=' ')
if n <= 1:
return n
else:
return fib(n - 1) + fib(n - 2)
if __name__ == '__main__':
n = int(input())
result = fib(n)
print()
print(result)
Answer:
im sorry but i cant find any studies about this and im 3 days late
Answer:
1. Poor circuit protection
2.Grounding issue
3. lighting problem
4. Electrical shocks
5. High electricity bills
Explanation:
Answer:
modulus of elasticity for the nonporous material is 340.74 GPa
Explanation:
given data
porosity = 303 GPa
modulus of elasticity = 6.0
solution
we get here modulus of elasticity for the nonporous material Eo that is
E = Eo (1 - 1.9P + 0.9P²) ...............1
put here value and we get Eo
303 = Eo ( 1 - 1.9(0.06) + 0.9(0.06)² )
solve it we get
Eo = 340.74 GPa
<u>the liquid limit</u>
LL=-0.8078x*49.503
LL=-0.8078(25)+49.503
LL=29.308
<u>plasticity index of the soil</u>
PL=217.2%+17.8%/2
PL=17.5
PI=LL-PL
PI=29.308-17.5
PL=11.808
Hope this helps, now you know the answer and how to do it. HAVE A BLESSED AND WONDERFUL DAY! As well as a great rest of Black History Month! :-)
- Cutiepatutie ☺❀❤