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

Create a class named 'Rectangle' with two private float data members- length and breadth and a public function calculate to calculate and print the area which is 'length*breadth'. The class has three constructors which are :

1 - having no parameter - values of both length and breadth are assigned zero.

2 - having two numbers as parameters - the two numbers are assigned as length and breadth respectively.

3 - having one number as parameter - both length and breadth are assigned that number.

In main method, create objects r1,r2 & r3 of the 'Rectangle' class having none, one and two parameters(receive input from user) respectively. Finally call the calculate method for objects r1,r2 &r3.

Input format:

First line contains a input for one parameter constructor.

Second line contains two inputs for two parameter constructor.

Output format:

First line contains output of r1 object area.

Second line contains output of r2 object area.

Third line contains output of r3 object area.



Declare the class Time consisting of data members hours, minutes and seconds. Invoke a null constructor Time() when an object is created, the parameterized constructor Time(hrs, min, sec) to assign values for the data members and show() member function is used to display the time information in format. Finally free the resources of data objects using destructor member function.


Brain teaser is a game that identifies basic knowledge of children’s for the age group 5 to 8 years. Identify whether the entered character is letter, digit or other symbols.

Test cases

Input

Output

Test case 1

Z

Alphabet

Test case 2

8

Number

Test case 3

$

Special Character


I am trying to write a python program that illustrates my knowledge of CS Concepts. I want to specifically make a "calories burned calculator that has a menu with several different exercises. I want the user to pick one of the exercises, then I want them to put in their weight, age, and height, and from that information I would like a number of calories that would have been burned for that specific activity. The data doesn't need to be accurate, I will change that myself, I just need a basic python program that can run those operations.

As a minimum, the program needs:

to be programed solely in Python

Use a data structure (array, objects, files, database)

Have a interface for the user (Tkinter, pygame, command - line menu)

Solve the problem of how many calories you burned with each exercise relative to your weight, age, and height

Shouldn't crash under a typical load



Creates two friendly classes, the class ABC with attribute A and class XYZ with attribute age to find maximum age among two men. Assign values for the data members using parameterized constructor, then to find maximum age among two men using friend function and display the age of men. Finally free the resources of data objects using destructor member function.


Declare the class Date, consisting of data members are day, month and year. The member functions are setdate() to assign the value for data members, Month() to find the string for the month data member and show() to display the date.


Implement a C++ program to define function named as ext, to extract the digits that located at even and odd position of five digit number and show the result.


Write a C++ Program to sort array of integers. Get the user input and display it in the sorted order.


Define the classes using hierarchy inheritance. An organization has two types of employees: Regular and Adhoc are derived class. Regular employees get a salary which is Basic salary + DA + HRA where DA is 10% of basic and HRA is 30% of basic. Adhoc employees are daily wagers who get a salary which is equal to Number oh hours * Wages amount. The employee base class consisting of member variables such as name and empid. When a regular employee is created, basic salary must be a parameter. When Adhoc employee is created wages amount must be a parameter. Define the member functions for each class and the member function days( ) updates number of the Adhoc employee.


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().


LATEST TUTORIALS
APPROVED BY CLIENTS