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 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 runs:
Pitcher's firat name: Josh
Pitcher's last name: Hader
Number of earned runs:
Number of innings pitched:
Joah Hader has an ERA of
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
