Skip to main content

Posts

Marksheet program Solution in PHP

WAP to create a mark sheet using five different subjects with the following conditions? 1)  all subject marks should be 0 to 100? 2)  If only one subject mark is <33 then the student will supply. 3)  If all subject marks are>33 then the student pass and display division with percentage? 4)  if the minimum of two subject marks is <33 then the student will fail. 5)  if the student is suppl and the mark is >28 then five bonus marks will be added then the student will pass by grace and grace subject name. 6) display distinction subject name 7) display suppl subject name <?php $m1=40; $m2=40; $m3=94; $m4=35; $m5=93; $s1="PHY"; $s2= "Chem"; $s3="Maths"; $s4="English"; $s5="Hindi"; if(($m1>=0 && $m1<=100) && ($m2>=0 && $m2<=100) && ($m3>=0 && $m3<=100) && ($m4>=0 && $m4<=100) && ($m5>=0 && $m5<=100)) {         $c=...

What is laravel, how to install it?

Laravel is a PHP Web framework that is used to create dynamic web application using PHP Script with MVC Design Pattern. Laravel is open source, most secure and reliable framework of PHP, it provide routing mechanism to create set of route to manage program code. How to install laravel 1)  Install composer first download composer What is Composer? Composer is a dependency manager for a PHP programming language that manages the dependencies of PHP software and required libraries. Nils Adermann and Jordi Boggiano developed the Composer. They started development in April 2011 and first it was released on March 1, 2012. 2) create laravel project composer create-project laravel/laravel scs-app another way composer global require laravel/installer  laravel new scs-app 3) cd scs-app php artisan serve Create First Hello World Program in Laravel go into routes/web.php Route :: get ( '/example' , function ()    {       return "Hello World" ;   });

Multi dimension Array in Java

Multi dimension Array in Java using this array we can store element using rows and columns ,Multi dimension array base index will be started from 0,0 . using this we can create matrix. Syntax of multi dimension array:- Datatype array-name [][] = new Datatype[row][col]; int arr[][] = new int[2][2];   //2 rows and 2 columns int a[][] = {{1,2},{3,4}}; Simple Program of Matrix without user input? class MArr {    public static void main(String args[])    {         int arr[][] = {{1,2},{3,4}};         for(int i=0;i<2;i++)         {            for(int j=0;j<2;j++)              {                System.out.print(arr[i][j]+" ");              }              System.out.println();     ...

Array in Java,What is Array,Array Tutorials in Java,Array Concept in Java,Single Dimension Array,Jagged Array,Multidimension array

Array in Java,What is Array,Array Tutorials in Java,Array Concept in Java,Single Dimension Array,Jagged Array,Multidimension array. Array:-  It is the collection of similar type of elements  which can store multiple values using single variable.Array provide unique index to store element ,base index of array will be started from 0 to size-1. Advantage of array:- 1)  We can easily search and sort the element from array because array store element using proper sequence. 2)  We can store multiple values using single variable in array ,using this we can reduce space complexity of program. 3)  We can reduce extra memory gap of normal variable because array type variable provide contiguous memory allocation . Disadvantage of Array:- 1) Size is mandatory to store data in array. it can not manage infinite data. 2)  We can store only similar type of elements except Object type array. Type of array:- 1)  Single Dimension Array:-   ...

Angular JS Interview Question

Angular JS Interview Question :- ANGULAR JS 1.0 and ANGULAR JS Framework 2.0,4.0,5.0,6.0,7.0 .................................................................................................... Q1 what is difference between Angular JS and normal javascript? Q2 what is directive elements in angular js?       ng-model       ng-bind      ng-repeat      ng-pattern      ng-style     Q3 what is $scope variable in Angular? Q4  what is Angular API? Q5  what is module in Angular JS and How we can create Module? Q6  what is Component and Sub Component and root Component? Q7 what is data binding concept in angular js ,explain one-way and two-way binding with example Q8 what is Property binding and Event binding? Q9 what is dependancy injection in angular JS .how we can implement them Q10 what SPA means Single Page Application? Q 11 what is Routing Concept.ho...

Hibernate cache Code

Hibernate uses the cache concept to reduce the roundtrip from the database server if we want to increase the performance of the application. Type of cache 1)  Primary Cache:-  It will be created implicitly. 2)  Secondary Cache:-  It will be created explicitly. create ehcache.xml <?xml version="1.0"?> <ehcache> <defaultCache maxElementsInMemory="100" eternal="false" timeToIdleSeconds="120" timeToLiveSeconds="200" /> <cache name="scs.Job" maxElementsInMemory="100" eternal="false" timeToIdleSeconds="5" timeToLiveSeconds="200" /> </ehcache> Code under hibernate.cfg.xml:- <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"> <hibernate-configuration> <session-f...

Core Java Interview Question for Experienced Candidate

Core Java Interview Question for an experienced candidate Top 20 Java Interview Question, Check Your Java Skills. 1)  What is annotation in Java, How we can create custom annotation? 2)  What is Reflection API in Java? 3)  How we can create Checked User Define Exception and  Unchecked User Define Exception? 4)  What is Inner class, Local Inner Class, Static Inner Class, Anonymous Class 5)   What is a Generic Class in Java  How we can define Custom Generic Class 6)  How we can Synchronize Array List? 7)   Which is the best Collection class to add and edit elements concurrently? 8)   What is the Marker interface, the difference between annotation and marker Interface? 9)    What will be the output when we call run() manually in Thread? 10)   What is the Design pattern in Java define Creational, Behavioral, and Structural Design Pattern? 11)    Difference between Comparable and Comparator? 12)...