

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
classes and objects, methods, comprises with basic oop terminologies, its detailed assignment
Typology: Assignments
1 / 2
This page cannot be seen from the preview
Don't miss anything!


a) Write a java class that multiplies the long number. The class will receive multiplicand and multiplier as string inputs, convert string values to their digit represent and show the partial products and product as shown in the example below: [1 Marks]
Assignment 1 Semester: VI Batch: 2018 Due Date: 08-July-2019 Max Marks: 10 Instructions: Attempt all questions
Write an application class to demonstrate the working of above class. b) Write a method in java that compute five digit integer no into single digit by adding this no. [1 Marks] c) Write a java class has a method that takes user name as input and second functions which returns number of vowels present in it and Main program prints the number of vowels [ 1 Marks] d) Create a rectangle class with two data members’ length and width Provide member functions to calculate the perimeter and area of the rectangle and a function square which returns true if the rectangle is a square otherwise it returns false. [1.5 Marks] e) Write a class to simulate a bank account allowing for initialization, deposits, withdrawals, setting the interest rate, adding interest and giving the current balance. Provide some code to demonstrate the object in action. [ 1.5 Marks]