When Darcy finish creating the instructional manual for her employees, she can copy paste her content from the word processing program to DTP by :
a) Press Ctrl a to select all the content from the word processing program;
b) Press Ctrl c to copy everything from the word processing program;
c) open DTP
d) Press Ctrl v to paste everything, word by word, page by page from the word processing program to DTP.
Answer:
def leap_year_check(year):
return if int(year) % 4 == 0 and (int(year) % 100 != 0 or int(year) % 400 == 0)
Explanation:
The function is named leap_year_check and takes in an argument which is the year which we wish to determine if it's a new year or not.
int ensures the argument is read as an integer and not a float.
The % obtains the value of the remainder after a division exercise. A remainder of 0 means number is divisible by the quotient and a remainder other wise means it is not divisible by the quotient.
If the conditions is met, that is, (the first condition is true and either the second or Third condition is true)
the function leap_year_check returns a boolean ; true and false if otherwise.
Answer:
#include <stdlib.h>
#include <time.h>
#include<iostream.h>
int main(void) {
int seedVal = 0;
seedVal = 4;
srand(seedVal);
/* Solution*/
cout<<rand() % 149 + 100<<endl;
cout<<rand() % 149 + 100<<endl;
return 0;
}
Explanation:
We start with the required include statements to enable use of srand, rand and time functions. I have also added iostream library to use "cout" function.
After that, the seed is initialized using srand(). And then the two rand functions are called with ranges including and between 100 and 149, and printed out.
Answer:
false
Explanation:
it depends most of time so false
If it's MS Word (it probably is), then it's Alt + F7