Answer and Explanation:
Using javascript:
function dayof_theweek(){
var TodayDate = window. prompt("enter today's date in the format 'year, month, day' ");
var Datenow=new date(TodayDate);
var Dayofweek=Datenow.getday();
var Days=["monday","Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"];
if(Dayofweek==indexOf(Days[Dayofweek]))
{
document.createTextnode(Days[Dayofweek]);
}
}
The program above uses a date object which uses the method getday to get the day of the week(get day returns an integer from 0 to 6).we then use a comparison operator == to test the condition that returned value Dayoftheweek is same with the index of the array Days and then print to a html document. The program may need improvements such as the fact that errors may arise when proper input isn't given, and therefore must be handled.
The most important fact about the service set identifier (SSID) is that all the end users and all access points (AP) must be configured with matching SSIDs.
<h3>What is
SSID?</h3>
SSID is an acronym for service set identifier and it can be defined as the generic name given to a wireless local area network (WLAN) connection.
In Computer networking, the most important fact about the service set identifier (SSID) is that all the end users and all access points (AP) must be configured with matching SSIDs.
Read more on wireless local area network here: brainly.com/question/13697151
#SPJ11
Answer:
def UpdateScore(score, total):
if total % 2:
print total, "is odd, so adding 10"
score += 10
else:
print total, "is even, so subtracting 5"
score -= 5
print "The score is now",score
return score
score = 0
score = UpdateScore(score, 3)
score = UpdateScore(score, 6)
Explanation:
The % operator returns the remainder after division. So if you divide by 2, the remainder is either 0 or 1, where 0 indicates an even number, and 1 indicates an odd number. The above program shows that.
Social factor - Something that affects you!
Texting and driving is classified as a social factor because your phone is the reason why you crashed your car.