Java Programming for Android App Development: A Case Study - Prof. Shrestha, Assignments of Java Programming

Java Programming 2nd year Assignment Final

Typology: Assignments

2017/2018

Uploaded on 04/27/2023

manish_mahaseth
manish_mahaseth 🇳🇵

9 documents

1 / 170

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Niraj Yadav
ISMT COLLEGE | GAIRIGAUN, TINKUNE
JAVA
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51
pf52
pf53
pf54
pf55
pf56
pf57
pf58
pf59
pf5a
pf5b
pf5c
pf5d
pf5e
pf5f
pf60
pf61
pf62
pf63
pf64

Partial preview of the text

Download Java Programming for Android App Development: A Case Study - Prof. Shrestha and more Assignments Java Programming in PDF only on Docsity!

Niraj Yadav

ISMT COLLEGE | GAIRIGAUN, TINKUNE

Contents

  • [Task 1]............................................................................................................................................
    • Introduction
    • Principles of Java
    • Characteristics and Features of Java........................................................................................
    • Characteristics of Java programming language
  • Conclusion:
  • [Task 2 ].........................................................................................................................................
    • Introduction
    • Memory Management
    • Primitive Data Types
    • Non-Virtual Methods in Java
    • Single Paradigm
    • Exception Handling
    • Closure
    • Floating Point Arithmetic.........................................................................................................
    • Look and feel
    • Performance
  • Conclusion.....................................................................................................................................
  • [Task 3]..........................................................................................................................................
    • Introduction
    • Pseudo - Code
    • Pseudo-Code for application of Asian Pharmaceuticals
    • Algorithm
    • Algorithm for application of Asian Pharmaceuticals
    • Flowchart...................................................................................................................................
  • Conclusion.....................................................................................................................................
  • [Task 4]..........................................................................................................................................
    • Introduction
    • Tier Architecture
    • Components Used for Asian Pharmacy Application Design
    • Data Dictionary
    • Data Methods and Variables
    • User Table
    • Add Product Table
    • Sales Table
    • File Structure
    • Classes with their respective objects
    • Inbuilt Classes
    • User Created Classes
    • Methods and Properties of Every Class
  • Conclusion.....................................................................................................................................
  • [Task 5: A]
    • Introduction:
    • Implementation of the Java programming solution:
    • Login Form
    • Signup Form..............................................................................................................................
    • Navigation Drawer
    • Add new product Form
    • Sale Form
    • Sale Record Table
    • Search Form
    • Expiry Form
    • Stock
    • Logout
    • Relationship between objects to implement design................................................................
    • Schema Diagram:
    • Justification of Asian Pharmaceuticals Schema Diagram......................................................
  • Conclusion.....................................................................................................................................
  • [Task 5: B].....................................................................................................................................
    • Introduction
    • Control Structure
    • Selection Structure....................................................................................................................
    • Sequential Structure..................................................................................................................
    • Iteration Structure:
    • Selection Structure....................................................................................................................
    • If Statements
    • If Else Statement
    • If Else If Statement
    • Nested If Statetment
    • Switch Statement:
    • If statement used in Asian Pharmaceuticals application
    • If Else statement used in Asian Pharmaceuticals application
    • If Else If statement used in Asian Pharmaceuticals application
    • Iteration Structure
    • For Loop used in Asian Pharmaceuticals application
    • Do While Loop used in Asian Pharmaceuticals application
    • Event Handlers
    • Event Handlers used in Asian Pharmaceutical application
    • Error Handling and Reporting
    • Use of Try and Catch for error handling
    • Reporting Mechanism
    • Integral Development Environment
    • Android Studio
    • System Requirements for Android Studio
    • Screen Template for Android Studio.......................................................................................
    • Screen template of the project including code used
    • Login Page
    • Sign Up Page.............................................................................................................................
    • Navigation Drawer
    • Add new product Form
    • Sale Form
    • Sale Record Table
    • Search Form
    • Expiry Form
    • Stock
    • Logout
  • Conclusion...................................................................................................................................
  • [Task 6]........................................................................................................................................
    • Introduction
    • Assessment of Java Programming Solution
    • Login Page
    • Navigation Support
    • Search Product Activity Page:
    • Testing
    • Types of system testing
    • COMPATIBILITY TESTING
    • INTEGRATION TESTING
    • STRESS TESTING
    • UNIT TESTING
    • Testing Log
    • Unit Testing
    • Integrated Testing
    • Stress Testing
    • Compatibility Testing
    • Critical review.........................................................................................................................
    • Advantages of the current system
    • Disadvantages of the system
    • Boundaries of the system
  • Conclusion...................................................................................................................................
  • [Task 7]........................................................................................................................................
    • Introduction
    • Independent Feedback
    • Project Description
    • Purpose of the developed
    • Important Features of the Project
    • The important features
    • Feedback Evaluation
    • Interface
    • Security....................................................................................................................................
    • Recommendation
  • Conclusion...................................................................................................................................
  • [Task 8]........................................................................................................................................
    • Introduction
    • How to Install the Asian Pharmaceutical Application
    • How to Login
    • How to search product details?
    • How to sale product?
    • How to view sale record?
    • How to view Expired product?
    • How to view stock record?.....................................................................................................
    • How to update and delete the details?
    • How to Logout?
  • Conclusion:
  • [Task 9]........................................................................................................................................
  • Introduction
    • System Design:
      • Planning.................................................................................................................................
      • Problem Definition.................................................................................................................
      • Pseudocode for Asian Pharmaceuticals Management System
      • Algorithm for Asian Pharmaceuticals Management System
      • Update Product:
      • Sales Bill:
      • Sales Record:
      • Flowchart of Asian Pharmaceuticals Application:
      • Use Case Diagram:
      • ER-Diagram:...........................................................................................................................
      • DFD Diagram:.........................................................................................................................
      • Android Studio:......................................................................................................................
      • SQLite Database:....................................................................................................................
      • Advantage of Using SQLite Database:.....................................................................................
      • SQLite Database Implementation in Asian Pharmaceutical Application:
      • Android Virtual Device (AVD):
    • Work Break down Structure:
    • Gantt Chart:
    • Data and information collection mechanism:
      • Observation
      • Questionnaires
      • Results of Questionnaires
    • Implementation
      • Designing of layout
    • Choice of tool..........................................................................................................................
      • Purpose
      • Scope of the project
    • Testing
    • Deployment
    • Techniques for Maintenance
  • Conclusion.......................................................................................................................................
  • Reference

