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:
Multiple submissions allowed
Title each program
Use comments to explain what’s happening in your program
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 leastfive ‘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)
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 aftermain().
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