Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Develop a system flowchart and then write a menu-driven C++ program that uses user-defined functions arrays, and a random number generator. program execution, the screen

image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
Develop a system flowchart and then write a menu-driven C++ program that uses user-defined functions arrays, and a random number generator. program execution, the screen will be cleared and the Help Largest Quit Hor h (for Help ) option will invoke a function named help) which will display a help screen. The help screen(s) should guide the user how to interact with the program, type of data to be used, and what results would the program produce. Each help screen should remain on the monitor until the user strikes any key. Once the user completes reading the help0 screens, striking any key will lear the screen and the menu is displayed again. The main() function will declare an array of 15 elements. The elements are of type float. The menu option L will ask the user for the actual number of elements for the array. The program must verify that the actual number of elements does not exceed 15 and is not a negative number or O. Your code must check for these. L or I( for Largest ) option will invoke a function named largest ) which will prompt the user for the number of elements for the array to be examined using the function sizeofArrayl which will read and validate the desired array elements and returns it to the calling function. The program will then use the returned size of the array to fill the array using the number generator functions shown at the end of this assignment. Your program will ask the user for the range of values for the elements of the array and uses these numbers in a random generator function to fill the array. Once the array is filled, the program will call the function findLargest! ) which will find and return the largest number in the array to the calling function. The program will then call the function frequency), that will compute and return the frequency of occurrence of the largest number. The program will then display the array elements, the largest number, and its frequency of occurrence using the function displayl I, in the format shown below. The output shown is for an array of five elements with an array identifier a ato) xxxx.xx a(1 x.xxxxx

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_2

Step: 3

blur-text-image_3

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

Beginning VB 2008 Databases

Authors: Vidya Vrat Agarwal, James Huddleston

1st Edition

1590599470, 978-1590599471

More Books

Students also viewed these Databases questions

Question

Illustrate the compensation structure.

Answered: 1 week ago

Question

What attracts you about this role?

Answered: 1 week ago

Question

How many states in India?

Answered: 1 week ago

Question

HOW IS MARKETING CHANGING WITH ARTIFITIAL INTELIGENCE

Answered: 1 week ago

Question

Different types of Grading?

Answered: 1 week ago