Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a small program in C + + that contains the following functions: void welcome ( ) prints a message welcoming the user void goodbye

Write a small program in C++ that contains the following functions:
void welcome()
prints a message welcoming the user
void goodbye()
prints a message bidding the user goodbye
int input()
accepts an integer between -100 and 100 from the user and returns
the value
if the user inputs a number less than -100 or greater than 100, the
function prompts for additional input
this function can assume the user will only give integer input
void print_statistics(int values[], int count)
accepts an array values, containing count integers.
prints the minimum value, maximum value, and sum of the first count
elements of the values array.
int main()
Welcomes the user.
Accepts and records 10 integers from the user with the input function
(ignoring input below -100 and above 100, as outlined for the input
function).
Prints the minimum, maximum, and sum of all recorded inputs.
Bids the user goodbye
image text in transcribed

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

Linked Data A Geographic Perspective

Authors: Glen Hart, Catherine Dolbear

1st Edition

1000218910, 9781000218916

More Books

Students also viewed these Databases questions

Question

=+ Are they breakable for any reason?

Answered: 1 week ago