• 0651-2532659/ 2532631
  • dbkokar@gmail.com
  • Kokar, Ranchi, JH-834001
  • Project Work

    Don Bosco School, Ranchi

    Project Work – 2018-19

    Class: 10

    Subject: Computer Applications

     

    1. cloth Showroom has announced the following festival discounts on the purchase of items, based on the total cost of the items purchased:
    Total Cost Discount  (in percentage)
    Less than Rs. 2000 5%
    Rs. 2001 to Rs. 5000 25%
    Rs. 5001 to Rs. 10000 35%
    Above Rs. 10000 50%

    Write a program to input the total cost and to compute and display the amount to be paid by the customer after availing the discount.

    1. Write a menu driven class to accept a number from the user and check whether it is a Palindrome or a Perfect number.

    (i) Palindrome number : (A number is a Palindrome which when read in reverse order is same as in the right order)

    Example: 11, 101, 151 etc.

    (ii) Perfect number : ( A number is called Perfect if it is equal to the sum of its factors other than the number itself.)

    Example: 6 = 1+2+3

    1. Write a program in Java to find the sum of the given series:
    2. An Automorphic number is the number which is contained in the last digit(s) of its square. Write a program in Java to accept a number and check whether it is an Automorphic number or not, using function name digits(int n) which returns number of digits present in the number.

    e.g. 25 is an automorphic number as its square if 625 and 25 is present as the last two digits.

    1. Write a class with the name Volume using function overloading that computes the volume of a cube, a sphere and a cuboid.

    Formula:   Volume of a cube (vc) = s * s * s

                      Volume of a sphere (vs) = 4/3*π*r*r*r

                      Volume of a cuboid (vcd) = l*b*h

    1. Define a class Library with the following description:

    Data Members/Instance variables:

    int  acc_num                      :           stores the accession number of the book

    String title                         :           stores the title of the book

    String author                     :           stores the name of the author

    Member methods:

    (i) void input( )                  :           to input and store the accession number, title and author

    (ii) void compute( )           :           to accept the number of days late, calculate and display the

    fine charged at the rate of Rs. 2 per day.

    (iii) void display( )            :           to display the details

    Write a main method to create an object of the class and call the above member methods.

     

    1. Define a class named FruitJuice with the following description:

    Data members/ Instance variables:

    int product_code               :           stores the product code number

    String flavor                      :           stores the flavor of the juice (e.g. orange, apple etc.)

    String pack_type               :           stores the type of packaging (e.g. tetra-pack, bottle etc.)

    int pack_size                     :           stores package size (e.g. 200ml, 400ml etc.)

    double price                      :           stores the price of the product

    Member methods:

    (i)  FruitJuice( )                 :           default constructor to initialize all data members

    (ii) void input( )                 :           to input all value for all data members

    (iii) void discount( )          :           to reduce the product price by 10

    (iv) void display( )            :           to display all data members values.

    Write a main method to create an object of the class and call the above member methods.

    5 4 3 2 1

    5 4 3 2

    5 4 3

    5 4

    5

    • Write two separate program to generate the following pattern using iteration statements:
    *

    * *

    * * *

    * * * *

    * * * * *

    * * * * * *

    (i)                                                                           (ii)

     

     

     

     

     

    1. Write a program to accept a number and check and display whether it is a Niven number or not.

    (Niven number is that number which is divisible by its sum of digits.)

    Example:

    Consider the number 126.

    Sum of its digits is 1+2+6 = 9 and 126 is divisible by 9.

    1. Define a class named BookFair with the following description:

    Instance variables/Data members:

    String Bname                    :           stores the name of the Book

    double price                      :           stores the price of the Book

    Member methods:

    (i) BookFair( )                   :           default constructor to initialize data members.

    (ii) BookFair(String Bname, double price) : parameterized constructor to initialize data members.

    (iii) void input( )                :           to input and store the name and the price of the book.

    (iv) void calculate( )          :           to calculate the price after discount. Discount is

    calculated based on the following criteria.

                Price                                                                                                   Discount

    Less than or equal to Rs. 1000                                                            2% of price

    More than Rs. 1000 and less than or equal to Rs. 3000                     10% of price

    More than Rs. 3000                                                                            15% of price

    (v) void display( )                        :           to display the name and price of the book after discount.

    Write a main method to create an object of the class and call the above member methods.

    1. Write a program to define a class ReserveTicket which is described as follows:

    Data members/Instance variables:  Name of the buyer, Amount of the ticket, Counter to count sold tickets.

    Member methods:

    (i) Accept values

    (ii) display the values

    (iii) increase Ticket amount by Rs. 10

    1. Design a class to overload a function series( ) as follows:

    (i) double series(double n) with one double argument and returns the sum of the series,

    (ii) double series(double a, double n) with two double argument and returns the sum of the series,

    1. Using the switch statement, write a menu driven program to calculate the maturity amount of a Bank Deposit. The user is given the following options:

    (i) Term Deposit

    (ii) Recurring Deposit

    For option (i) accept principal (P), rate of interest (r), and time period in years (n). Calculate and output the maturity amount (A) receivable using the formula

    For option (ii) accept Monthly Installment (P), rate of interest (r), and time period in months (n). Calculate and output the maturity amount (A) receivable using the formula

    For incorrect option, an appropriate error message should be displayed.

    1. Write a program to input a number and print whether the number is a special number or not.

    (A Special number is said to be a special number, if the sum of the factorial of the digits of the number is same as the original number).

    1. Define a class called Mobike with the following description:

    Instance variables/Data members:

    int bno                   :           to store the bike’s number

    int phno                 :           to store the phone number of the customer

    String name           :           to store the name of the customer

    int days                 :           to store the number of days the bike in taken on rent

    int charge              :           to calculate and store the rental charge

    Member methods:

    (i) void input( )                  :           to input and store the detail of the customer.

    (ii) void compute( )           :           to compute the rental charge

    The rent for a mobike is charged on the following basis.

    • First five days Rs. 500 per day
    • Next five days Rs. 400 per day
    • Rest of the days Rs. 200 per day

    (iii) void display( )            :           to display the details of data members.

    Write a main method to create an object of the class and call the above member methods.

                                                                 

    Note:

    Project Work must include:

     

    1. Front Page
    2. Introduction
    3. Acknowledgement
    4. Index
    5. All project work program with questions. The program must include some comments and variable descriptions.
    6. Bibliography

     

     

    For Project Online Download :  https://www.donboscoranchi.com/projectwork/

    Subscribe to YouTube :

    Archive