What would the student have done differently

Please respond to the text below with at least 200 words or more.

Selective  statements are decision making controls for JavaScript which allow for  two or more alternative paths. These statements would be “if”,  “if/else”, and “switch”. These statements will be executed if the  condition is true. Repetitive statements are used to repeat a section of  code multiple times as known as looping. These statements would be  “for”, “while” and “do-while”. Is the statement true? Then the statement  will repeat, if not, then it will stop.

Example  of Selective Statement: This statement is telling the program that the  number is greater than/equal to 2. Anything less than would fail.

int=2;

if (x<1||x>1) {

System.out.printin(“x does not equal 1”);

}else {System.out.printin(“x equals 2”);

Example of Repetitive Statement: This statement is telling the program to begin at 3 and to repeat without going over 12.

Int a=3;

while (a <= 12) {

System.out.printin(a);

WE HAVE HAD A GOOD SUCCESS RATE ON THIS ASSIGBNMENT. PLACE AN ORDER WITH SCHOLAR WRITERS AND GET 100% ORIGINAL PAPERS

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>