Wednesday 30 December 2015

Asp.net & MVC Lab@16

1.As a part of the software development team, you have been assigned the task of deploying the Web application for GiftGallery on an IIS server. You have decided to test the deployment on the IIS server on your local machine and make any required change before deploying it to the production server. 

Prerequisite: To perform this activity, you must be logged on as the Administrator. In addition, to perform this activity, you need to use the GiftGallery.zip file.


Ans.https://drive.google.com/open?id=0B-yL1mP3zqTbZ3dfQlpGek4wOHc

2.As a part of the software development team, you have been assigned the task of deploying the Web application for GiftGallery on an IIS server by creating a deployment package.


 Prerequisite: To perform this activity, you must be logged on as the Administrator. In addition, you need to use the GiftGallery.zip file.


Ans.https://drive.google.com/open?id=0B-yL1mP3zqTbWnhEZkNCcWtNUms

Monday 21 December 2015

C# Notes & Sum Projects.


  • Days_Week


using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            int num;
            Console.WriteLine("Enter a number between 1 to 7");
            num = Convert.ToInt32(Console.ReadLine());
            switch (num)
            {
                case 1:
                    Console.WriteLine("Monday");
                    break;
                case 2:
                    Console.WriteLine("Tuesday");
                    break;
                case 3:
                    Console.WriteLine("Wednesday");
                    break;
                case 4:
                    Console.WriteLine("Thursday");
                    break;
                case 5:
                    Console.WriteLine("Friday");
                    break;
                case 6:
                    Console.WriteLine("Saturday");
                    break;
                case 7:
                    Console.WriteLine("Sunday");
                    break;
                default:
                    Console.WriteLine("You have entered an invalid number");
                    break;
            }
            Console.ReadLine();

        }
    }
}

  • divisibleby 5 :-
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            int a ;
            Console.WriteLine("Enter any number");
            a = Convert.ToInt32(Console.ReadLine());
            if (a % 5 == 0)
            {
                Console.WriteLine("The number is divisible by 5");
            }

            else
                {
                    Console.WriteLine("The number is not divisible by 5");
            }

            Console.ReadLine();

        }
    }
}

  • Even_Odd


using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            int i, num;
            Console.WriteLine("Enter five numbers");
            for (i = 0; i <= 4; i++)
            {
                num = Convert.ToInt32(Console.ReadLine());
                if (num % 2 == 0)
                {
                    Console.WriteLine("This number is EVEN");
                }
                else
                {
                    Console.WriteLine("This number is ODD");
                }
            }
            Console.ReadLine();
        }
    }
}


  • Genric


using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication1
{
    public class classData<T>
    {
        public T data;
        public T value
        {
            get
            {
                return this.data;
            }
            set
            {
                this.data = value;
            }
        }
    }


    class Test
    {
        static void Main(string[] args)
        {
            classData<string> name = new classData<string>();
            name.value = ".net";
            classData <float> version = new classData<float>();
            version.value = 4.5F;
            Console.WriteLine(name.value);
            Console.WriteLine(version.value);
        }
    }
}

  • Hello Print :-

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Hello");
            Console.ReadLine();
        }
    }
}

  • inheritance


using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

            class Base
            {
                public Base()
                {
                    Console.WriteLine("Constructor of base class");
                }
                ~Base()
                {
                    Console.WriteLine("Destructor of Base");
                }
            }
        class Derived : Base
        {
            public Derived()
            {
                Console.WriteLine("Constructor of Derived");
            }
            ~Derived()
            {
                Console.WriteLine("Destructor of Derived");
            }
        }
        class BaseDrived
        {
            static int Main(string[] args)
            {
                Derived obj = new Derived();
                return 0;
            }
        }


  • Largest_among_10Nums


