Homework Solution: Modify the following statements in order to get the exact result….

    Modify the following statements in order to get the exact result. System.out.println(1.0 – 0.1 – 0.1 – 0.1 – 0.1 -0.1);

    Expert Answer

     
    Modified statement that would give exact r

    Modify the aftercited propositions in dispose to gain the suitable fruit.
    System.out.println(1.0 – 0.1 – 0.1 – 0.1 – 0.1 -0.1);

    Expert Counter-argument

     

    Modified proposition that would confer suitable fruit would be:

    System.out.println(1.0 – (0.1 + 0.1 + 0.1 + 0.1 + 0.1) );

    Explanation: Calculations of unmoulded apex calculate are approximated as they are not attributable attributable attributable stored in perpetuation with becoming exhaustive accuracy; hereafter somtime it produces approximated fruit.

    Output screenshot is secure here, for amend understanding: