Skip to content

Repository files navigation

Assignment 4: JavaScript Calculator and Portfolio

This repository contains my implementation of Assignment 4 for CSC317, which includes a JavaScript calculator and a personal portfolio website.

Project Structure

assignment-4/
├── README.md
├── SUBMISSION.md
├── calculator.html
├── calculator.js
├── hello.js
├── index.html
├── images/
│   ├── calculator-preview.jpg
│   └── profile.jpg
├── styles/
│   └── styles.css
└── scripts/
    └── script.js

Features

Calculator

  • Basic arithmetic operations (addition, subtraction, multiplication, division)
  • iOS-style interface
  • Keyboard support
  • Clear and All Clear functionality
  • Error handling for invalid operations

Portfolio

  • Responsive design
  • About Me section
  • Projects showcase
  • Clean and modern interface

Setup Instructions

  1. Clone the repository
  2. Open index.html in a web browser to view the portfolio
  3. Click on "View Calculator" to access the calculator application
  4. Alternatively, open calculator.html directly to use the calculator

Testing

To test the calculator:

  1. Open calculator.html in a web browser
  2. Try basic arithmetic operations using both mouse clicks and keyboard input
  3. Test error handling by attempting invalid operations
  4. Verify that the clear and all clear buttons work as expected

Author

Hamid Sahraye

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages