Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

DONT USE ARRAYS USE REFERENCE PARAMETERS Goals: Practicing loop/repetition structures and functions Create a program that will allow the user to enter up to 50

DONT USE ARRAYS
USE REFERENCE PARAMETERS image text in transcribed
Goals: Practicing loop/repetition structures and functions Create a program that will allow the user to enter up to 50 whole values and determine thie number of values entered, how many of the values were odd and how many of the values were even Use a function (other than main) that will prompt the user to enter up to 50 whole numbers values and count how many even and odd numbers were entered (0 should be considered an even number) utilizing a loop. The loop should continue as long as the user wants to enter another value and the number of values entered is less than 50. The function should send back to the function call how many values were entered and how many odd and even numbers were entered. Use a minimum number or arithmetic operators inside the loop. Your main function should be a driver program that will call the function, then output the values sent back to the function call Your function definition should occur after main. Do not use any concepts beyond Chapter 6 (e.g. arrays) of your textbook. Remember that in addition to the introductory comments for the program your code should contain comments for each function other than main that states the purpose of the function, input to the function (both input from the function call and interactive input), output from the function (both information sent back to the function call and interactive output), and processing performed in the function. Follow the Assignment Guidelines posted on Canvas

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

OpenStack Trove

Authors: Amrith Kumar, Douglas Shelley

1st Edition

1484212215, 9781484212219

More Books

Students also viewed these Databases questions

Question

Explain the key areas in which service employees need training.

Answered: 1 week ago

Question

Understand the role of internal marketing and communications.

Answered: 1 week ago