Computer Science, asked by safurahkhan14, 5 months ago

In java Write a program that computers Bowling Average for a bowler who has given 1153 runs in 18
matches taking 109 wickets.
(Note : Bowling Average is no. of runs given per wickets i.e., Runs/Wickets)​

Answers

Answered by udit6323
15

Program:

Scanner Method

import java.util.*;

public class Bowling_Average

{

public static void main()

{

Scanner in = new Scanner (System.in);

double r,w,ba;

System.out.println("Runs Given : 1153");

r = 1153.0;

System.out.println("Matches : 18");

System.out.println("Wickets : 109");

w = 109.0;

ba = r/w;

System.out.println("The Bowling Average of the Bowler : "+ba);

}

}

Input Stream Reader

import java.io.*;

public class Bowling_Average

{

public static void main()throws IOException

{

InputStreamReader isr = new InputStreamReader (System.in);

BufferedReader br = new Buffered Reader (isr);

double r,w,ba;

System.out.println("Runs Given : 1153");

r = 1153.0;

System.out.println("Matches : 18");

System.out.println("Wickets : 109");

w = 109.0;

ba = r/w;

System.out.println("The Bowling Average of the Bowler : "+ba);

}

}

Hope You Like the Answer....... Please Mark this answer as the Brainliest To help me help you!!!  :)

Answered by muskaan9292
7

Explanation:

Import java.util.scanner;

public class bowling average

{

public static void main (string args [ ] )

{

scanner .in = new scanner ( system . in );

double r,w,ba ;

system .out.print ln ("Runs given : 1153");

r = 1153.0;

system .out.print ln ("matches : 18 ");

system.out.print ln ("wickets :109");

w=109.0;

ba=r/w ;

system .out .print ln ( "the bowling average of the bowler :+ ba);

}

}

Similar questions