Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

Print the average of three numbers entered by the user by creating a class named 'Average' having a function to calculate and print the average without creating any object of the Average class.


Write a program to print the area of a rectangle by creating a class named 'Area' taking the values of its length and breadth as parameters of its constructor and having a function named 'returnArea' which returns the area of the rectangle. Length and breadth of the rectangle are entered through keyboard. 


Write a program to print the area of two rectangles having sides (4,5) and (5,8) respectively by creating a class named 'Rectangle' with a function named 'Area' which returns the area. Length and breadth are passed as parameters to its constructor


Write a program to print the area and perimeter of a triangle having sides of 3, 4 and 5 units by creating a class named 'Triangle' with a function to print the area and perimeter.


Assign and print the roll number, phone number and address of two students having names "Sam" and "John" respectively by creating two objects of the class 'Student'.


1. Write a Program in C++ to copy the contents of the file from one location to another location (Ex: C: \Demo \Test.txt to D: \Demo \Test.txt) and also check the content in both files are same or not. 


2. Write a program in C++ to enter a string into file and read the same file to display all the words in the file with stating letter ‘p’.


1. Write a program in C++ to create abstract class Figure having abstract method area(), and data members length, breadth. Derive classes Triangle and Rectangle from Figure having member function area(). Find area of triangle and rectangle by function overriding concept? [Note: sub classes does not contain any data members]. 


2. Write a program in C++ to justify the control flow and use of templates by mentioning overloaded function as well.


Q1. Overload the function find_perimeter() with one, two and three float parameters. The function with one parameter is used to return the perimeter of the circle. The function with two parameters is used to return the perimeter of the rectangle. The function with three parameter s is used to return the perimeter of the triangle. Write the necessary C++ program to test the functionality of above functions.


Q2. Create a class Data with data members: height and breadth of object given by the user and member functions get_data() to read the values and put_data() to display the values. Create another class Rectangle that inherits class Data and implement its methods areaRectangle() and perimeterRectangle() that computes the area and perimeter of a rectangle. Create another class Triangle that inherits class Data and implement its methods areaTriangle() and perimeterTriangle() that computes the area and perimeter of a triangle.


In a company an employee is paid as under: If his basic salary is less than 30,000, then HRA= 10% of his basic salary and DA = 90% of his basic salary. If his salary is either equal or above Rs 30, 000, then HRA=500, and DA = 98% of basic Salary. If the employee's salary is input through the keyboard , Write a program to find the gross salary.

with a custom method called displayVehicle() that displays the details of a vehicle as follows:


If the vehicle is available then it should display the details of a vehicle as the values of the instance variables vehicleID and dailyRate only


Otherwise, if the vehicle is currently on loan it should display the name and license number of the person holding the car as well as the number of days it was rented out. (this obvious includes details above.)




Write a main function that will create 5 Vehicle objects using the data below. Assume all the Vehicles are available initially.


Vehicle ID Daily-Rates ($)


FJH 123N 12.0


DKY 222N 25.0


GAF 333N 18.0


BGH 444N 40.0


FRS 555N 30.0



LATEST TUTORIALS
APPROVED BY CLIENTS