Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I have tried to run this flowgorithm chart but keep getting an error . v1 // Declare the necessary variables. 2 Declare Integer hits 3

I have tried to run this flowgorithm chart but keep getting an error .

image text in transcribed

v1 // Declare the necessary variables.

2 Declare Integer hits

3 Declare Integer atBat

4 Declare Real battingAverage 5

6 // Get the number of hits.

7 Display "Enter the player's number of hits."

8 Input hits

9 10 // Get the number of times at bat.

11 Display "Enter the player's number of times at bat."

12 Input atBat

13 14 // Calculate the batting average.

15 Set battingAverage = hits / atBat

16 17 // Display the batting average.

18 Display "The player's batting average is ", battingAverage

Main Integer Declareintegerhits, Declareintegeratbat, DeclareintegerbattingAverage Output "Enter the player's number of hits." Input hits Output "Enter the player's number of times at bat." Input atat Set battingAverage = hits/atbat Output "The player's batting Average is batting Average" ... End

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

OCA Oracle Database SQL Exam Guide Exam 1Z0-071

Authors: Steve O'Hearn

1st Edition

1259585492, 978-1259585494

More Books

Students also viewed these Databases questions

Question

Describe Table Structures in RDMSs.

Answered: 1 week ago