Giter Club home page Giter Club logo

covid-vaccine-javaproject's Introduction

covid-vaccine-JavaProject

Covid Vaccine Cerificate Generator

This project can be used to generate the covid vaccine certificate and and also the RT-PCR test Report.

vaccine.java file govInfo.java is the imported package (ImportedPackage) class in the vaccine class.

Firstly when we run the program we need to authorize ourself by entering the correct username and password.(username- user123 password-user123) if any user enters anything other than these in those columns he wont be able to login into the system. This is done by the auth class.it has default constructor and a parameterized constructor also here String handling function is used equals inside the method boolean check which return true/false as per the value entered by the user.

Then there is a class PersonalInformation which asks for the personal information of the user ,name,age,mobileNumber,aadhar number to uniquely define a user for vaccination and RTPCR test.again, it also has a default constructor and parameterized constructor.and it has a showReport() to display all the information entered by the user.here method overloading is shown in showReport() method.

Then comes the vaccineDetails class which inherits the personalDetails class as the personalInformation need not to be entered again n again,this is done by the super() keyword.also new attributes are userID,vacciienName,doseCount,centre. It also has the showReport function but this time parameters are passed in the showReport(days,feedback) function - this is known as method overriding .

Then comes the RTPCR class which also extends personalDetails class and all the attributes of personalDetails class are taken by super() keyword.New attributes are sampleID,sampleCollectionDate,resultDate,centre. also like the vaccineDetails class it also has the showReprt() method and here also it is overridden.

Note - The sampleID and userID are randomly generated alphanumeric 10 digit random String which is coded in this program.So that every time a new and unique userID and sampleID is shown. RandomString() method is made.

Then comes the mobileSMS abstract class which is likely to show that after vaccination or RTPCR test user is sent a message by the govt on their phones. As it an abstract class so its methods sendSMSforVaccine and sendSMSforRTPCR cannot be used by making its objects. so generateMessage classes that inherits the abstract mobileSMS class is used to the above methods.

ifpositive interface is made to show the guidelines for the ones who are found covid positive as per the RTPCR test. showPositiveGuidelines() method is just declared in the interface ifpositive

covidMeasure class which implemnets the ifPosiitve interface is made and the showPositiveMeasures() body is entered inside it.

importedpackage is created in which there is govInfo.java class which has all the imp covid measures links that can be helpful in this pandemic situation. govInfo class is made which extends the Thread class and has a run() function inside and shows the links per 1 sec. this govInfo is called in the vaccine.java file anmd thread is started by importing the package.

import importedpackage.*.

Finally a creator class is made to display the name,usn,dept of the creator.This class uses object as parameter concept. display(creator c) is created to display the developer credentials.

Total Concepts used-

Abstraction- Classes.
Scope and Lifetime of variables.
Declaring objects.
Instance Variables of different data types.
Constructors/Methods.
'this' keyword.
Inheritance.
Overloading (Constructors/Methods)
Overriding.
Objects as parameters.
Access control mechanism.
Use of 'super'.
Packages.
Interfaces.
Exception Handling.
Creation of thread to execute a certain process.

covid-vaccine-javaproject's People

Contributors

im-rahul-raj 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.