Page 1 :
10:35, HD, 97%, Main.java*, 1 import java.util.Scanner;, 2 public class Main, 3 {, 4, public static void main(String] args), {, double amt;, Scanner sc=new Scanner(System.in);, System.out.println("Enter NOU");, double NOU=sc.nextDouble();, 10, 11, 12, 138, 14, 15, 16, 17, 18, 19, 20, 21, 22, if(NOU<=100), amt=0.8*NOU;, else if(NOU<=300), amt=(0.8*100)+(NOU-100)*1;, else, amt=(0.8*100)+(1*200)+(NOU-300)*2.5;, amt=amt+500;, System.out.printIn("No. of units consumed: "+NOU);, System.out.println("Charges: "+amt), }, 28 }, Scanned with CamScanner, 1, Harsh Pratap Singh Master Teacher, ..., V
Page 2 :
10:35, HD, 197%, TAB, Enter NOU, 45, No. of units consumed: 45.0, Charges: 536.0, [Program finished], 1 2 3 4 5 6 7 8, q w er t yuio, a s d f g hjkl, Z X C v b n m, ?123, English, Scanned with CamScanner, 2, Harsh Pratap Singh Master Teacher, ...
Page 3 :
10:44, HD, 195%, Main.java*, 1 import java.util.Scanner;, 2 public class Main, 4, public static void main(String] args), Scanner sc=new Scanner(System.in);, System.out.printIn("Enter item code and amount:");, char IC=sc.next().charAt(0);, double amt=sc.nextDouble();, double FA=0;, 7, 10, 11, 12, 18, 14, 15, 16, 17, 18, 19, 20, switch(IC), {, case 'L: FA=amt-(0.05*amt);, break;, case 'D': FA=amt-(0.07*amt);, break;, case 'X': FA=amt-(0.10*amt);, break;, case 'P': FA=amt-(0.11*amt);, break;, default:, 22, System.out.printIn("Invalid Item Code");, }, System.out.println("Total payable amount: "+FA);, Tab | {, Scanned with CamScanner, 3, Harsh Pratap Singh Master Teacher
Page 4 :
10:44, HD, 195%, TAB, Enter item code and amount:, D, 540, Total payable amount: 502.2, [Program finished], 1 2 3 4 5 6 7 8 9 0, q w er tyuio p, a s d f g hjk l, Û z X C V b n m, ?123, English, Scanned with CamScanner, 4, Harsh Pratap Singh Master Teacher
Page 5 :
5:05, A 56%, HD, Main.java*, 1 import java.util.Scanner;, 2 public class Main, public static void main(String] args), {, 6, 4, double amt;, Scanner sc=new Scanner(System.in);, System.out.printlin("Enter weight:");, double wt=sc.nextDouble();, 7, 10, 11, 12, 18, 14, 15, 16, 17, 18, 19, 20, 21 |, if(wt<=10), amt=(wt*30);, else if(wt<-30), amt=(10*30)+(wt-10)*20;, else, amt=(10*30)+(20*20)+(wt-30)*15;, System.out.println("Total weight: "+wt);, System.out.printIn("Total charge: "+amt);, | |, Scanned with CamScanner, Harsh Pratap Singh Master Teacher, V, @@