Answered step by step
Verified Expert Solution
Question
1 Approved Answer
So for C programming I am suppose to creat a program with these requirements. I have completed secctions 1 and 2. If you guys can
So for C programming I am suppose to creat a program with these requirements. I have completed secctions 1 and 2. If you guys can help me with sectoins 3 and 4 that would be great. Thank you! :) Also, we have only worked with loops, arrays, if/else statements, and functions. Anything else that is super complex will not make sense to me.. Below I have put my code of what I have done already. That should give you a glimpse of what I understand
Sample Output
What I have so far:
The program is to have the following functions and function requirements 1. calculateProduct, this function: a) prompts (and scans from) user for two integers for each of the desired calculations, b) calculates products, c) returns product. 2. selectionSortProduct, this function: a) receives prodResults one dimensional array, b) sorts products in descending order, - c) displays result to user 3. multiplicationTable, this function a) prompts user for dimensions of multiplication table -size of the multTable two dimensional array- b) initializes two dimensional array to be displayed c) prints accurate (values, size, and spacing) multiplication table (array contents). 4. main, this function a) welcomes and introduces user to the program, b) prompts (and scans from) for number of products user wants to calculate (i) number of products is to be a global variable, c) calls calculateProduct function to calculate as many products as needed d) stores each returned product in productResults one-dimensional array e) calls selectionSortProduct function, f) prompts (and scans from) user if he/she would like to see a multiplication table (i) if yes ('y' or 'Y), then the multiplicationTable option is called and the table option is not given again (unless program is restarted)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