The union bank needs to convert rupees to dollar and vice versa perform this conversion using conversion routines (here rupees and dollar are two classes).
Create a class Index which keeps track of the Index value. Include member function GetIndex() to read index value.Write an overloaded function to display the greater index using > operator overloading.
Create the class Circle with attribute radius to find the area of circle. Assign the values for data member using copy constructor and display the result. Finally free the resources of data objects using destructor member function. (Note: Area of circle = 3.14 * radius * radius)
Define a class Shape and include length,width attribute as protected and include member functions setwidth(int w) and setHeight(int h).Derive a class Rectangle and include calculate_Area() and display area of rectangle. Create an object Rect to store value of length and breadth from user and derive objects Area .
Develop a code for the hierarchical inheritance for banking account,
· The Bank_ACC base class consisting of data members such as accno and name, and member functions get() and display().
· The SB_ACC derived class inherited from Bank_ACC class, consisting of data members such as roi, and member functions get() and display().
· The CUR_ACC derived class inherited from Bank_ACC class, consisting of data members such as odlimit, and member functions get() and display().
Runtime Input :
1356
Nitin
6
Differentiate Homogenous Databases with Heterogenous databases with the help of a case study.
Write a program that uses a random number generator to generate a two digit positive integer and allows the user to perform one or more of the following operations:
a. Double the number.
b. Reverse the digits of the number.
c. Raise the number to the power of 2, 3, or 4.
d. Sum the digits of the number.
e. If the number is a two digit number, then raise the first digit to the power of the second digit.
f. If the number is a three digit number and the last digit is less than or equal to 4, then raise the first two digits to the power of the last digit.
a. Define an enumeration type, triangleType, that has the values scalene, isosceles, equilateral, and noTriangle.
b. Write a function, triangleShape, that takes as parameters three num- bers, each of which represents the length of a side of the triangle. The function should return the shape of the triangle. (Note: In a triangle, the sum of the lengths of any two sides is greater than the length of the third side.)
c. Write a program that prompts the user to input the length of the sides of a triangle and outputs the shape of the triangle.
The list of random numbers stored in an integer and float array. Perform search operation to find the search number is present or not from an array using templates concept.
* Print - Element Found or Element Not Found
Write a program in C to split string by space into words.
Sample Input/Output Dialog:
Input string: I am a 1st year student of BCC.
Output:
I
am
a
1st
year
student
of
CGA.