Loop takes only positive numbers and terminates once it encounters a negative numbers.
Answer and Explanation:
Using javascript:
Var positiveInt= window.prompt("insert positive integer");
While(positiveInt>=0){
Alert("a positive integer");
Var positiveInt= window.prompt("insert positive integer");
}
Or we use the do...while loop
Var positiveInt= window.prompt("insert positive integer");
do{
Var positiveInt= window.prompt("insert positive integer");
}
While (positiveInt>=0);
The above program in javascript checks to see if the input number is negative or positive using the while loop condition and keeps executing with each input until it gets a negative input
Answer:
console.log(Animal);
Explanation:
The statement written above prints the array Animal which contains objects.There are two to three ways to print the array Animal in javascript. One of the method is written in the answer it prints the arrays in the console of the browser.
You can go to the console by pressing F12 and then clicking on the console.
Other methods to print are
- Simple write Animal after defining the array.
- Use alert.
- document.write()
Answer:
See attachment for flowchart
Explanation:
- The flowchart starts and ends with an oval shape.
- The flowchart accepts input for variables First and Second using the parallelogram shape.
- After both inputs have been collected;
The flowchart calculates First^Second and stores the result in variable Result.
-The value of Result is printed, afterwards.
Answer:
Merge shapes
Select the shapes to merge. Press and hold Shift to select multiple shapes. The Shape Format tab appears. ...
On the Shape Format tab, click Merge Shapes, and then pick the option you want. The order in which you select the shapes to merge may affect the options shown to you.
Explanation:
The keyboard key that toggles between insert mode and overtype mode is the INSERT key.