Answered step by step
Verified Expert Solution
Question
1 Approved Answer
(C++) Help wil Rate! IMPORTANT NOTES, PLEASE READ CAREFULLY: 1) Your program MUST BE virus FREE (0 points will be given if the CPP file
(C++) Help wil Rate!
IMPORTANT NOTES, PLEASE READ CAREFULLY: 1) Your program MUST BE virus FREE (0 points will be given if the CPP file is infected). 2) Your program MUST BE FULLY DOCUMENTED or COMMENTED. 3) Your program MUST RUN without any correction.
ELET 2300 Programming Assignment II Spring 2017 Due date: 1/15/2017 11:50 PM Write a program that generates an array filled up with random positive integer number ranging from 60 to 100, and display it on the screen. After the creation and displaying of the array, the program displays the following: IRjeverse Ajdd ISjearch Elxitj Please select an option: Then, if the user selects: R (lowercase or uppercase): the program displays the reversed version of the array A (lowercase or uppercase): the program displays the sum of the elements of the array S (lowercase or uppercase): the program asks the user to insert an integer number and look for it in the array, returning a message whether the number is found and its position (including multiple occurrences, see example below), or is not found. E (lowercase or uppercase): the program exits. NOTE: Until the last option (e' or 'E') is selected, the main program comes back at the beginning, asking the user to insert a new integer number. CAWINDOWS system32 cmd.exe he Fandon generated array is 34 46 18 12 6 65 96 93 30 64 RI everse 1 SIearch1 FIxit 1 A rddl Select an option The reversed array is 64 30 93 96 65 6 12 18 46 30 The randon generated array is 69 21 21 37 8 71 9? 14 S? 6A RI evere o ALdd S [earch] EIxit Select an option: a The sun of the array elements is: 462 The randon generated array is 30 40 83 13 70 84 ?0 27 37 68 RD cucrscl ACddl S [carchJ EDxit Sc lcct an option s Please insert a number to find: 20 The nunher 70 has been found at the 5-th position The nunber 70 has been found at the 7 th position The randon generated array is 50 899 29 99 61 15 3 70 9 RI evere o ALdd S loarechJ EIxit Select an optionStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started