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
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started