Coder Social home page Coder Social logo

calc's Introduction

Ex.08 Design of a Standard Calculator

AIM:

To design a web application for a standard calculator with minimum five operations.

DESIGN STEPS:

Step 1:

Clone the github repository and create Django admin interface.

Step 2:

Change settings.py file to allow request from all hosts.

Step 3:

Use CSS for creating attractive colors.

Step 4:

Write JavaScript program for implementing five different operations.

Step 5:

Validate the HTML and CSS code.

Step 6:

Publish the website in the given URL.

PROGRAM :

<!DOCTYPE html>
<html>
<head>
  <title>Software Product Development Company</title>
  <link rel="stylesheet" type="text/css" href="styles.css">
</head>
<body>
  <header>
    <nav>
      <ul>
        <li><a href="index.html">Home</a></li>
        <li><a href="products.html">Products</a></li>
        <li><a href="people.html">People</a></li>
        <li><a href="contact.html">Contact Us</a></li>
      </ul>
    </nav>
  </header>
  
  <main>
    <h1>Welcome to our Software Product Development Company</h1>
    <p>We specialize in developing high-quality software products to meet your needs.</p>
  </main>
  
  <footer>
    <p>&copy; 2023 Your Name</p>
  </footer>
</body>
</html>
Additional Information:

Products Page:
php
Copy code
<!DOCTYPE html>
<html>
<head>
  <title>Software Product Development Company - Products</title>
  <link rel="stylesheet" type="text/css" href="styles.css">
</head>
<body>
  <header>
    <!-- Navigation code here -->
  </header>
  
  <main>
    <h1>Our Products</h1>
    <ul>
      <li>Product 1</li>
      <li>Product 2</li>
      <li>Product 3</li>
      <!-- Repeat for remaining products -->
    </ul>
  </main>
  
  <footer>
    <p>&copy; 2023 Your Name</p>
  </footer>
</body>
</html>
People Page:
php
Copy code
<!DOCTYPE html>
<html>
<head>
  <title>Software Product Development Company - People</title>
  <link rel="stylesheet" type="text/css" href="styles.css">
</head>
<body>
  <header>
    <!-- Navigation code here -->
  </header>
  
  <main>
    <h1>Our Team</h1>
    <ul>
      <li>
        <img src="person1.jpg" alt="Person 1">
        <h3>John Doe</h3>
        <p>Software Developer</p>
      </li>
      <li>
        <img src="person2.jpg" alt="Person 2">
        <h3>Jane Smith</h3>
        <p>UI/UX Designer</p>
      </li>
      <!-- Repeat for remaining team members -->
    </ul>
  </main>
  
  <footer>
    <p>&copy; 2023 Your Name</p>
  </footer>
</body>
</html>
Contact Us Page:
php
Copy code
<!DOCTYPE html>
<html>
<head>
  <title>Software Product Development Company - Contact Us</title>
  <link rel="stylesheet" type="text/css" href="styles.css">
</head>
<body>
  <header>
    <!-- Navigation code here -->
  </header>
  
  <main>
    <h1>Contact Us</h1>
    <p>Address: 123 Main Street, City, Country</p>
    <p>Phone: +1 234-567-890</p>
    <p>Email: [email protected]</p>
  </main>
  
  <footer>
    <p>&copy; 2023 Your Name</p>
  </footer>
</body>
</html>
CSS (styles.css):
css
Copy code
/* Common styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

header {
  background-color: #333;
  color: #fff;
  padding: 10px;
}

nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

nav ul li {
  display: inline;
  margin-right: 10px;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
}

main {
  padding: 20px;
}

footer {
  background-color: #333;
  color: #fff;
  padding: 10px;
  text-align: center;
}

/* Page-specific styles */
/* Add specific styles for each page, if needed */

OUTPUT:

simple calculator.pdf

HTML VALIDATOR:

image

RESULT:

The program for designing a standard calculator using HTML and CSS is executed successfully.

calc's People

Contributors

raghuls2004 avatar selvasachein avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.