Giter VIP home page Giter VIP logo

mryashaditya007 / hacktoberfest2023 Goto Github PK

View Code? Open in Web Editor NEW
18.0 1.0 169.0 41.15 MB

Opportunity to start open source and PR experience

License: MIT License

Python 3.49% Java 0.82% C++ 1.61% Jupyter Notebook 93.18% C 0.89% JavaScript 0.01%
beginner-friendly contributions-welcome first-contributions freecodecamp good-first-issue hacktoberfest open-source hacktoberfest-accepted hacktoberfest2022

hacktoberfest2023's Introduction

Hi there ๐Ÿ‘‹

hacktoberfest2023's People

Contributors

akshayrajn avatar ayushharode avatar banerjee2021 avatar bhaswatir avatar codedmachine111 avatar e0nia avatar goswamiprad avatar grax01 avatar hamilton122002 avatar hariom09090 avatar harnoor007 avatar iamakashrout avatar jcgaming-official avatar maheshkanhere avatar mohit1469 avatar mryashaditya007 avatar nrhitik avatar om-bhandari-29 avatar omgaydhane avatar ritika-budhiraja avatar sayam241020 avatar sharayu1071 avatar soumojitshome2023 avatar subhro1530 avatar sugam-arora avatar tandrimasingha avatar thedarklord100 avatar vaibhav211002 avatar vishal10kesharwani avatar yashwantaditya009 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

hacktoberfest2023's Issues

Resolve NullPointerException in calculateTotalPrice Function (Java)

Path - Problems/ShoppingCart.java

Issue Description:
The calculateTotalPrice function in the ShoppingCart.java file is throwing a NullPointerException when an item in the shopping cart has a null price. This issue needs to be resolved to ensure the correct calculation of the total price.

Steps to Reproduce:

Execute the calculateTotalPrice function in Java with a shopping cart containing an item with a null price.
Expected Behavior:
The function should handle items with null prices gracefully and calculate the total price correctly.

Actual Behavior:
The function throws a NullPointerException when encountering an item with a null price, causing the calculation to fail.

Proposed Solution:
To resolve this issue, we need to modify the calculateTotalPrice function in the ShoppingCart.java file to check for null prices before adding them to the total. If an item has a null price, it should be skipped in the calculation.
This modification ensures that items with null prices are excluded from the calculation, preventing the NullPointerException.

Additional Information:

Relevant code file: ShoppingCart.java
Environment: Java 8, ShoppingCart version 1.2.3
Labels: bug, NullPointerException

Rock-paper-scissor game :)

Rock-paper-scissors is a hand-based game between two players, in which each player simultaneously forms one of three shapes with an outstretched hand. These shapes are "rock" (a closed fist), "paper" (a flat hand), and "scissors" (a fist with the index and middle fingers extended).

The game has only three possible outcomes:

Rock beats scissors (rock crushes scissors)
Scissors beats paper (scissors cuts paper)
Paper beats rock (paper covers rock)
If both players choose the same shape, the game is a tie.

The game is often played as a best-of-three series, but it can also be played as a single round.

Rock-paper-scissors is a simple game, but it is also a lot of fun. It is a great game to play with friends and family, and it can be enjoyed by people of all ages.

Sources
en.wikipedia.org/wiki/Rock_paper_scissors
apkpure.com/rps-rock-paper-scissors/com.kixes.rps

profile picture
make the intro of the game such that I making that game in python language

View other drafts

Sure, here is a more intro of the game explaining how I'm making it in Python:

I'm making a rock-paper-scissors game in Python. This is a classic two-player game where each player chooses one of three shapes: rock, paper, or scissors. The winner is determined by the following rules:

Rock beats scissors
Scissors beats paper
Paper beats rock
If both players choose the same shape, the game is a tie.

I'm using Python to make this game because it is a popular and versatile language. It is also relatively easy to learn, making it a good choice for beginners.

To make the game, I'll start by importing the random module. This module allows us to generate random numbers, which we'll need to use to determine the computer's choice.

Next, I'll create a function to generate a random choice for the computer. This function will simply return one of the three shapes at random.

Then, I'll create a function to get the player's choice. This function will prompt the player to enter their choice and then return it.

Finally, I'll create a function to determine the winner of the game. This function will take the player's choice and the computer's choice as input and then return the winner.

Once I have all of these functions written, I can put them together to make the game. The game loop will simply prompt the player to enter their choice, generate the computer's choice, and then determine the winner. The game will continue until one player wins three rounds.

Your review and insights are vital as we enhance the repository's utility.

Happy coding :)

Add Fast Modular Exponentiation in C++ Folder

Fast Modular Exponentiation is a high-performance technique used in computer science and cryptography to swiftly compute massive modular exponentiations. It is especially handy when working with big numbers since it decreases the amount of multiplications and intermediate results required to perform the modular exponentiation.

Calculator in CPP

I have created calculator in cpp please give me the role so that I can merge into your Repo

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.