Giter Site home page Giter Site logo

rajnish254 / stockofsentence Goto Github PK

View Code? Open in Web Editor NEW

This project forked from subham-maity/stockofsentence

0.0 0.0 0.0 36.98 MB

Basic Random Sentence Generator from Your Own Data Set ( You should update your database once a day using online IDE, and you should run the program daily to refresh your stock of data )

Home Page: https://subham-maity.github.io/StockOfSentence/

JavaScript 37.46% Java 4.88% CSS 45.19% HTML 12.47%

stockofsentence's Introduction

  • ๐Ÿ˜Ž With this app, you can generate random sentences that you already know every day in order to improve your sentence comprehension.

Can you tell me why we need this app?

  • ๐Ÿ˜Ž As you watch a movie or read a book, you might find some interesting sentences. Save them to your own database, and this app will help you recall them.

Random Sentence Generator V 0.1 Video and Now Already Updated so Check here ๐Ÿ‘ˆ

Screenshot.2022-08-02.195328.mp4

Could you please tell me how I can add my sentence to this website?

  • ๐Ÿ˜Ž๐Ÿ‘‡

guide


Basic Random Sentence Generator from Your Own Data Set -

The purpose of this code is for beginners who want to keep motivated to code by making their own dataset and adding sentences on a regular basis as well as increase the stock of sentences.

Note:

  • You should update your database once a day using online IDE, and you should run the program daily to refresh your stock of data
  • Adding and memorizing one sentence every day gives you the ability to learn 365 sentences in a year if you double or triple it, it will increase your stock of sentences by twice or three times.

Basic Concept of this App - In JAVA (Structure of the code is given below) - Clean Code

In our website we use the following structure of the code -

import java.util.Random;
// basic random sentence generator in from  your own data set
public class CodeXam {

//========================================================================================================================================================
    /*
       RULE 0:  ADD MOVIE NAME WITH LINE AND MEANING OF THE LINE

      RULE 1 : Replicate LAST Line from DATA SET - THEN CHANGE THE LINE NUMBER(STRING REFERENCE) TO MATCH THE DATA SET AND ADD YOUR DATA ON THIS STRING

      RULE 2 : Replicate LAST Line from OPERATE FUNCTION - THEN REPLACE THE NEXT NUMBER IN CASE FUNCTION AND CHANGE THE LINE NO(STRING REFERENCE)
     * */
//=======================================================================================================================================================

    // DATA ADD WITH COUNTING - DATA SET
    public static void main(String[] args) {

        int row_increase = 0;
        String line1 = "The quick brown fox jumps over the lazy dog";
        String meaning1 = "A sentence";
        row_increase++;


        String line2 = "The quick brown fox jumps over the lazy dog 2";
        String meaning2 = "A sentence 2";
        row_increase++;


        String line3 = "The quick brown fox jumps over the lazy dog 3";
        String meaning3 = "A sentence 3";
        row_increase++;



        //______________________________________________________________________________________________________________________________
        //______________________________________________________________________________________________________________________________



        //PRINTING TOTAL DATASET
        System.out.println("Total Dataset Added: " + row_increase);


        //______________________________________________________________________________________________________________________________
        //______________________________________________________________________________________________________________________________




        //ADDING DATASET TO RANDOM FUNCTION - OPERATE FUNCTION
        Random rd = new Random();//random dataset of grammar line
        int comp_input = rd.nextInt(row_increase); //taking input from the computer

        switch (comp_input) {
            case 0: { // if our random program generate zero
                System.out.println(comp_input + " No Line. " + line1 + "\n" + "Hinglish meaning of this line  : " + meaning1);
            }
            break;


            case 1: { // if our random program generate one
                System.out.println(comp_input + " No Line. " + line2 + "\n" + "Hinglish meaning of this line  : " + meaning2);
            }
            break;


            case 2: { // if our random program generate two
                System.out.println(comp_input + " No Line. " + line3 + "\n" + "Hinglish meaning of this line  : " + meaning3);
            }
            break;
       }
    }
}

stockofsentence's People

Contributors

subham-maity avatar omm2005 avatar immayurpanchal avatar satyamrs00 avatar vladencode avatar abhimishra-now avatar aishaa-26 avatar anuragh2002 avatar rohitsinghind avatar falconcode16 avatar geetanjaligupta123 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.