using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            int i, num=0, large=0;
            Console.WriteLine("Enter 10 +ve numbers");
            for (i = 0; i <= 9; i++)
            {
                num = Convert.ToInt32(Console.ReadLine());
                if (num > large)
                {
                    large = num;
                }
            }
            Console.WriteLine("The largest number entered is = " + large);
            Console.ReadKey();
        }
    }
}


  • lyfcircle

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Destructors
{
    class Calculator
    {
        static int number1, number2, total;
        public void AddNumber()
        {
            total = number1 + number2;
            Console.WriteLine("The Result is {0}", total);
        }
        Calculator()
        {
            number1 = 20;
            number2 = 30;
            total = 0;
            Console.WriteLine("Constructor Invoked");
        }
        ~Calculator() 
        {
            Console.WriteLine("Destructor Invoked ");
        }
        static void Main(string[] args)
        {
            Calculator c1 = new Calculator();
            c1.AddNumber();
            Console.ReadLine();
        }
        Console.ReadKey();

    }
}

  • Num_Pat1
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            int i, j, n;
            Console.WriteLine("Enter the number of rows");
            n = Convert.ToInt32(Console.ReadLine());
            for (i = 1; i <= n; i++)
            {
                for (j = 1; j <= i; j++)
                {
                    Console.Write("1");
                }
                Console.WriteLine();
            }
            Console.ReadLine();
        }
    }
}


  • Num_Pat2

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            int i, j, n;
            Console.WriteLine("Enter the number of rows");
            n = Convert.ToInt32(Console.ReadLine());
            for (i = 1; i <= n; i++)
            {
                for (j = 1; j <= i; j++)
                {
                    Console.Write(j);
                }
                Console.WriteLine();
            }
            Console.ReadLine();
        }
    }
}


  • Num_Pat3

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            int i, j, n, k = 1;
            Console.WriteLine("Enter the number of rows");
            n = Convert.ToInt32(Console.ReadLine());
            for (i = 1; i <= n; i++)
            {
                for (j = i; j <= 2 * i - 1; j++)
                {
                    Console.Write(k);
                    k++;

                }
                Console.WriteLine();
            }
            Console.ReadLine();
        }
    }
}




  • Num_Pat4


using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            int i, j, k, n,p=1;
            Console.WriteLine("Enter the number of rows");
            n = Convert.ToInt32(Console.ReadLine());
            for (i = 1; i <= n; i++)
            {
                for (j = 1; j <= n - i; j++)
                {
                    Console.Write(" ");
                }
                for (k = 1; k <= 2 * i - 1; k++)
                {
                    Console.Write(p);
                    p++;
                }
                Console.WriteLine();
            }
            Console.ReadLine();
        }
    }
}



  • object

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Calc
{
    class Calculator
    {
        int num1, num2, total;
        public void initialize()
        {
            num1 = 10;
            num2 = 20;
        }
        public void addnum()
        {
            total = num1 + num2;
        }
        public void displaynum()
        {
            Console.WriteLine(" The total is  :" + total);

        }

        static void Main(string[] args)
        {
            Calculator cl = new Calculator();
            cl.initialize();
            cl.addnum();
            cl.displaynum();
            Console.ReadLine();

        } 
    }
}


  • Pro_Div_Mod_2Nums


using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            int a, b, pro, div, mod;
            Console.WriteLine("Enter two numbers");
            a = Convert.ToInt32(Console.ReadLine());
            b = Convert.ToInt32(Console.ReadLine());
            pro = a * b;
            div = a / b;
            mod = a % b;
            Console.WriteLine("The Product of the numbers is = " + pro);
            Console.WriteLine("The Division of the numbers is = " + div);
            Console.WriteLine("The Modulus of the numbers is = " + mod);
            Console.ReadLine();
        }
    }
}


  • Sum_Avg_5Nums

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            int a, b, c, d, e, sum;
            float avg;
            Console.WriteLine("Enter Five Numbers");
            a = Convert.ToInt32(Console.ReadLine());
            b = Convert.ToInt32(Console.ReadLine());
            c = Convert.ToInt32(Console.ReadLine());
            d = Convert.ToInt32(Console.ReadLine());
            e = Convert.ToInt32(Console.ReadLine());
            sum = a + b + c + d + e;
            avg = sum / 5;
            Console.WriteLine("The Sum of numbers is =" + sum);
            Console.WriteLine("The Average of numbers is =" + avg);
            Console.ReadLine();
        }
    }
}

