Digital revolution lab - software

Assignment Help Other Subject
Reference no: EM131938967

Understanding the Digital Revolution Lab - Software

Overview - In this lab, you will write some code in the JavaScript programming language, and explore the free and open-source software community.

Task Details -

Task One - JavaScript

JavaScript is a high-level interpreted programming language. It is built in to every popular web browser, including Chrome, Firefox, Internet Explorer, Edge, and Safari.

This lab assumes you are using Chrome, however most of the functions we'll use have equivalents in other browsers.

To get started, open Chrome and navigate to about:blank Instead of an http or https site. There are a few interesting about: pages which are built in to your browser. Try visiting about:credits

From this (blank) page, press either Ctrl-Shift-J (that is, hold Ctrl and Shift and press J) or F12 to open the Developer Tools for brevity, we'll refer to the Developer Tools as DevTools.

Task 1.a - Using JavaScript as a calculator

See the > character in the Console tab? That is a prompt, a place where you can type JavaScript for it to be executed immediately.

Task 1.b - Talking to the browser

JavaScript by itself can't do much of interest besides cool maths. JavaScript gets much more interesting when you use it to manipulate the web browser itself.

Try typing each of the following lines of code, and again, note the response:

  • alert("Hello")
  • prompt("How great is this lab?")
  • document.write("<h1>Look over here</h1>")

Each of these gave you some way of modifying the page or interacting with the user.

Task 1.c - Variables

When we were exploring machine instructions, we looked at registers and RAM as ways to (temporarily) store values while we were working on them

For instance, in the linear search we stored an memory address at cell 72

JavaScript (and most other programming languages) make this easier for you, by letting you create variables. A variable is analogous to a register or location in RAM, but you don't have to worry about where it is stored in RAM.

Try the following lines of code, in order, to get a sense of what variables are:

  • var age = prompt("How old are you?")
  • var message = "Your age is " + age;
  • alert(message)

Note how we ask the user (you, in this case) for some information, store it in a variable and do something with it. However, we don't need to know or make up an address in RAM in which to store the age.

Task Two - JavaScript using jsFiddle

In Task 1.c you wrote a series of lines of code that combine to make some interesting behaviour. In this exercise, you will write multiple lines of JavaScript to change a web page.

Task 2.a - jsFiddle

Close the DevTools, and in your web browser - jsFiddle is a web site that lets you explore and play with HTML, CSS and JavaScript without needing to run your own web server.

Task 2.b - Functions and Event listeners (Optional, advanced)

Add a <button> element to the HTML code, and add an event listener to change the message again when the button is clicked.

What does the function keyword mean in JavaScript?

What's the closest equivalent you've seen in machine instructions or TIS-100?

Task Three - Free and Open-Source Software

Free software and open-source software have somewhat different meanings, but are often used to describe the same thing - software with permissive licenses, developed in public. GitHub is the most popular (but not the only) site for hosting and managing the development of open- source and free software. It is a collaborative tool that lets programmers and other software developers share and discuss computer code. For this task, create an ePortfolio page to document your investigation.

Attachment:- Assignment Files.rar

Reference no: EM131938967

Questions Cloud

Using the multistage dividend discount model : Using the multistage dividend discount model, what should be the price of the stock today?
How much did the insurance company pay for this accident : An insured carries all three classifications of insurance, with a deductible of $500 for collision. How much did the insurance company pay for this accident
Bonds to finance organizational strategy : Discuss three major considerations when choosing between the issuance of stocks or bonds to finance an organizational strategy.
Probability that the buttons for consecutive floors : What is the probability that the buttons for 3 consecutive floors are pressed?
Digital revolution lab - software : Understanding the Digital Revolution you will write some code in the JavaScript programming language, and explore the free and open-source software community.
Confidence interval levels for the population mean : Find the t value corresponding to the following confidence interval levels for the population mean when the sample size is n=20. a. 90 percent confidence.
What is the investor rate of return : The stock pays $0.59 per share dividend each year. If the stock is sold at the end of the year at $24 per share, what is the investor's rate of return?
What is the amount that someone should offer you : If you were to sell your bond today, what is the amount that someone should offer you (in other words, the market value of your bond!)
Ball from a box containing balls numbered : Write the sample space corresponding to ;-1/ Select a ball from a box containing balls numbered 1 to 50 ?2/ Select a ball from an urn containing balls numbered

Reviews

Write a Review

Other Subject Questions & Answers

  Cross-cultural opportunities and conflicts in canada

Short Paper on Cross-cultural Opportunities and Conflicts in Canada.

  Sociology theory questions

Sociology are very fundamental in nature. Role strain and role constraint speak about the duties and responsibilities of the roles of people in society or in a group. A short theory about Darwin and Moths is also answered.

  A book review on unfaithful angels

This review will help the reader understand the social work profession through different concepts giving the glimpse of why the social work profession might have drifted away from its original purpose of serving the poor.

  Disorder paper: schizophrenia

Schizophrenia does not really have just one single cause. It is a possibility that this disorder could be inherited but not all doctors are sure.

  Individual assignment: two models handout and rubric

Individual Assignment : Two Models Handout and Rubric,    This paper will allow you to understand and evaluate two vastly different organizational models and to effectively communicate their differences.

  Developing strategic intent for toyota

The following report includes the description about the organization, its strategies, industry analysis in which it operates and its position in the industry.

  Gasoline powered passenger vehicles

In this study, we examine how gasoline price volatility and income of the consumers impacts consumer's demand for gasoline.

  An aspect of poverty in canada

Economics thesis undergrad 4th year paper to write. it should be about 22 pages in length, literature review, economic analysis and then data or cost benefit analysis.

  Ngn customer satisfaction qos indicator for 3g services

The paper aims to highlight the global trends in countries and regions where 3G has already been introduced and propose an implementation plan to the telecom operators of developing countries.

  Prepare a power point presentation

Prepare the power point presentation for the case: Santa Fe Independent School District

  Information literacy is important in this environment

Information literacy is critically important in this contemporary environment

  Associative property of multiplication

Write a definition for associative property of multiplication.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd