PA 1 - Programming Sprints

Submit your programs here: https://forms.gle/PQGNEkAghFwdANGT9

You may submit more than one program using the provided submission portal. Be careful not to overwrite your previous programs by using the same repl. Each submission should have:

  1. Multiple submissions allowed
  2. Title each program
  3. Use comments to explain what’s happening in your program
  4. Use style guidelines to keep organized

A 2 - Strange Calculator, due Tues, Apr. 2

Assigned Wed, Mar. 20, ‘[Updated] Due Tues, Apr. 2 @ 23:59 via submission portal

Write your own strange calculator that meets the following requirements:

  • at least five ‘strange’ calculations. Instead of the traditional calculator that adds, subtracts, multiplies, and divides numbers, think creatively about functions that aren’t usually done by a calculator; for example, adding strings instead of numbers, performing modulus, or calculating the force of an object given its mass and acceleration.
  • an overloaded function name (that is, at least two functions with the same name)
  • generally follow the ‘pretty code’ guidelines

User-Defined Functions - Special Topics

What is method overloading? How can we assign default values for parameters? What happens if I define a function after main()? What makes something global versus local?

In the previous lesson, we discussed how we can create our own functions and the components required. Now, we will review how to control the inputs and outputs of a function (such as through function name overloading and default values for parameters), as well as control what the function can ‘see’ (scope). Additionally, we’ll briefly talk about how to resolve a bug (a small error in your program) that happens when you define a function after main().

Languages and Protocols of the Web

An HTML reference sheet

HyperText Transfer Protocol (HTTP) lies in the Presentation layer of the OSI Model because HTTP format web data so the user can view it. HTTP is how your web browser requests resources from a web server. There are different actions that happen:

  • GET - access/download the resource, such as view the webpage
  • POST - send some data, such as through a webform.
  • additional other HTTP request methods - link

Pagination


© 2020. Some rights reserved.