Mindtap Programming, 1 Term (6 Months) Printed Access Card For Farrell's Java Programming, 9th
Mindtap Programming, 1 Term (6 Months) Printed Access Card For Farrell's Java Programming, 9th
9th Edition
ISBN: 9781337397117
Author: FARRELL, Joyce
Publisher: Cengage Learning
bartleby

Concept explainers

Question
Book Icon
Chapter 12, Problem 4PE
Program Plan Intro

Program Plan

1. Variables mentioned below are used:

  • arrSize- the size of the array as the input given by the user.
  • values[]- which has the series of numbers to be sorted
  • input- double number entered as input by the user
  • avgValue − an average of all the numbers entered as input
  • exitVal- exit code to quit the reading of input from the console.
  • sum- the sum of all the entered numbers and is used to calculate the average of numbers.
  • arrCreateStatus − a boolean value that decides whether to create an array with user-entered sized.
  • valid- boolean value that holds the status of reading input from the console.

2. Functions mentioned below are used:

  • main()- Main function of the program which gets the input and displays the output.

Blurred answer
Students have asked these similar questions
Why are requirements changing a significant source of risks in system projects?
Why is functionality a key criterion in technology selection?
What is the significant advantage of using project management software?
Knowledge Booster
Background pattern image
Computer Science
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
Text book image
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage
Text book image
Microsoft Visual C#
Computer Science
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Cengage Learning,
Text book image
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning
Text book image
C++ Programming: From Problem Analysis to Program...
Computer Science
ISBN:9781337102087
Author:D. S. Malik
Publisher:Cengage Learning
Text book image
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781305480537
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT