Coder Social home page Coder Social logo

geometry-calculator-'s Introduction

Geometry Calculator

This is a program that I created based on an exercise that I had to hand in for my c++ class in school.

Exercise

My exercise asks me to write a program that displays the following menu: Geometry Calculator:

  1. Calculate the area of a circle
  2. calculate the area of a rectangular
  3. calculate the area of a triangle
  4. quit

Enter your choice (1-4)

  • if the user enters 1, then the program should ask for the radius of the circle and then should display the area. use 3.14159 for PI.
  • if the user enters 2, then the program should ask for the width and length of the rectangle and then should display the area.
  • if the user enters 3, then the program should ask for the length of the triangle base and its height and then should display the area.
  • if the user enters 4, then the program should quit.

Usage

  • Copy and paste the code in the compiler and run it.

  • it should help you find the area of a circle, rectangle, and triangle

License

  • Feel free to copy paste and hand it to your professor, il add in another file the pseudo code in case he asks for it.

Extra

To be honest, I really didn't enjoy doing this exercise it was boring and it took me precious hours of time that I could have enjoyed playing with my dog.

But on the other hand, it improved my conditional statement skills and helped me understand more about input validation.

I hope this program will help you get an A++ on your class or it can help you find the area of your coffee mug

geometry-calculator-'s People

Contributors

camilocoo avatar

Watchers

 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.