Friday 18 December 2015

LBEPS Notes 2

 1.Draw a flowchart to accept the principle, rate, and time values and display the simple interest.


Ans.




2.         Draw a flowchart that accepts a number and displays its cube.

Ans




3.         Draw a flowchart that accepts the length and breadth of a rectangle and displays its area and perimeter.


Ans



4.   Draw a flowchart that accepts a number and checks whether it’s positive, negative, or zero.

Ans





5.    Draw a flowchart that accepts a number and checks if the number is prime.


Ans





6.   Draw a flowchart that prints the following Fibonacci series: 0 1 1 2 3 5 8.


Ans




7.   Draw a flowchart that prints the following series: 1 2 4 8 16 32


Ans



LBEPS Notes 1


1..LBEPS_01_Let's Practice_Solution




1.          Identify the input, processing, and output phases in the following tasks:
l   Calculating the sum of two numbers using a calculator.

Solution:
w   Input:  
First number
‘+’ operator
Second number
‘=’ operator
w   Process:
Calculation of the sum
w   Output:
Sum of the two numbers

l   Obtaining the juice of a fruit using a juicer machine.

Solution:
w   Input:
Fruit
w   Process:
Extraction of the juice
w   Output:
The juice of the fruit

l   Creating knitwear.

Solution:
w   Input:
Knitting wool
w   Process:
Knitting the sweater
w   Output:
Sweater or knitwear

l   Baking bread.

Solution:
w   Input:
Flour, water, flat base, and rolling pin

w   Process:
Kneading the dough using flour and water
Rolling the bread
Baking the bread
w   Output:
Bread

l   Washing clothes in a washing machine.

Solution:
w   Input:
Dirty clothes
Detergent
Water
w   Process:
Washing the clothes
w   Output:
Clean clothes
1.2 Let’s Practice

1.          Write an algorithm to find out whether a number entered by a user is divisible by 5.

Solution:

Step 1: Start the algorithm.
Step 2: Accept a number.
Step 3: Divide the number by 5.
Step 4: If the remainder is 0, the number is divisible by 5.
Step 5: If the remainder is not 0, the number is not divisible by 5.
Step 6: End the algorithm.

2.         Write an algorithm to display the first 10 multiples of 9.

Solution:
Step 1: Start the algorithm.
Step 2: Display 9*1.
Step 3: Display 9*2.
Step 4: Display 9*3.
Step 5: Display 9*4.
Step 6: Display 9*5.
Step 7: Display 9*6.
Step 8: Display 9*7.
Step 9: Display 9*8.
Step 10: Display 9*9.
Step 11: Display 9*10.
Step 12: End the algorithm.

3.         Write an algorithm to find out whether a number entered by a user is even or odd.

Solution:
Step 1: Start the algorithm.
Step 2: Accept a number.
Step 3: Divide the number by 2.
Step 4: If the remainder is 0, the number is even.
Step 5: If the remainder is not 0, the number is odd.
Step 6: End the algorithm.

4.        Write an algorithm to accept two numbers from the user, subtract the first number from the second number, and display the result.

Solution:
Step 1: Start the algorithm.
Step 2: Get the first number.
Step 3: Get the second number.
Step 4: Subtract the first number from the second number.
Step 5: Display the result.

Step 6: End the algorithm.

Wednesday 9 December 2015

LBEPS lab@Home 10

1. Write a pseudocode to display the following matrix.

11 15 12
6 9 32 12
34 23 54 78
 9 8 7 5 3
(Duration: 15 Minutes)


Ans


begin
numeric row , col
numeric array [4][4] = {
{11,15,12,6},
{9,32,12,34},
{23,54,78,9},
{8,7,5,3}
}

display "The matrix is:"
for (row=0;row<4;row=row+1)
begin
display newline
for (col=0;col<4;col=col+1)
begin
display array [row][col]
display ''
end
end
end


2.Write a pseudocode to print the element that occurs most frequently in a given array. (Duration: 15 Minutes)



