1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Naddika [18.5K]
3 years ago
11

Main topics: Basic Java program

Computers and Technology
1 answer:
bazaltina [42]3 years ago
3 0

Answer:

Explanation:

import java.util.Scanner;

public class pitcherValues {

   public static void main(String[] args) {

       String firstName, lastName;

       int earnedRuns, inningsPitched;

       double ERA;

      Scanner in = new Scanner(System.in);

     System.out.println("Pitchers First Name is?");

     firstName = in.nextLine();

     System.out.println("Pitchers Last Name is?");

     lastName = in.nextLine();

     System.out.println("How many runs did the Pitcher earn?");

     earnedRuns = in.nextInt();

     System.out.println("How many innings did the Pitcher Pitch?");

     inningsPitched = in.nextInt();

     ERA = (earnedRuns * 9) / inningsPitched;

     System.out.println(firstName + " " + lastName + " has an ERA of " + ERA);

   }

}

You might be interested in
Which factor helps drive globalization?
Kipish [7]

Containerisation. The costs of ocean shipping have come down, due to containerisation, bulk shipping, and other efficiencies. ...

Technological change. ...

Economies of scale. ...

Differences in tax systems. ...

Less protectionism. ...

Growth Strategies of Transnational and Multinational Companies.

7 0
3 years ago
How can a user view the options for Junk E-mail?
alexdok [17]
B. by right clicking all messages in the junk email folder
8 0
3 years ago
Read 2 more answers
How to get the blade out of a pencil sharpener?
agasfer [191]
Poke hole with thin but strong object
Or buy new sharpener
7 0
4 years ago
You can clear a log file simply by redirecting nothing into it. true or false?
nekit [7.7K]
True

cat /dev/null > fileName


------------------------------------
6 0
4 years ago
Which email etiquette is necessary when composing an email?
krok68 [10]

Answer:

subject, purpose and the recipient details

Explanation:

The email should have a good subject, and that means it should be precise but should convey the purpose and the recipient details. And the detailed report is to be mentioned in the actual body of the email. However, always ensure that the purpose or intent and the recipient details are being mentioned in the subject itself such that the recipient understand in a second the purpose of the email, and also that it meant for him/her.

5 0
4 years ago
Other questions:
  • A process-based DO/S must synchronize actions across the network. When a process reaches a point at which it needs service from
    6·1 answer
  • The more critical a component or service, the higher the level of availability required. True False
    5·1 answer
  • Define the term Frame Rate.
    12·1 answer
  • The TCP/IP ____ layer, sometimes called the Internet layer, is roughly equivalent to OSI's network layer.
    7·1 answer
  • This shows you where text will appear as you type.
    14·1 answer
  • Writing the E-mail:
    5·1 answer
  • Can't get Brainly to load on my Apple Mac. Why won’t it load? Does it need another program to work?
    14·2 answers
  • Select the one that uses the heading tag correctly. <br><br>a. <br><br><br>b. <br><br>c. <br><br>d.
    12·2 answers
  • Worksheet-I • Make a list of 10 application software and 5 utility programs installed in your computer, along with their uses. U
    9·1 answer
  • what is a simulation? a) simulation is the process of creating dashboards in excel. b) simulation is the process of complex form
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!