Check out example codes for "1.6.6: mla citation awnser". It will help you in understanding the concepts better.

Code Example 1

mport java.util.*;

public class NightOut
{
    public static void main(String[] args)
    {
        Scanner imput = new Scanner(System.in);
        
        double dinner = 14.56;
        
        int minigolf = 10;
        
        double dessert = 4.56;
        
        
        double grandtotal = dinner + 2*minigolf + dessert;
       
       System.out.println("How much did dinner cost?");
       
       System.out.println("Dinner: $" + dinner);
       
       System.out.println("How much is mini-golf for one person?");
       
       System.out.println("mini-golf: $" + minigolf);
       
       System.out.println("How much did dessert cost?");
       
        System.out.println("Dessert: $" + dessert);

         System.out.println("Grand Total: $" + grandtotal);

Learn ReactJs, React Native from akashmittal.com