", "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

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>

Expert Answer

1 Rating

Want to see the step-by-step answer?

See Answer

Check out a sample Q&A here.

Want to see this answer and more?

Experts are waiting 24/7 to provide step-by-step solutions in as fast as 30 minutes!*

See Answer
*Response times vary by subject and question complexity. Median response time is 34 minutes and may be longer for new subjects.

Related Computer Science Q&A

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

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’...

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...

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...

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...

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...

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...

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...

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, ...

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...