Question: Write a C + + program that does the following: a . Create a C + + file with the name problem 5 . cpp

Write a C++ program that does the following: a. Create a C++ file with the name problem5.cpp. b. Prompt the user to enter a positive integer n that is at most 100, terminating the program if the user enters an integer that is non-positive or more than 100. c. Read and store n integers from the user. d. Print the negative integers from the array, in order. e. Print the positive integers (include 0 in this group) from the array, in reverse order. Sample run of the program: Enter a positive integer (at most 100): 8 Enter 8 integers: 3-14-10171819-11-1-10-1119181743

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!