Giter Club home page Giter Club logo

hactoberfest_challenge's Introduction

Hacktoberfest 2022

Prizes

In addition to Hacktoberfest's official T-shirts, the first 20 contributors will receive swag from PayPal! We welcome your contributions and are excited to see your pull requests!

As a bonus, a randomly selected contributor will receive a TimBuk2 Parkside Backpack!

Repos

You're encouraged to submit PRs for any Issues with the "hacktoberfest" label! These repositories power PayPal's JavaScript SDK used by millions of merchants and users.

  • You must open one pull request (PR) between October 1-31, 2022.
  • The PR must be associated with an Issue with a "hacktoberfest" label.

Other notes

  • A PR may be marked as invalid if it is determined to be spam (Ex: auto-generated by a bot) or isn't associated with a "hacktoberfest" labeled Issue.
  • Repository maintainers reserve the right to accept or not accept pull requests for any reason.
  • If you are identified as one of the prize winners, your swag will start shipping in November 2022.

hactoberfest_challenge's People

Contributors

abhishekiiitbh2903 avatar aditya7302 avatar akshatkumar27 avatar anant-mishra1729 avatar anilshetty20 avatar animeshsahu80 avatar anubhavdevv avatar jaanvi02 avatar jayesh-jainx avatar kaushalrr006 avatar kumarakshatji avatar lostcatinlostcity avatar md571 avatar mohdraheez06 avatar paras8055 avatar parth24917 avatar pawar-jaydeep avatar pratik-shrivastava avatar shant-singh avatar shantanuban09 avatar shiwani-sahu avatar shyam0169 avatar smrobiulalam avatar sneha-2510 avatar srajansohani avatar switchalpha avatar thecleveridiott avatar vedikasangle avatar vivekthedev avatar wajeehacom avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

hactoberfest_challenge's Issues

inheritance part 2

We want to store the information of different vehicles. Create a class named Vehicle with two data member named mileage and price. Create its two subclasses
*Car with data members to store ownership cost, warranty (by years), seating capacity and fuel type (diesel or petrol).
*Bike with data members to store the number of cylinders, number of gears, cooling type(air, liquid or oil), wheel type(alloys or spokes) and fuel tank size(in inches)
Make another two subclasses Audi and Ford of Car, each having a data member to store the model type. Next, make two subclasses Bajaj and TVS, each having a data member to store the make-type. Now, store and print the information of an Audi and a Ford car (i.e. model type, ownership cost, warranty, seating capacity, fuel type, mileage and price.) Do the same for a Bajaj and a TVS bike.

inheritance question in c++

We want to calculate the total marks of each student of a class in Physics, Chemistry and Mathematics and the average marks of the class. The number of students in the class are entered by the user. Create a class named Marks with data members for roll number, name and marks. Create three other classes inheriting the Marks class, namely Physics, Chemistry and Mathematics, which are used to define marks in individual subject of each student. Roll number of each student will be generated automatically.

Classes and Object in C++

Create two classes named Mammals and MarineAnimals, Create another class named BlueWhale which inherits both the above classes.
Now, create a function in each of these classes which prints "I am mammal", "I am a marine animal" and "I belong to both the categories: Mammals as well as Marine Animals" respectively.
Now, create an object for each of the above class and try calling
1 - function of Mammals by the object of Mammal
2 - function of Marine Animal by the object of MarineAnimal
3 - function of BlueWhale by the object of BlueWhale
4 - function of each of its parent by the object of BlueWhale

Inheritance in C++

We want to calculate the total marks of each student of a class
in Physics, Chemistry and Mathematics and the average marks of the
class. The number of students in the class are entered by the user.
Create a class named Marks with data members for roll number,
name and marks. Create three other classes inheriting the Marks
class, namely Physics, Chemistry and Mathematics, which are used to
define marks in individual subject of each student. Roll number of
each student will be generated automatically.

Dynamic Programming Problem - Minimum Steps to reach 1

Coding Problem
Problem Statement: Min Steps to one
Problem Level: EASY
Problem Description:
Given a positive integer 'n', find and return the minimum number of steps that 'n' has to take to get reduced to 1. You can perform any one of the following 3 steps:
1.) Subtract 1 from it. (n = n - ­1) ,
2.) If its divisible by 2, divide by 2.( if n % 2 == 0, then n = n / 2 ) ,
3.) If its divisible by 3, divide by 3. (if n % 3 == 0, then n = n / 3 ).

Write brute-force recursive solution for this.
Input format :
The first and the only line of input contains an integer value, 'n'.

Output format :
Print the minimum number of steps.

Constraints :
1 <= n <= 200

Time Limit: 1 sec

Sample Input 1 :
4

Sample Output 1 :
2

Explanation of Sample Output 1 :
For n = 4
Step 1 : n = 4 / 2 = 2
Step 2 : n = 2 / 2 = 1

Sample Input 2 :
7

Sample Output 2 :
3

Explanation of Sample Output 2 :
For n = 7
Step 1 : n = 7 ­- 1 = 6
Step 2 : n = 6 / 3 = 2
Step 3 : n = 2 / 2 = 1

inheritance part3

Create a class named Shape with a function that prints "This is a shape". Create another class named Polygon inheriting the Shape class with the same function that prints "Polygon is a shape". Create two other classes named Rectangle and Triangle having the same function which prints "Rectangle is a polygon" and "Triangle is a polygon" respectively. Again, make another class named Square having the same function which prints "Square is a rectangle". Now, try calling the function by the object of each of these classes

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.