Please Help! Unit 6: Lesson 1 - Coding Activity 2
Instructions: Hemachandra numbers (more commonly known as Fibonacci numbers) are found by starting with two numbers then finding the next number by adding the previous two numbers together. The most common starting numbers are 0 and 1 giving the numbers 0, 1, 1, 2, 3, 5...
The main method from this class contains code which is intended to fill an array of length 10 with these Hemachandra numbers, then print the value of the number in the array at the index entered by the user. For example if the user inputs 3 then the program should output 2, while if the user inputs 6 then the program should output 8. Debug this code so it works as intended.
The Code Given:
import java.util.Scanner;
public class U6_L1_Activity_Two{
public static void main(String[] args){
int[h] = new int[10];
0 = h[0];
1 = h[1];
h[2] = h[0] + h[1];
h[3] = h[1] + h[2];
h[4] = h[2] + h[3];
h[5] = h[3] + h[4];
h[6] = h[4] + h[5];
h[7] = h[5] + h[6];
h[8] = h[6] + h[7]
h[9] = h[7] + h[8];
h[10] = h[8] + h[9];
Scanner scan = new Scanner(System.in);
int i = scan.nextInt();
if (i >= 0 && i < 10)
System.out.println(h(i));
}
}
Answer:
ISO 27002
Explanation:
The acronym ISO stand for The International Organization for Standardization. its a non governmental body that is responsible for setting standards guide internationally.
while NIST stand for National Institute of Standards and technology and it is also a body that is responsible for setting up standard guide in the US..
ISO 27002 is a standard code for implementing information security management systems. while ISO 27017 is for cloud security. NIST 800-12 is a general security and NIST 800-14 is for policy development. thus option A is correct.
Note :
All code preceded by ISO is from The International Organization for Standardization and are international standard. while those preceded by NIST is from National Institute of Standards and technology and are not international standard.
Answer:
You will get compile error
Explanation:
- Question -
What influenced work about the Vietnam War was written by Tim O Brian?
- Answer -
The Things They Carried
______________________________________________
These were a series of short stories O Brien wrote including in these stories his experiences with the Vietnam War

Answer:
Change this code:
return <View style={[styles.container, backgroundColor: this.state.bg]}/>
for this code:
return <View style={[styles.container, {backgroundColor: this.state.bg}]}/>