Ans  

begin
numeric arr[]={1,3,4,5,1}
numeric i, counter=0,MostFrequent, val, j, maxfrequency=0

for(i=0;i<5;i=i+1)
begin
counter=0
val=arr[i]
for(j=i+1;j<5;j=j+1)
begin
if(arr[j]==val)
begin
counter=counter+1
end
end
if( counter>maxFrequency)
begin
maxFrequency=counter
Mostfrequent=val
end
end
display "The element that occurs most frequent is"
display Mostfrequent
end



3.Write a pseudocode to find the largest number from the following array: {2,8,4,3,7} (Duration: 10 Minutes)



Ans   begin
numeric array[5]= {2,8,4,3,7}
numeric maximum, size, c, lopcation=1;
maximum=array[0];
for ( c=1;c<5;c++)
begin
if( array[c]>maximum)
begin
maximum=arra[c];
location=c+1;
end
end
display "maximum element is present at location number"
display location
display "The value of the maximum element is"
display maximum
end




4.Write a pseudocode to count the duplicate values in an array of size 10. (Duration: 10 Minutes)



Ans     begin
numeric a[]={1,2,3,4,5,6,6,8,9,9}
numeric count=0
numeric i,k;
for( i=0;i<10,i++)

begin
for (k=i+1;k<10;k++)
begin
if(a[k]==a[i])
begin
display "duplicate element;"
dispaly a[k]
count=count+1
end
end
end
display "The number of duplicate values in the array are"
display count
end



5.Write a pseudocode to find the average of the elements in the following array: {3,4,5,6,7} (Duration: 10 Minutes)




Ans  begin
numeric array[5]={3,4,5,6,7}
numeric sum, average

for(i=0;i<5;i=i+1)
begin
sum=sum+array[i]
end
average=sum/5
display "The average of the elements in the given array is:"
display average
end



6.Write a pseudocode to display the fifth element of an array of size 10. (Duration: 10 Minutes)


Ans  begin
numeric array[10],i

display "Enter the elements of the array"
for(i=0;i<10;i=i+1)
begin
accept array[i]
end

display " The fifth element of the array is:"
display array[4]
end



7.Write a pseudocode to print all the numbers greater than the average of the numbers given in an array of size 10. (Duration: 15 Minutes)



Ans   begin
numeric array[10]
numeric sum, average,i

display "Enter the elements of the array"
for (i=0;i<10;i=i+1)
begin
accept array [i]
end
for (i=0;i<10;i=i+1);
begin
sum=sum+array[i];
end
average=sum/10;
display "The numbers greater than the average of the given array are:"
for (i=0;i<10;i++)
begin
if (array[i]>average)
begin
display array[i]
end
end
end



8.Write a pseudocode to concatenate two arrays containing elements in ascending order to create a new array containing elements in ascending order. (Duration: 15 Minutes)



Ans   begin
numeric x=0, y=0, z=0, i
numeric array1[]={1,2,3,4}
numeric array2[]={5,6,7,8}
numeric concatarray[8]
while(x<=3 && y<=3)
begin
if(array1[x]< array2[y])
begin
concatarray[z]=array1[x];
x=x+1
end
else
begin
concatarray[z]=array2[y],
y=y+1
end
z=z++
end
while(x<4)
begin
concatarray[z]=array1[x]
x++
Z++
end
while(y<4)
begin
concatarray[z]=zrray2[y]
y++
z++
end
display " The concatenated array is:"
for(i=0;i<8;i++)
begin
display concatearray[i]
end
end

LBEPS Lab@Home 9

1.Draw a flowchart and write the pseudocode to display the highest of three numbers entered by a user. Implement this functionality with the help of procedures. (Duration: 30 Minutes)


Ans   https://drive.google.com/open?id=0B08RKBSts8D8WHV1dXI5RnBidjg


2. Create a flowchart and a pseudocode for accepting two numbers from a user and multiplying and dividing them. Define and use the procedures to accept, multiply, and divide the numbers. (Duration 30 Minutes)


