CoreTech2-3MilestoneOne

.docx

School

Ohio State University *

*We aren’t endorsed by this school

Course

505

Subject

Computer Science

Date

Jun 11, 2024

Type

docx

Pages

7

Uploaded by wac23osu

1 2-3 Final Project Milestone One: Programming Report William Craft Southern New Hampshire University IT-505-Q2512 Core Technologies Dr. Allyson Heisey, Ph.D. December 14, 2023
2 Assignment Prepare and submit a report modifying the provided JavaScript code to display a new message to the employees when they open their web browser. This will inform them about the operating system upgrade. In your report, 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. Programming Report Upgrading the operating software is maximizing the software getting out all of the bugs. Without the operating software a computer is just a piece of technology it functionally is not of use. In this scenario, a group at the IT help desk is upgrading the software and needs to set forth group dates for the students to complete their upgrade. They must separate the students into groups to do the update so that not all of the computers are offline at the same time. The Given Code: <!DOCTYPE html> <html> <body> <script type="text/javascript"> var today = new Date(); var UpgradeDay = new Date("January 15, 2015"); var msPerDay = 24 * 60 * 60 * 1000 ; var timeLeft = (UpgradeDay.getTime() -today.getTime()); var days = timeLeft / msPerDay;
3 var daysLeft = Math.floor(days); document.write("There are only<BR> <H4>" + daysLeft + " days </H4> Until Your Computer Upgrade<P>"); </script> </body> </html> After being instructed to delay the update by at least 30 days, the primary task involves effectively modifying the date January 15, 2015. Each group's date is determined, calculating the current date, upgrade date, and the time difference in milliseconds within a day. The script then converts these milliseconds into days, presenting a clear final upgrade date for the specified group. The code comprises five essential components crucial for creating upgrade notifications: Variables, Syntax, Tools, Data Structures, and Control Structures. Variables act as fundamental building blocks in computer programming languages. They function as containers for information within the code, enabling storage and utilization at any given point. Similar to entering your name during a login, variables store and make information readily available for subsequent use. Syntax is a predefined set of rules dictating the accepted patterns of letters or symbols. When a line of code is incorrect, syntax ensures that only the correct string of input is accepted. This ensures the computer can accurately identify and execute the code. Each programming language, such as JavaScript, has its unique set of syntax rules. Tools, including the Integrated Development Environment (IDE), expedite code writing for programmers. Analogous to a construction worker using tools for efficiency on a job site,
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help