Computer Science, asked by shailgarg203, 6 months ago

Define a class Area with the following

description:

class Name: Define a class Area with the following [15]

description:

class Name: Area

Data Members/Instance variables:

a, b, c (integer type): to store 3 sides of triangle

ar (double type): to store area of scalene triangle

Member Methods:

void input() : to input and store 3 sides of triangle

void compute() : to find area of scalene triangle

using following relation:

area=√ ∗ ( − ) ∗ ( − ) ∗ ( − )where s=++

2

void print(): to display area of scalene triangle.

Write a main method to create an object of class and

call the above member methods

Data Members/Instance variables:

a, b, c (integer type): to store 3 sides of triangle

ar (double type): to store area of scalene triangle

Member Methods:

void input() : to input and store 3 sides of triangle

void compute() : to find area of scalene triangle

using following relation:

area=√ ∗ ( − ) ∗ ( − ) ∗ ( − )where s=++

2

void print(): to display area of scalene triangle.

Write a main method to create an object of class and

call the above member methods​

Answers

Answered by SaiVARSHITHA1978
1

Answer:

sorry,i can't understand the question

Answered by kirankumari8336
1

Answer:

you can get easier answers from Google

Similar questions