Answered step by step
Verified Expert Solution
Question
1 Approved Answer
C++ Programming language appreciated! This assignment is split into several parts. The goal is to get you used to working with C/C++ run-time arrays and
C++ Programming language appreciated!
This assignment is split into several parts. The goal is to get you used to working with C/C++ run-time arrays and strings. Part 0 - Create a Menu You should create a menu that gives access to each of the parts of the assignment. Show this menu and make it function properly. If the user inputs something incorrect, correct them and loop the menu and prompt. Welcome to Assignment 3! Menu: 1 - 1D Math 2 - Single Dimension Character Processing 3 - Two-D Character Processing 4 - Exit Choose an option: Menu Option 1 - Get a character from the user. Either safety-check it, or force it to be lower- case. This function should take the array, Create a function that returns an integer. the letter and the size. Prototype: int getFrequencyOf(char letters*, int size, char item); You will loop through the array and count each matching instance of the character the user inputted. Return the final count. Output the result and ask if they want to do another process. Choose an option: 1 enter size: 21 min: 1 max: 50 [2 - 3 - 7 - 7 - 8 - 11 - 13 - 13 - 14 - 14 - 15 - 20 - 21 - 22 - 26 - 36 - 41 - 42 - 44 - 45 - 47] Average: 21.4762 Median: 15 Uniques: 18 Non-Uniques: 3 This assignment is split into several parts. The goal is to get you used to working with C/C++ run-time arrays and strings. Part 0 - Create a Menu You should create a menu that gives access to each of the parts of the assignment. Show this menu and make it function properly. If the user inputs something incorrect, correct them and loop the menu and prompt. Welcome to Assignment 3! Menu: 1 - 1D Math 2 - Single Dimension Character Processing 3 - Two-D Character Processing 4 - Exit Choose an option: Menu Option 1 - Get a character from the user. Either safety-check it, or force it to be lower- case. This function should take the array, Create a function that returns an integer. the letter and the size. Prototype: int getFrequencyOf(char letters*, int size, char item); You will loop through the array and count each matching instance of the character the user inputted. Return the final count. Output the result and ask if they want to do another process. Choose an option: 1 enter size: 21 min: 1 max: 50 [2 - 3 - 7 - 7 - 8 - 11 - 13 - 13 - 14 - 14 - 15 - 20 - 21 - 22 - 26 - 36 - 41 - 42 - 44 - 45 - 47] Average: 21.4762 Median: 15 Uniques: 18 Non-Uniques: 3Step 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