Ans   https://drive.google.com/open?id=0B08RKBSts8D8c1J1d1htY2VoWDg


3.Draw a flowchart and write a pseudocode to print the sum of first 10 natural numbers. (Duration: 20 Minutes)



Ans  https://drive.google.com/open?id=0B08RKBSts8D8a1pMOVM0SEhPemM



4.The owner of the theater wants to educate the customers about the ticket booking process. Therefore, he has asked Jimmy to create an attractive diagram for this process. Help Jimmy to accomplish the required task.


Prerequisite: To perform this exercise, you need to use the Media.xlsx and Theater.jpg files. For this, you need to click the Media_and_Theater.zip link and save file as Media_and_Theater.zip. Further, unzip it and use the Media.xlsx and Theater.jpg files to complete your exercise.

 (Duration 30 Minutes)


Ans   https://drive.google.com/open?id=0B08RKBSts8D8VGtFQkdRRFRSN2M

LBEPS Lab@Home 8

1.Create a flowchart and write a pseudocode to display the square of first 10 natural numbers. (Duration: 40 Minutes)



Ans   https://drive.google.com/open?id=0B08RKBSts8D8SnlnVmlBdE41a2c


2.Jimmy has created a pivot table and has shown it to the theater owner. However, the owner is not able to understand this data. Therefore, to make this data understandable, Jimmy decides to create a chart to represent the required information graphically. The theater owner wants to view the graph for each category separately. Instead of creating a graph for each category manually, Jimmy decides to create a pivot chart. Help Jimmy to accomplish the required task.

Prerequisite: To perform this exercise, you need to use the Media.xlsx file. For this, you need to click the Media.zip link and save file as Media.zip. Further, unzip it and use the Media.xlsx file to complete your exercise. (Duration: 40 Minutes)



Ans  https://drive.google.com/open?id=0B08RKBSts8D8Nm1keXhCdktqX1U



3.Jimmy's instructor has asked him to create a Category wise summary report. This report should contain the total ticket cost incurred according to the Show Type filed values. All the information should be visible clearly. For this, Jimmy wants to use a pivot table. Help Jimmy to accomplish the required task.

Prerequisite: To perform this exercise, you need to use the Media.xlsx file. For this, you need to click the Media.zip link and save file as Media.zip. Further, unzip it and use the Media.xlsx file to complete your exercise. (Duration: 40 Minutes)



Ans  https://drive.google.com/open?id=0B08RKBSts8D8Z3JtaHZjb1pxenM

LBEPS Lab@Home 7

1. Draw a flowchart and write the pseudocode to print the product of the first 10 even numbers. (Duration: 30 Minutes)


Ans  https://drive.google.com/open?id=0B08RKBSts8D8RkQ5UGk4SzMtRjQ


2.Sam, who is the owner of a theater, has received an Excel sheet containing the profit details. However, he is not able to understand this data. Therefore, he asked Jimmy to represent this data in an understandable format. For this, Jimmy decides to represent the profit data graphically. In addition, he decides to create a column chart. To make the chart presentable, he wants to add the following features in it:
 1. The chart title should be Profit of the Year: 2011.
 2. The legends should be placed at the bottom of the chart.
 3. The chart should be placed along with the data table.
4. The data label should be displayed in the center of each bar. Help Jimmy to accomplish the required task.

 Prerequisite: To perform this exercise, you need to use the Media.xlsx file. For this, you need to click the Media.zip link and save file as Media.zip. Further, unzip it and use the Media.xlsx file to complete your exercise.


Ans   https://drive.google.com/open?id=0B08RKBSts8D8TlNrcVoxZzJyQWc


3.The data in the Media.xlsx file is arranged according to the movie code. In order to speed up the process, Jimmy decides to arrange the data in the ascending order according to the category and the show type. Help Jimmy to accomplish the required task. Prerequisite: To perform this exercise, you need to use the Media.xlsx file. For this, you need to click the Media.zip link and save file as Media.zip. Further, unzip it and use the Media.xlsx file to complete your exercise


