Friday 20 November 2015

java assignment

1. For any given date(in MM/DD/YYYY format) calculate 10th working day(exclude Saturdays, Sundays and span holidays) and display the 10th Working day.(Get SPAN holidays from http://ispan.com/Lists/Holiday/AllItems.aspx

2.            Employee Maintenance System
Write a program to read the following parameters for each Employee.
a.            First name
b.            Last name
c.             Date of Join (dd/mm/yyyy)
d.            Date of Birth
e.            Gender (M or F)
f.             Temporary (True or false)
g.            Department (ASG/Sales/Engineering/Support/Accounts)
h.            Salary
i.      Designation(Java developer, Application Tester, Quality analyser, Project Manager etc)

After you read the input for about 10 records, display the below options to the user to choose from.

1.            Display employees in Ascending order of their Last name
2.            Display employees for the given Department (Note: selecting the option 2, should ask the user to enter Department name and then display the employees pertaining to that department)
3.            Display the age of all employees
4.            Display the permanent employees
5.            Display the employees with salary > 10000.
6.            Search for an Employee (First name starts with)
7.      Display employees who belongs to only engineering department and Male employee
8.      Calculate average salary of all employees.
9.            Exit

3.            Shop Maintenance:
Note: Hardcode the products data in the program.

Show the following menu when the application starts.

***************************************************
        *                             Welcome to <shop name> Shop                                    *
        ***************************************************
1.            Display Products
2.            Search Product
3.            Purchase Product
4.            Display shopping cart
5.            Print Invoice
6.            Exit

1. Display Products :

        ************************************************************************************
        SKU#              Product Name                                   Stock                     Price                Manufacturer                                     **
        ************************************************************************************
        Xxx                 Xxxxxxxx                                             xx                           xxxx.xx                 xxxxxxxxxxxx


Enter the item SKU number to purchase the item.

Note: Once the item SKU has been entered and the item is in stock, it has to be reduced by 1 in the quantity of products.

2.  Search Product :

Enter the product SKU or Name (starts with) :

Product you have searched for :

<Display products header and product details to be displayed.>

No match found for the given input.

3. Purchase Product :

Enter the item SKU number to purchase the item :

Note: Once the item SKU has been entered and the item is in stock, it has to be reduced by 1 in the quantity of products.

4. Display Shopping cart

       ************************************************************************************
        SKU#              Product Name                                   Quantity              Price                    Manufacturer                                 **
        ************************************************************************************
       Xxx                  Xxxxxxxx                                             xx                           xxxx.xx                 xxxxxxxxxxxx
       Xxx                  Xxxxxxxx                                             xx                           xxxx.xx                 xxxxxxxxxxxx
*************************************************************************************                                                                              
Total                                                                                      xx                           xxxx.xx
*************************************************************************************
5.  Print Invoice

                                                                                <Shop Name>
                                                                                <Address 1>
Invoice Details
               *************************************************************************************
             SKU#              Product Name                       Quantity              Price                                          Tax                                                   **
              **************************************************************************************
                Xxx                  Xxxxxxxx                                    xx                           xxxx.xx                                 <10% tax amount>
                Xxx                  Xxxxxxxx                                    xx                           xxxx. xx                                 <10% tax amount>
            ***************************************************************************************                                                                              
           Total (Incl of Tax 10%: xx)                                 xx                           xxxx.xx(without tax)      <10% tax amount>       xxxx.xx(total with Tax)    
           ***************************************************************************************

No comments:

Post a Comment