", "learningResourceType": "Expert Answer", "datePublished": "2019-11-03" }

Describe five components of code, indicating their role in programming. Identify the specific code to be changed, modify it, and describe the changes, supported by screenshots.Group 1: Choose an initial upgrade date that is at least 30 days in the future.  Group 2: This date should be 2 days after the initial upgrade date. Group 3: This date should be 5 days after the initial upgrade date. Group 4: This date should be 8 days after the initial upgrade date. Group 5: This date should be 10 days after the initial upgrade date.<!DOCTYPE html><html><head>    <h1>Welcome Team Pakistan</h1>    <h2>Warning Operating System (OS) Updgrade</h2><script type="text/javascript">    var today = new Date ();    var UpgradeDay = new Date("December 4, 2019");    var msPerDay = 24 * 60 * 60 * 1000;    var TimeLeft = (UpgradeDay.getTime() - today.getTime());    var Days = TimeLeft / msPerDay;    var DaysLeft = Math.floor(Days);    document.write("There are only<BR><H4>" + DaysLeft + " Days </H4> Until Your Computer Upgrade </P>");</script></body></html>

Question
Asked Nov 3, 2019
69 views

Describe five components of code, indicating their role in programming. Identify the specific code to be changed, modify it, and describe the changes, supported by screenshots.

Group 1: Choose an initial upgrade date that is at least 30 days in the future.  Group 2: This date should be 2 days after the initial upgrade date. Group 3: This date should be 5 days after the initial upgrade date. Group 4: This date should be 8 days after the initial upgrade date. Group 5: This date should be 10 days after the initial upgrade date.

<!DOCTYPE html>
<html>
<head>
    <h1>Welcome Team Pakistan</h1>
    <h2>Warning Operating System (OS) Updgrade</h2>
<script type="text/javascript">
    var today = new Date ();
    var UpgradeDay = new Date("December 4, 2019");
    var msPerDay = 24 * 60 * 60 * 1000;
    var TimeLeft = (UpgradeDay.getTime() - today.getTime());
    var Days = TimeLeft / msPerDay;
    var DaysLeft = Math.floor(Days);
    document.write("There are only<BR><H4>" + DaysLeft + " Days </H4> Until Your Computer Upgrade </P>");
</script>
</body>
</html>

check_circle

Expert Answer

star
star
star
star
star
1 Rating
Step 1

The given HTML code provide the below screenshot.

Step 2
help_outline

Image Transcriptionclose

file:///C:/Users/GSK/Desktop/bned.html Welcome Team Pakistan Warning Operating System (OS) Updgrade There are only 30 Days Until Your Computer Upgrade

fullscreen
Step 3

In the given code components are :

HTML
Head
body
H1
H2
script
variables defined in the code are : today, upgradeDay, msPerDay,TimeLeft,Days,DaysLeft

HTML: HTML is the one of the key component of the HTML page or this code. What ever the code you need write for the web page is include between the <HTML> </HTML> tags. It has the scope of the entire page or global scope.
Head: Head is anothe component that is used to define or write the header elements of the web page. it has global scope. One web page one ...

Want to see the full answer?

See Solution

Check out a sample Q&A here.

Want to see this answer and more?

Solutions are written by subject experts who are available 24/7. Questions are typically answered within 1 hour.*

See Solution
*Response times may vary by subject and question.
Tagged in

Engineering

Computer Science

Related Computer Science Q&A

Find answers to questions asked by student like you
Show more Q&A
add
question_answer

Q: The logic will allow the user to: Load a single dimensional array of size 50 with a random number T...

A: Header file #include&lt;stdlib.h&gt; included for srand function.Char ch declared to hold ‘Y’ or ‘N’...

question_answer

Q: Python 3.7.4: The current calendar, called the Gregorian calendar, was introduced in 1582. Every yea...

A: In order to correct given program, make the following changes:Put def main() code above the def leap...

question_answer

Q: I am working on a code for loops where I need to list all the prime numbers between value A(number p...

A: Validate all validations with 2 first and last numbers i.e. nbr1 and nbr2.Update nbr1 again and agai...

question_answer

Q: Assignment First, launch NetBeans and close any previous projects that may be open (at the top menu ...

A: A Java program that satisfies the given criteria is given below,Program://Import necessary packagesi...

question_answer

Q: Python   1. Write a for loop (using the range() function) that will print the integers 10,15,20,25,3...

A: Program:#display the statementprint("The integers are: ") #iterate "i" in the range of 10 to 51 with...

question_answer

Q: Hi, I have to display the first 20 Fibonacci numbers to the console. The first two numbers are given...

A: Program: class PrSpecial { public static final int N = 20; public static void main(String[] args){ i...

question_answer

Q: Problem 2: Using HTML/JavaScript, find and display the number of multiples of a certain number enter...

A: Program:&lt;!--open the html tag--&gt;&lt;html&gt; &lt;!--head tag defines the head portion of a doc...

question_answer

Q: Identify, list, and define the six components of an information system.

A: Information System (IS):Information system is the system that deals with the organisation, storage, ...

question_answer

Q: What role does database technology play in managing data as a business resource within an organizati...

A: Data resource management is applying software tools and information systems technologies such as dat...