Ans   https://drive.google.com/open?id=0B08RKBSts8D8b1VGazl2UXE0dU0


LBEPS Lab@Home 6

1 Write a pseudocode to accept a number, and then find whether or not the number is divisible by five. (Duration: 15 Minutes)


Ans   https://drive.google.com/open?id=0B08RKBSts8D8U2ZXTVQ3TWxpMWM


2.Write a pseudocode to accept an item/product number from a displayed list of items, accept quantity from a user, and display the total price. The price of the items will be defined in the pseudocode. (Duration: 15 Minutes)


Ans   begin
numeric nItemname, nPrice, nQuantity, nTotalValue
display "The list of items is given below"
display " "
display "1. Product 1"
display "2. Product 2"
display "3. Product 3"
display "4. Product 4"
display "Select the item number for sale"
accept nItemname
switch (nItemname)
case1:
nPrice = 50
break
case2:
nPrice = 70
break
case3:
nPrice = 40
break
case4:
nPrice = 90
break
default:
display "Please enter a valid option"
break
end
display "Enter the Quantity Purchased"
accept nQuantity
compute nTotalvalue = nPrice * nQuantity
display "The total price of the product is" +nTotalvalue
end


3.Write a pseudocode to accept the age of a candidate. If the age entered is 18 or above, the message, You are eligible to vote, should be displayed. If the age entered is below 18, the message, You are not eligible to vote, should be displayed. (Duration: 15 Minutes)



Ans   https://drive.google.com/open?id=0B08RKBSts8D8VFhRTktFdFBHWFU



.4. Write a pseudocode to accept three numbers and display the largest number. (Duration: 15 Minutes)



Anshttps://drive.google.com/open?id=0B08RKBSts8D8U21hNXVfY3l3Ymc



5.Write a pseudocode to accept a year and determine whether the year is a leap year. (Duration: 15 Minutes)




Ans   begin
numeric nYear
display "Enter a year to find if it is a leap year"
accept nYear
if ( nYear % 400 == 0 OR ( nYear % 4== 0 AND nYear % 100 !=0))

begin
display " It is a Leap Year"
end
end
end




6. Write a pseudocode to display the cost of a selected menu item from a restaurant menu card. The menu card should display the list of food items. The food items should be numbered. The last line of the menu should display the text, Enter the menu selection. The user should enter the sequence number corresponding to the menu items in the menu card as input. Further, the cost of the selected item should be displayed. In addition, an error message, Wrong selection, should be displayed if a wrong option, which does not appear in the menu, is entered by the user. (Duration: 15 Minutes)



Ans   begin
numeric nSelection
display "      Menu        "
display " 1. Fried Rice "
display " 2. Mix Veg. "
display " 3. Shahi Paneer "
display " 4. Chicken Briyani "
display " 5. Pop Corn Soup "
display " 6. Raj Mah "
display " Enter the menu selection "
accept nSelection
switch ( nSelection)
begin
case 1:
display " Please pay $50"
break
case 2:
display " Please pay $20"
break
case 3:
display " Please pay $40"
break
case 4:
display " Please pay $60"
break
case 5:
display " Please pay $70"
break
case 6:
display " Please pay $90"
break
default :
display "Wrong selection"
end
end



7.  Write a pseudocode to display a movies menu containing the numbered list of movies and display the playtime, name of actors, and name of director of the movie selected by the user. The last line of the menu should display the text, Enter your selection. When the user enters the movie number, the corresponding information should be displayed. In addition, an error message, Enter a valid option, should be displayed if a wrong option, which does not appear in the menu, is entered by the user. (Duration: 15 Minutes)




Ans  begin
numeric nSelection
display "    Movie    "
display "1. Singham  "
display "2. inkaar   "
display "3. Talaash   "
dispaly "4. Terminator  "
display " Enter the selection"
accept nselection
switch (nSelection)
begin
case1 :
display " Actor :Ajay Devgan, Time 2Hours, Director Dev"
break
case2 :
display " Actor :Arjun Rampal, Time 2Hours, Director Sameer"
break
case3 :
display " Actor :Amir Khan, Time 2Hours, Director Deven"
break
case4 :
display " Actor :Arnold, Time 2Hours, Director Nisha Nimesh"

