Posts

JAVA PROGRAMMING LAB(NEP)

 1. Write a simple java application, to print the message, “Welcome to java” public class welcome { public static void main ( String args []) { System . out . println ( "welcome to java" ); } } 2. Write a program to display the month of a year. Months of the year should be held in an array. import java.util.Calendar ; public class dateDemo { private static String [] month ; public static void main ( String [] args ) { Calendar calendar = Calendar . getInstance (); String [] month = { "January" , "February" , "March" , "April" , "May" , "June" , "July" , "August" , "September" , "October" , "November" , "December" }; System . out . print ( "Current Month = " + month[ calendar . get ( Calendar . MONTH )]); } } 3. Write a program to demonstrate a ...

Data Analysis using Python(NEP)

CSV FILE ARE GIVEN END!!!  1.Probability a:Calculating the simple probabilities import pandas as pd df = pd.read_csv( 'train.csv' ) probability_event = df[ 'Survived' ].value_counts() / len (df[ 'Survived' ]) print (probability_event) [note: use csv file according your choice and change Survived as per the csv file] b:Applications of Probability distributions to real life problems (A): Normal Distribution import numpy as np import matplotlib . pyplot as plt mean = 0 std_dev = 1 sample_size = 1000 random_sample = np . random . normal ( mean , std_dev , sample_size ) plt . hist ( random_sample , bins = 30 , density = True , alpha = 0.75 , color = 'blue' ) xmin , xmax = plt . xlim () x = np . linspace ( xmin , xmax , 100 ) p = ( 1 / ( std_dev * np . sqrt ( 2 * np . pi ))) * np . exp ( - ( x - mean ) ** 2 / ( 2 * std_dev ** 2 )) plt . plot ( x , p , 'k' , linewidth = 2 ) plt . title ( "Normal Distribution"...

Wine tool installation

Image
 Wine Tool Installation In Parrot OS  Enter the following commands Step1: sudo apt install wine64 Step2: And enter ("wine") which gives error shown in the image Step3:Now enter ("sudo dpkg --add-architecture i386") and        ("sudo apt-get update && apt-get install wine32") enter this commands and ("sudo apt-get install wine32") Step4:Enter the below command  ("sudo apt install wine32 -t parrot-backports") Step5: Now enter ("wine") in the terminal 

WEB PROGRAMMING LAB (html&php)

 WEB PROGRAMMING LAB(NEP) 1.Create a form with the elements of Textboxes, Radio buttons, Checkboxes, and so on. Write JavaScript code to validate the format in email, and mobile number in 10 characters, If a textbox has been left empty, popup an alert indicating when email, mobile number and textbox has been left empty code: < html > < head > < title > Black Eye Form </ title > < script > function Form () { var name = document . forms [ "myForm" ][ "name" ]. value ; var email = document . forms [ "myForm" ][ "email" ]. value ; var password = document . forms [ "myForm" ][ "password" ]. value ; var phone = document . forms [ "myForm" ][ "phone" ]. value ; if ( name == "" ) { alert ( " name must be filled out" ); return false ; } if ( email == ""...