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.
Answer:
The information technology (IT) sector includes companies that produce software, hardware, or semiconductor equipment, and companies that provide internet or related services.
Explanation:
Answer:
<em>The programming language is not stated; however, I'll answer using Python programming language (</em><em>Se</em><em>e attachment</em><em> </em><em>for</em><em> </em><em>proper </em><em>for</em><em>mat</em><em>)</em>
tuition = 10000
rate = 0.04
for i in range(1,15):
tuition = tuition + tuition * rate
if i <= 10:
print("Year "+str(i)+" tuition:",end=" ")
print(round(tuition,2))
if i == 14:
print("Tuition 4th year after:",end=" ")
print(round(tuition,2))
Explanation:
<em>The first 2 lines initializes tuition and rate to 10000 and 0.04 respectively</em>
tuition = 10000
rate = 0.04
<em>The next line iterates from year 1 to year 14</em>
for i in range(1,15):
<em>This line calculates the tuition for each year</em>
tuition = tuition + tuition * rate
<em>The next 3 lines prints the tuition for year 1 to year 10</em>
if i <= 10:
print("Year "+str(i)+" tuition:",end=" ")
print(round(tuition,2))
<em>The next 3 lines prints the tuition at the 4th year after year 10 (i.e. year 14)</em>
if i == 14:
print("Tuition 4th year after:",end=" ")
print(round(tuition,2))
Answer:
This is not a good solution
Explanation:
Your web browser uses port 80 outgoing to make web requests, so if you’re blocking incoming port 80, all you’re blocking is users of the organization from connecting to the internet. You have indeed close a vulnerable port to access from hackers, but this also can reduce the productivity of the organization.