break
default:
display " Enter a valid option"

end
end




8.Write a pseudocode to accept a direction from a menu containing the options, up, down, right, and left. The pseudocode should display the geographical direction corresponding to the selected option, such as North, South, East, or West as output on the screen. (Duration: 15 Minutes)



Ans begin

numeric nSelection
display "      Menu        "
display " 1. Up "
display " 2. Down "
display " 3. Left "
display " 4. Right "
display " Enter the menu selection "
accept nSelection
switch ( nSelection)
begin
case 1:
display " North"
break
case 2:
display " South "
break
case 3:
display " West"
break
case 4:
display " East"
break

default :
display "Wrong selection"
end
end

LBEPS Lab@Home 4

1.Draw a flowchart to enter a number from 1 to 7 and to display the corresponding day of the week. (Duration: 15 Minutes)

Ans  https://drive.google.com/open?id=0B08RKBSts8D8UmY3Y0t4M3l1c3M


2.Draw a flowchart that accepts a name and displays it 10 times on the screen. (Duration: 15 Minutes)



Ans  https://drive.google.com/open?id=0B08RKBSts8D8Mk5nakh2ZU9XN3M



3.Draw a flowchart to accept two numbers and any one of the following characters: +, -, *, or /. Based on the character entered, the numbers should be added, subtracted, multiplied, or divided and the result should be displayed. (Duration: 15 Minutes)


Ans  https://drive.google.com/open?id=0B08RKBSts8D8LThvVzNCMXpDMFU


4.Draw a flowchart that accepts the name of a student and the marks obtained by the student, and then calculates the average marks of the student. (Duration: 15 Minutes)


Ans https://drive.google.com/open?id=0B08RKBSts8D8N2s3bDh3YzlwVDg



5.Draw a flowchart that displays a list of prime numbers within a given range. (Duration: 15 Minutes)


Ans  https://drive.google.com/open?id=0B08RKBSts8D8cTV5bV84ZWpKVlE



6. Nicholas works with A-Star Ltd. as a marketing executive. To expand the business, A-Star Ltd. has planned to start the website development work. For this, the manager, John Pinto, has prepared a marketing proposal document. He wants to send this proposal to all the clients of the company. He has given the hard copy of this proposal to Nicholas and asked him to send the same to all the clients. The client details (the name and the address) are stored in an Excel file. Nicholas wants to automate the task of generating a marketing proposal for each client, instead of preparing the letter manually for each client. You need to help Nicholas to automate this task. Prerequisite: To perform this exercise, you need to use the Marketing Proposal.docx and ClientList.xlsx files. For this, you need to click the Marketing_Proposal_and_ClientList.zip link and save file as

Marketing_Proposal_and_ClientList.zip. Further, unzip it and use the Marketing Proposal.docx and ClientList.xlsx files to complete your exercise. (Duration: 20 Minutes)




Ans  https://drive.google.com/open?id=0B08RKBSts8D8eUozM3h4SlpQWTg


LBEPS Lab@Home 3

1.Maria is working with A-Star Ltd. as a technical writer. To create an official document, she needs to implement the following settings:
1. A company logo and address should be placed at the top left corner. The font should be Arial and the font size should be 12.
2. The document title should be bold, underlined, and centrally aligned. The font should be Arial and the font size should be 14.
3. The document text should be left aligned. The font should be Arial, and the font size needs to be 12.

She wants to create a template to perform the task quickly and efficiently and to ensure that none of the preceding settings is missed out. You need to help Maria in creating the required template.

Prerequisite: To perform this exercise, you need to use the Logo.jpg file. For this, you need to click the Logo.zip link and save file as Logo.zip. Further, unzip it and use the Logo.jpg file to complete your exercise.


Ans  https://drive.google.com/open?id=0B-yL1mP3zqTbamE2UUExeGVhZTQ


2.  



