Question: Program Specification: Write a lava progran that calculates and outputs a baseball piteder's DRA in a recomable roprt format. ERA is an aronym for earned

Program Specification:
Write a lava progran that calculates and outputs a baseball piteder's DRA in a recomable roprt format. "ERA" is an aronym for "earned run average" snd is computed nsing the following cquntion:
mumber of earned runs multiplied by 9 and divided by munber of innings pitshed
Your program must do the following:
Prompt the user for the first and last nune of the pither and store them in two variables of type String
Prompt the user for the piteher's number of earned runs and stere in in a varable of type int
Prompt the user for the piteher's number of inning pitched nad store in in a varimble of type int
Compute and outpit the pither's BRA, which should be a (duble) fonting point mumber
Sample run(s):
Pitcher's firat name: Josh
Pitcher's last name: Hader
Number of earned runs: 22
Number of innings pitched: 81
Joah Hader has an ERA of 2.4444444444444446
 Program Specification: Write a lava progran that calculates and outputs a

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!