Computer Science, asked by rachel0502, 8 months ago

A businessman wishes to accumulate 3000 shares of a company. However, he already has some shares of that company valuing ₹10 (nominal value) which yields a 10% dividend per annum and receives ₹2000 as a dividend at the end of the year. Write a program in Java to calculate and display the number of shares he has and calculate how many more shares have to be purchased to meet his targets. Please Answer Quickly !!!

Answers

Answered by JENNY2007
35

Answer:

Question 5 :

* Mr. Guha wishes to accumulate 3000 shares of a company. However,

* already he has some shares of that company Rs. 10 (nominal value)

* which yield 10 % dividend per annum and received Rs. 2000 as dividend

* at the end of the year. Write a program in Java to calculate the number

* of shares he has and how many more shares to be purchased to make his target.

*/

import java.io.*;

class Pg106_Q5

{

public static void main(String args[])throws IOException

{

InputStreamReader read= new InputStreamReader(System.in);

BufferedReader in = new BufferedReader(read);

double n, nr;

n=(2000*100)/(10*10);

nr=3000-n;

System.out.println("No of shares available = "+n);

System.out.println("No of shares required = "+nr);

}

}

Explanation:

it can help you

follow me

Answered by sam12092007
2

Answer:

public class buissness{

   public static void main(String srgs[]){

    double share=2000*100/(10*10);

   double difference=3000-share;

   System.out.println("Share he has:"+share+"\n"+"Share he needs to more aquire="+difference);

   

             

   }

}

Similar questions