Ans   https://drive.google.com/open?id=0B-yL1mP3zqTbVF9GX2FjWXM2cjQ



3. Draw a flowchart that accepts three numbers and displays the least of these numbers. (Duration: 15 Minutes)



Ans  https://drive.google.com/open?id=0B-yL1mP3zqTbb0xhajZRNlF4SlU



4. Draw a flowchart to accept the radius and to calculate the area of a circle. (Duration: 15 Minutes)



Ans   https://drive.google.com/open?id=0B-yL1mP3zqTbU0p0WHNqTHZGaDQ



5.Draw a flowchart that accepts two numbers and checks if the first number is divisible by the second number. (Duration: 15 Minutes)



Ans.   https://drive.google.com/open?id=0B-yL1mP3zqTbOHNxYVBCR000cDQ
























LBEPS Lab@Home 2

1.Write an algorithm for accepting two numbers, divide the first number by the second, and display their quotient. (Duration: 10 Minutes)

Ans  Step1 :- Start the algorithm.
Step2 :- Let A,B and C the variables.
step3 :- accept first number from user.
step4 :- accept second number from user.
Step5 :- c=A/B.
Step6 :- Display C.
Step7 :- end the algorithm.


2.Write an algorithm that accepts a distance in kilometers, converts the same into meters, and then displays the result. (Duration: 10 Minutes).


Ans
     Step1 :- Start the algorithm.
Step2 :- Let A,B the variables.
step3 :- Display "Enter the distance in kilometers".
step4 :- accept the distance entered by the user.
Step5 :- B= a*1000.
Step6 :- Display B.
Step7 :- end the algorithm.


3.Write an algorithm that accepts a letter from the alphabet and determines whether it is a vowel or a consonant. (Duration: 5 Minutes)


Ans
        Step1 :- Start the algorithm.
Step2 :- Let A as character variables.
step3 :- Display "Enter the alphabet".
step4 :- if A== A,E,I,O,U,a,e,i,o,u.
Step5 :- Display "It is a vowel".
Step6 :- Else Display " It is a consonant".
Step7 :- end the algorithm.





4.Write an algorithm that accepts the distance and speed values for a particular journey, calculates the time taken for the journey, and displays it. (Duration: 10 Minutes)


Ans  Step1 :- Start the algorithm.
Step2 :- Let A,B and C variables.
step3 :- Display "Enter the Distance".
step4 :- Accept the distance entered.
Step5 :- Display "Enter the speed".
step6 :- Accept the speed entered.
Step7 :- C=A/B.
Step8 :- Display C.
Step9 :- end the algorithm.


5.Write an algorithm that accepts five numbers and displays the sum and average of the numbers. (Duration: 10 Minutes)


Ans   Step1  :- Start the algorithm.
Step2  :- Let A,B,C,D,E,F,G variables.
step3  :- Display "Enter the numbers".
step4  :- Accept Num1.
step5  :- Accept Num2.
step6  :- Accept Num3.
step7  :- Accept Num4.
step8  :- Accept Num5.
step9  :- F=A+B+C+D+E.
step10 :- G= F/5.
Step11 :- Display "Sum =", F.
Step12 :- Display "Average =", G.
Step13 :- end the algorithm.


6.Write an algorithm that accepts the length of the side of a square and displays its area. (Duration: 10 Minutes)


Ans     Step1  :- Start the algorithm.
Step2  :- Let A,B Variables.
Step3  :- Display "Enter the side of the Square.
Step4  :- Accept the side entered by the user.
Step5  :- B=A*A.
Step6  :- Display B.
Step7  :- end the algorithm.


7.Write an algorithm that accepts two numbers and displays the larger of the two. (Duration: 10 Minutes)



Ans   Step1  :- Start the algorithm.
Step2  :- Let A,B,c Variables.
Step3  :- Display "Enter the numbers".
Step4  :- Accept A.
Step5  :- Accept B.
Step6  :- Compare C= A<B.
Step7  :- if c =True.
          Display " B is larger.
Step8  :- Else Display " A is larger.
Step9  :- end the algorithm.