Answer:
</p><p>
</p><p>days1(); // calling function days1()
</p><p>
</p><p>function days1() // function days1
</p><p>
</p><p>{
</p><p>
</p><p>var week = ["sunday ", "monday ", "tuesday "," wednesday"," thursday",
</p><p>
</p><p>"friday"," saturday"];
</p><p>
</p><p>var i;
</p><p>
</p><p>for (i=0;i<7;i++) // iterating over the loop
</p><p>
</p><p>{
</p><p>
</p><p>document.write(" The number of days in a week :" +</br>);
</p><p>
</p><p>document.write( week[i] + "</br>" ); // print the number of days
</p><p>
</p><p>}
</p><p>
</p><p>}
</p><p>
</p><p>
Output:
The number of days in a week :
sunday
monday
tuesday
wednesday
thursday
friday
saturday
Explanation:
In this program, we create a function days1().In this function, we declared an array i.e " week " which will store the list of the days of the week. After that, we iterate the for loop and prints a list of the days of the week.
Answer:
Match the feature to its function. The answers are as below:
1. Normal view the place where creating and editing occurs
2. Notes view an area in which information for handouts can be added
3. Slide pane the place where the slide order can be changed
4. Menu bar contains lists of commands used to create presentations
5. toolbars provide rows of icons to perform different tasks
Explanation:
It is the normal view where the editing and the creation of the slides occur. And it's the notes view where you can add the information for handouts. You can arrange the slides in the slide pane. And you can get a list of commands for creating the presentation in the Menu bar. Also, Toolbar is the rows of icons which helps in performing a various set of tasks. And all these are definitions and prove our above selections are correct.
Answer:
ifstream inputFile;
inputFile.open("Friends.txt");
Explanation:
Though, the programming language is not stated, questions like this are often from C++.
The first statement defines the ifstream object using the following syntax.
ifstream [object_name]
In this case, the object name is inputFile
So, the syntax becomes
ifstream inputFile;
The next line opens a file using the following syntax.
[object_name].open("Filename")
Here, object_name is inputFile and filename is Friends.txt
So, the open statement becomes
inputFile.open("Friends.txt")
<span>If using excel, you can use this formula:
DATEDIF(start_date, end_date, unit)
For instance,
DATEDIF(9/1/2014, today, "d")
or
DATEDIF(B10, today, "d")</span>