Computer Science, asked by riyajhurani12, 1 year ago

ANSWER IN SCANNER CLASS

Attachments:

riyajhurani12: chp 5
riyajhurani12: yes icse

Answers

Answered by Anonymous
1
hey mate ur answer is....
hope it help u
Attachments:

riyajhurani12: okk , but we don't hv that in syllabus this year
riyajhurani12: no next year , will continue this book frm chp 7
riyajhurani12: bye
riyajhurani12: and thnx again
Answered by nitish8089
0

class Shares{

public static void main(String[] args) {

 double share_want_to_accumlate=3000;

 double nominal_value=10;

 double annual_dividend=2000;

 double dividend_percantge=10;

 double no_of_shares=(annual_dividend*100)/(nominal_value*dividend_percantge);

 double no_of_share_he_had_to_purchase=(3000-no_of_shares);

 System.out.println("No.of share had to purchase:"+(int)no_of_share_he_had_to_purchase);

     

}

}

Similar questions