Question: Chapter 8 Programming Assignment For this chapter we are going to make our own basic calculator. Up until now, I have created the event handlers

Chapter 8 Programming Assignment

For this chapter we are going to make our own basic calculator.

Up until now, I have created the event handlers for your templates. For this chapter you will need to create your own event handlers for 4 buttons, as well as write the code for the calculation that each should do.

This also gives us time to make sure we fully understand how events work and how to trigger them, as next chapter we will start to do more with page modifications. It's important that you have a pretty thorough grasp on the basics we have discussed up until this point

Chapter 8.css

body{

margin:0;

background:#333;

}

.main{

width:400px;

height:auto;

background:#fff;

margin:50px auto;

text-align:center;

padding: 25px 0;

}

.main input{

margin:25px 0;

}

Chapter 8.html

Chapter 8 Calculator

Basic Calculator

Enter 2 numbers below and click the desired operator button.









Chapter 8.js

// COURSE: CIT 140 JavaScript

// NAME:

// DATE:

// PROJECT: Chapter 8 Programming Project

function Add(){

}

function Subtract(){

}

function Multiply(){

}

function Divide(){

}

I have included what directions I have along with all the separate files for this program.

I am needing all the code for the Chapter 8.js file.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!