Encapsulation Encapsulation is one of the four fundamental OOP concepts. The other three are inheritance, polymorphism, and abstraction. Encapsulation in Java is a mechanism of wrapping the data (variables) and code acting on the data (methods) together as a single unit. It declares the variables of a class as private.

Fig: 1 Encapsulation in javaInheritance Inheritance is one of the component of Object-Oriented Programming (OOPs).Inheritance permits a class to utilize the properties and strategies for another class. At the end of the day, the determined class acquires the states and practices from the base class. The determined class is likewise called subclass and the base class is otherwise called super-class. The inferred class can include its own extra factors and strategies. These extra factor and techniques separates the got class from the base class. The example of Inheritance is as follows:

The example of Polymorphism is: Fig: 2 Polymorphism Characteristics and Features of Java Java has turned out to be well known language nowadays. The credit for Java's fast ascent and wide acknowledgment goes to its plan and programming highlights. Its "Compose Once, Run Anywhere" has pulled in developers towards it. As expressed in the Java language white paper by Sun, Java is basic, protest arranged, disseminated, deciphered, vigorous, secure,

architecture neutral, convenient, superior, multithreaded, and dynamic. The features of Java are as follows:-  Java is Simple There are different features that makes the java as a basic language. Since Java is anything but difficult to learn and created by taking the best elements from different for the language most part like C and C++. It is anything but difficult to learn Java who know about protest arranged programming ideas. Java gives the mistake free advancement environment for software engineer since it gives programmed memory administration by improvement environment and dispose of pointers.  Java is Distributed: The generally utilized protocol like HTTP and FTP are produced in java. Web software engineers can call works on these protocols and can get to the records front remote machine on the web as opposed to composing codes on their nearby system. iii. Java is Secure: Java is secure since it maintains a strategic distance from express pointer and program keeps running inside virtual machine sandbox. Other than this, class loader includes security by isolating the bundle for the classes of the nearby document system from those that are foreign made from system sources. Bytecode verifier likewise checks the code parts for unlawful code that can abuse get to appropriate to objects. Subsequently these securities are given by java language. Some security can likewise be given by application engineer through SSL, JAAS, and cryptography.  Java is portable: Many kind of computer and operating system are utilized for projects by porting an interpreter for the Java Virtual Machine to any computer hardware/operating system, one is guaranteed that all code

Fig:- Example of ConstructorClass Destructor: A destructor is a special part capacity of a class that is executed at whatever point a question of its class leaves scope or at whatever point the erase expression is connected to a pointer to the protest of that class. A destructor will have identical name as the class prefixed with a tilde (~) and it can neither give back an esteem nor would it be able to take any parameters. Destructor can be extremely helpful for discharging assets before leaving the program like shutting records, discharging recollections. Following example explains the concept of destructor: Fig:- Destructor exampleVariables:

A class can be characterized as a layout/diagram that describes the conduct/express that the question of its type support. Its example are as follows: Fig: ClassObject: Objects have states and practices. Case: A dog has states - shading, name, breed and additionally practices - swaying, barking, and eating. Object is an example of a class. Object can be physical or logical. Fig:- Object example Conclusion: In this task, I have explained principles, characteristics and features. Along these lines, experiencing this errand Asian Pharmaceuticals could realize what programing language has been utilized to build up their most anticipated application.

[Task 2 ] Critically evaluate the environmental flexibility of programming in Java. [2.1] Consider : Memory management, Primitives vs. objects / auto-boxing, Non- virtual methods, Single paradigm, Exception handling, Closure, Floating point arithmetic, look and feel, Performance. Introduction After the reviews and research has been done, it is found that the library administration system has not been up to the standard of the school. Along these lines, the school has employed me as a system fashioner and engineer to build offices and state of the library by building up a system that could deal with every one of the records of the library and the system would work easily even in no-lights condition. Consequently, Java programming has been chosen to build up the system. What's more, it is imperative to get comfortable with the idea of Java programming language which is done in past some portion of this report. Other than this, it is additionally vital to assess the natural adaptability of Programming in Java. The significant goal of assessing or dissecting the natural adaptability is to perceive the advantages, dangers and restrictions that Programming in Java can posture while building up the system.