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 base class called Shape with two data members of double type

which could be used to compute the area of figures. Derive two specific

classes called Triangle and Rectangle from the base class Shape. Add to the

base class, a member function called GetData to initialize base class data

members and another member function displayArea to compute and display

the area of figures. Make displayArea a virtual function and redefine this

function in the derived classes to suit their requirements. Using these three

classes design a program which will accept dimensions of a triangle or

rectangle interactively and display the area.


Write a program to create a class called STUDENT with data members Roll

Number, Name and Age. Using inheritance, create the classes

UGSTUDENT and PGSTUDENT having fields a semester, fees and

stipend. Enter the data for at least 5 students. Find the average age for all

UG and PG students separately.


(Hierarchical Inheritance):-

Derive a class named as CYLINDER from CIRCLE class. Take necessary

data & member functions for this class to calculate the volume of the

cylinder. Show the result by accessing the area method of circle and

rectangle through object of rectangle class and the area of circle and volume

method of cylinder class through the objects of cylinder class.


(Multilevel Inheritance):-

Derive a class named as BOX from RECTANGLE class. Take necessary

data & member functions for this box class to calculate the volume of the

box. All the data members are initialized through the constructors. Show the

result by accessing the area method of circle and rectangle and the volume

method of box class through the objects of box class.


(Single Inheritance) Write a program to create a class CIRCLE with one

field as radius, used to calculate the area of a Circle. Create another class

RECTANGLE used to calculate the area of the rectangle which is a subclass

of CIRCLE class. Use the concept of single inheritance such that the radius

of circle class can be re-used as length in rectangle class. Take necessary

data members and member functions for both the classes to solve this

problem. All the data members are initialized through the constructors.

Show the result by accessing the area method of both the classes through the

objects of rectangle class.


Choose your desired operation

[CIRCUMFERANCE OF A CIRCLE]

[PERIMITER OF A TRIANGLE]


Hello,

In datagridview, how do I create rows and columns programmatically? I'm trying to create a Spreadsheet.

column a - z

row 1 - 50

Thank you.


Write a Java program to display the three top sales made by employees of an organization. The
rows and columns represent the sales made by each employee identified by their employee
number.
SALES 1 SALES 2 SALES 3
101111 R 3 000 R 2 000 R 3 500
101122 R 2 500 R 5 500 R 3 500
101133 R 1 100 R 2 000 R 4 500
101144 R 1 700 R 2 700 R 2 500
101155 R 5 000 R 2 900 R 5 900
Using a Two Dimensional array produce the employee sales report, and the total sales made by
each employee.
Write a Java program to display the three top sales made by employees of an organization. The
rows and columns represent the sales made by each employee identified by their employee
number.
SALES 1 SALES 2 SALES 3
101111 R 3 000 R 2 000 R 3 500
101122 R 2 500 R 5 500 R 3 500
101133 R 1 100 R 2 000 R 4 500
101144 R 1 700 R 2 700 R 2 500
101155 R 5 000 R 2 900 R 5 900
Using a Two Dimensional array produce the employee sales report, and the total sales made by
each employee.

1. Consider the loop from Section 8.3 of your textbook.


prefixes = 'JKLMNOPQ'

suffix = 'ack'

for letter in prefixes:

   print(letter + suffix)

Put this code into a Python script and run it. Notice that it prints the names "Oack" and "Qack".

Modify the program so that it prints "Ouack" and "Quack" but leaves the other names the same.

Include the modified Python code and the output in your submission.

2. Give at least three examples that show different features of string slices. Describe the feature illustrated by each example. Invent your own examples. Do not copy them for the textbook or any other source.



LATEST TUTORIALS
APPROVED BY CLIENTS