Code Monkey home page Code Monkey logo

opcode-open-spring-fest / shapes Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 1.0 63 KB

"Shapes" revolutionizes the study and interaction with geometric shapes by offering a unique and intuitive approach to learning. Users can easily identify shapes by simply entering the number of sides, providing an instant and accurate name for the shape.

JavaScript 0.84% Solidity 99.16%
iiitbh open-spring-fest smart-contracts solidity type-easy blockchain-technology

shapes's Introduction

SHAPES

Introduction โœจ

"Shapes" revolutionizes the study and interaction with geometric shapes by offering a unique and intuitive approach to learning. Users can easily identify shapes by simply entering the number of sides, providing an instant and accurate name for the shape.

Technologies Used ๐Ÿง‘โ€๐Ÿ’ป

  • Solidity

Contact ๐Ÿ“ฑ

If you have any questions or feedback, please reach out to us at [email protected] ๐Ÿ“ง

Setup

To set up shapes on your local machine, follow these steps:

  1. Fork the repository:

    • Click the "Fork" button at the top right corner of this repository's page on GitHub. This will create a copy of the repository in your GitHub account.
  2. Clone the forked repository:

git clone https://github.com/<yourusername>/shapes.git
  1. Navigate to the project directory:
cd shapes
  1. Install Node.js dependencies(make sure node is installed on your laptop):
npm i
  1. Open the contract folder and copy all the contents of the shapes.sol file and paste it on remix (or you can use VS Code but remix ide is recommended). Remix ide(link) : http://lnkiy.in/Remix_ide
  2. Create a new branch for your feature or bug fix.
  3. Make your changes and commit them.
  4. Push to the branch.
  5. Submit a pull request with the issue number.

You are good to go to make your contribution!! All the best!.

shapes's People

Contributors

shobhit15082003 avatar xtwo56 avatar

Forkers

xtwo56

shapes's Issues

[Feature]: Sort in Descending Order

So, what is it about?

Here you are supposed to create a function with the an appropriate name and appropriate modifiers and you have to take 5 string inputs in any order and then you have to sort them according to their number of sides in decreasing order and them return the array of strings which contains the name of the shapes in descending order.

Return type : Array of strings

Code of Conduct

  • I agree to follow this project's Code of Conduct

[Feature]: Which type of triangle

So, what is it about?

Here you are supposed to create a function with the an appropriate name and appropriate modifiers and you have to take three inputs and then you are supposed to check which type of triangle it is i.e. isosceles, scalar or equilateral.

Return type : String

Code of Conduct

  • I agree to follow this project's Code of Conduct

[Feature]: Check whether it is a triangle

So, what is it about?

Here you are supposed to create a function with the an appropriate name and appropriate modifiers and you have to take three inputs and then you are supposed to check whether it is possible to make a triangle from those three sides.

Return type : Bool

Code of Conduct

  • I agree to follow this project's Code of Conduct

[Feature]: Check whether it is a square

So, what is it about?

Here you are supposed to create a function with the an appropriate name and appropriate modifiers and you have to take four inputs and then you are supposed to check whether it is possible to make a square from those four sides.

Return type : Bool

Code of Conduct

  • I agree to follow this project's Code of Conduct

[Feature]: Interior angle

So, what is it about?

Here you are supposed to create a function with the an appropriate name and appropriate modifiers and you have to take 1 inputs of type uint which represents the number of sides of that shape and then you are supposed to print the value of the interior angle of that shape.
Example :
Input: 8
Output:135

Return type : uint

Code of Conduct

  • I agree to follow this project's Code of Conduct

[Feature]: Case Specific

So, what is it about?

Create a function which take a single string input and converts all the uppercase characters in it into lower case and then returns the string with lower case and also you are supposed to integrate this function in all the functions and also you are supposed to remove all the modifiers who showing an error whenever an uppercase character was there instead you are supposed to redirect all the strings to this function to convert them to lowercase first.
Example:
Input: TriAngle
Output: triangle

Input: Triangle
Output: triangle

Return type: String

Note: All easy and medium problems should be encountered first before dealing with this issue.

Code of Conduct

  • I agree to follow this project's Code of Conduct

[Feature]: Check whether it is a rectangle

So, what is it about?

Here you are supposed to create a function with the an appropriate name and appropriate modifiers and you have to take four inputs and then you are supposed to check whether it is possible to make a rectangle from those four sides.

Return type : Bool

Code of Conduct

  • I agree to follow this project's Code of Conduct

[Feature]: Name of the shape

So, what is it about?

Here you are supposed to create a function with the an appropriate name and appropriate modifiers and you have to take one input i.e. of type uint which will the value of the number of sides of that shape and then you are supposed to check which shape has that number of sides.
Example :
Input : 3
Output: triangle

Return type : String

Code of Conduct

  • I agree to follow this project's Code of Conduct

[Feature]: Area of 2D

So, what is it about?

Here you are supposed to create 3 functions with the an appropriate name and appropriate modifiers and you have to take inputs accordingly i.e 2 for triangle(consider right angles triangle) of type uint ,3 for rectangle of type uint and 1 for square of type uint which represents the value of the sides of that shape and then you are supposed to print the area of that shape.

Return type : double/float

Code of Conduct

  • I agree to follow this project's Code of Conduct

[Feature]: Area of 3D

So, what is it about?

Here you are supposed to create 2 functions with the an appropriate name and appropriate modifiers and you have to take inputs accordingly, here you are supposed to return the surface area and volume of Cube and Cuboid .

Return type : Surface area(double/float),Volume(double/float)

Code of Conduct

  • I agree to follow this project's Code of Conduct

[Feature]: Equal

So, what is it about?

Here you are supposed to create a function with the an appropriate name and appropriate modifiers and you have to take 2 inputs one will be of type uint and the other will be of type string and then you are supposed to check whether that shape has the same number of sides as mentioned in the uint input.
Example :
Input: 3,triangle
Output:true

Return type : Bool

Code of Conduct

  • I agree to follow this project's Code of Conduct

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.