Computer Science, asked by devilrana725, 3 months ago

Write a program to find the volume of solid bodies such as cylinder, cone and sphere having the function name volume(). Use overloading methods volume (float, int). volume (ficat.int), volume (float.float) and volume (float) respectively.

Thints: Volume of cylinder- 3.14 h

Volume of cone - 13.3.14 h Volume of sphere 4/3 * 3.14 1²​

Answers

Answered by mridupawanpathak45
0

Answer:

aim I'm an mam ik hmm ka ka k

Explanation:

ena pa ha jm rha goose hora rha neu

Answered by ironspirit
0

Answer:

import java.util.*;

class Employee

{

   void compute(int b)

   {

       int da=30*b/100;

       int hra=15*b/100;

       int pf=12*b/100;

       int gross=b+da+hra;

       int net=gross-pf;

       System.out.println("gross salary: "+gross+" net salary: "+net);

   }

   void display(String na,int empno)

   {

       System.out.println("name: "+na+" empno: "+empno);

   }

   public static void accept()

   {

       String n;int en;

       Scanner sc=new Scanner(System.in);

       System.out.print("Enter name of employee:");

       n=sc.nextLine();

       System.out.print("Enter employee no.:");

       en=sc.nextInt();

       System.out.print("enter basic:");

       int ba=sc.nextInt();

       Employee ob=new Employee();

       ob.compute(ba);

       ob.display(n,en);

   }

}

Explanation:

i did all i could

Similar questions