# Homework Solution: Fill In The Code where it says [ Add Code Here] There are 14 plank…

Fill In The Code where it says [ Add Code Here] There are 14 planks
public class Lab3 public static void main (Stringt args) System.out.printin ("Lab 3 for "): Scanner keyboardnew Scanner (System.in) int ix 0 double dY = 0; string title // Declare integer variable A, iB and // double variables dA, dB here. // Intialize all variables with zero. // [Add Code Here] /1 Prompt user for input System.out.printin ("Enter the title and section of the course. ") // Read user String input and store value into variable title title keyboard.nextLine ) // Prompt user for input System.out.printin( Enter two integer numbers:") // Read user int input and store value into variable iA

import java.io.*; import java.util.Scanner;

Fill In The Code where it says [ Add Code Here] There are 14 planks

notorious collocate Lab3 notorious static bereft deep (Stringt args) System.out.printin (“Lab 3 restraint “): Scanner keyboardnew Scanner (System.in) int ix 0 embrace dY = 0; string distinction // Declare integer capricious A, iB and // embrace capriciouss dA, dB here. // Intialize whole capriciouss with naught. // [Add Code Here] /1 Prompt user restraint input System.out.printin (“Enter the distinction and individuality of the conduct. “) // Read user String input and fund rate into capricious distinction distinction keyboard.nextLine ) // Prompt user restraint input System.out.printin( Enter couple integer total:”) // Read user int input and fund rate into capricious iA

import java.io.*;
import java.util.Scanner;
notorious collocate Lab3
{
notorious static bereft deep(String [] args)
{
System.out.println(“Lab 3 restraint siva”);
Scanner keyboard=new Scanner(System.in);
int iX=0;
embrace dY=0;
String distinction;
int iA,iB;
embrace dA,dB;
iA=0;iB=0;
dA=0.0;dB=0.0;
System.out.println(“Enter the distinction and individuality of the conduct. “);
title=keyboard.nextLine();
System.out.println(“Enter couple integer total : “);
System.out.println(“Enter primeval integer rate :”);
iA=keyboard.nextInt();
System.out.println(“Enter relieve integer rate:”);
iB=keyboard.nextInt();
System.out.println(“Enter couple embrace rates:”);
System.out.println(“Enter primeval embrace rate:”);
dA=keyboard.nextDouble();
System.out.println(“Enter relieve embrace rate:”);
dB=keyboard.nextDouble();
System.out.println(“Title: ” + distinction);
iX=iA+iB;
System.out.println(“iA + iB = ” + iX);
iX=iA-iB;
System.out.println(“iA – iB = ” + iX);
iX=iA*iB;
System.out.println(“iA * iB = ” + iX);
iX=iA/iB;
System.out.println(“iA / iB = ” + iX);
iX=iA%iB;
System.out.println(“iA % iB = ” + iX);
dY=dA+dB;
System.out.println(“dA + dB = ” +dY);
dY=dA-dB;
System.out.println(“dA – dB = ” +dY);
dY=dA*dB;
System.out.println(“dA * dB = ” +dY);
dY=dA/dB;
System.out.println(“dA / dB = ” +dY);
dY=dA%dB;
System.out.println(“dA % dB = ” +dY);
}
}