Question
Please compile & execute code in Command Prompt or Terminal / DO NOT USE IDE Please Include Snipping Photo of the Whiteboard / Pseudo Code
Please compile & execute code in Command Prompt or Terminal / DO NOT USE IDE
Please Include Snipping Photo of the Whiteboard / Pseudo Code of program below for hardcoded common algorithms
Main Function: Control of operation
Class will contain the methods below and an array as the data structure.
The array will be a Class Variable
In your Class declare and fill an array with 1000 random integers between 1 - 1000 from your .txt file used in previous tasks.
Filling the array with random integers should happen in the class constructor.
***Hint: use the class constructor.
Algorithm outputs below should remain the same.
main function :
class constrctor:
Enter1.output all value:
Enter2.output sum all value:
Enter3.output All odd numbers:"
Enter4. Output All even numbers:
Enter5.Enter a search value / Implement Linear Search
Enter6.: Output Middle Value (Values in the Middle)
Not Average
Enter7. Output First Value in the Array
Enter8.Output Last Value in the Array
Enter9.Output the Highest Value and its location in the array. (Hardcode the algorithm.)
Enter10.Output the Lowest Value and its location in the array. (Hardcode the algorithm.)
Enter11. BUBBLE SORT:
please put it menu step by step and comment every line.
please do it as menu easy to understand , do not copy from people the same answer i will report it
Step 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