[Solved]Due Date Time Friday Apr 26 2019 5 30pm Assignment Learn Read Data User Fill Two Dimension Q37173928






Due date/Time: Friday, Apr. 26,2019 at 5:30pm What this Assignment Is About: Learn to read data from user and fill a two-dimensional array. Learn how to compute the sum of one row or one column in a 2D array * Learn how to compute the sum, average of a 2D array Important This is an individual assignment, please do not collaborate. Make sure that you write every line of your own code. Using code written by someone else will be considered a violation of the academic integrity and will result in a report sent to the Dean’s office Coding Guidelines for All Labs/Assignments (You will be graded on this) Give identifiers semantic meaning and make them easy to read (examples numStudents, grossPay, etc Keep identifiers to a reasonably short length. Use upper case for constants. Use title case (first letter is upper case) for classes. Use lower case with uppercase word separators for all other identifiers (variables methods, objects) Use tabs or spaces to indent code within blocks (code surrounded by braces). This includes classes, functions, and code associated with ifs, switches and loops. Be consistent with the number of spaces or tabs that you use to indent Use white space to make your program more readable. Use comments properly before or after the ending brace of classes, functions, and blocks to identify to which block it belongs 1. Assignment description In this assignment, you will need to create a 3 x 7 two dimensional array to store how many pounds of food three monkeys eats each day in a week. The 2D array is then passed to functions to find total, average and least amount of food consumption, etc. The program then need to display: the average amount of food the three monkeys ate per day the least amount of food eaten all week by any one monkey. each monkey’s consumption of food during the week the average of food the 3 monkeys ate on Monday and Saturday, etc. Besides the main() function, you are required to design at least the following two functions inside your program Due date/Time: Friday, Apr. 26,2019 at 5:30pm What this Assignment Is About: Learn to read data from user and fill a two-dimensional array. Learn how to compute the sum of one row or one column in a 2D array * Learn how to compute the sum, average of a 2D array Important This is an individual assignment, please do not collaborate. Make sure that you write every line of your own code. Using code written by someone else will be considered a violation of the academic integrity and will result in a report sent to the Dean’s office Coding Guidelines for All Labs/Assignments (You will be graded on this) Give identifiers semantic meaning and make them easy to read (examples numStudents, grossPay, etc Keep identifiers to a reasonably short length. Use upper case for constants. Use title case (first letter is upper case) for classes. Use lower case with uppercase word separators for all other identifiers (variables methods, objects) Use tabs or spaces to indent code within blocks (code surrounded by braces). This includes classes, functions, and code associated with ifs, switches and loops. Be consistent with the number of spaces or tabs that you use to indent Use white space to make your program more readable. Use comments properly before or after the ending brace of classes, functions, and blocks to identify to which block it belongs 1. Assignment description In this assignment, you will need to create a 3 x 7 two dimensional array to store how many pounds of food three monkeys eats each day in a week. The 2D array is then passed to functions to find total, average and least amount of food consumption, etc. The program then need to display: the average amount of food the three monkeys ate per day the least amount of food eaten all week by any one monkey. each monkey’s consumption of food during the week the average of food the 3 monkeys ate on Monday and Saturday, etc. Besides the main() function, you are required to design at least the following two functions inside your program Function Function Description s function takes a 2D array as input parameter and returns the sum of his function akes a 2D array as input parameter and returns the smallest double findGroupTotal (double a2DArray []) all elements inside double findLeastAmtFood (double a2DArray] ) element inside 2. Sample Run Ic sample 3. Misce. Programming Requirements Your program must also meet the specifications stated as below All double value of the program’s output need to be formatted with 2 decimal digits. See the sample run at the end of the specification. The exact spacing is not important, what is important is that the output looks good and the columns align * Pick and use identifiers which are self-descriptive. One-letter variable names should not be used. As an example, if you were referring to the ticket price, the variable needed might be declared as double price; instead of double:x As we stated before, make sure for each of the file, you put the following comment header block on top of the file . FILE Assignment8.cpp Name: your-name /1 Student ID: your-ASU-10-digits-ID / Description: 4. Submission For this assignment, you just need to submit Assignment8.cpp file * Log into to our Blackboard course website, then from the left hand side control panel, click on “Lab & Assignments”, next click on sub-folder “Assignments”, then click on “HW8” * Click on the browse button and find where you saved your project, upload Assignment8.cpp to the site and then click on the Submit button * It’s your responsibility to make sure that you submitted the correct file on server. After the deadline, we will not accept submissions through emails! 5. Grading Rubric (20 pts) * Student submits the relevant source code files Assignment8.cpp, whether the program compiles and/or runs correctly or not. [2 pts] The findGroupTotalO function is designed correctly [2 pt] The findLeastAmtFood) function is designed correctly. [2 pts] · Inside the main(), students correctly use nested loop to read in the input data and store them inside the two-dimensional array successfully. 2 pts Inside the main) function, students correctly called above functions. [2 pts] The program student submitted compiles, runs, and produces the correct output for the two test cases [10 pts] Input CSE 100 Assignment #8 Sample Run (User input is in bold) Enter pounds of food eaten by monkey #1 on day 1: 6.5 day 2: 5.8 day 3: 7.3 day 4: 7.2 day 5: 6.9 day 6: 8.1 day 7: 5.6 Enter pounds of food eaten by monkey #2 on day 1: 4.9 day 2: 6.1 day 3: 5.8 day 4: 6.9 day 5: 5.7 day 6: 5.6 day 7: 6.3 Enter pounds of food eaten by monkey #3 on day 1: 7.6 day 2: 7.3 day 3: 6.9 day 4: 8.1 day 5: 7.8 day 6: 7.6 day 7: 7.4 Average amount of food eaten per day by the entire family of monkeys20.2 pounds. Least amount of food eaten all week by any monkeys is: 4.90 pounds. Monkey #1 eat total of 47.40 pounds of food in this week. Monkey #2 eat total of 41.30 pounds of food in this week. Monkey #3 eat total of 52.70 pounds of food in this week. Monkey #3 eat total of 52.70 pounds of food in this week. The 3 monkeys eat an average 6.33 pounds of food on Monday. The 3 monkeys eat an average 7.10 pounds of food on Saturdav. Show transcribed image text Due date/Time: Friday, Apr. 26,2019 at 5:30pm What this Assignment Is About: Learn to read data from user and fill a two-dimensional array. Learn how to compute the sum of one row or one column in a 2D array * Learn how to compute the sum, average of a 2D array Important This is an individual assignment, please do not collaborate. Make sure that you write every line of your own code. Using code written by someone else will be considered a violation of the academic integrity and will result in a report sent to the Dean’s office Coding Guidelines for All Labs/Assignments (You will be graded on this) Give identifiers semantic meaning and make them easy to read (examples numStudents, grossPay, etc Keep identifiers to a reasonably short length. Use upper case for constants. Use title case (first letter is upper case) for classes. Use lower case with uppercase word separators for all other identifiers (variables methods, objects) Use tabs or spaces to indent code within blocks (code surrounded by braces). This includes classes, functions, and code associated with ifs, switches and loops. Be consistent with the number of spaces or tabs that you use to indent Use white space to make your program more readable. Use comments properly before or after the ending brace of classes, functions, and blocks to identify to which block it belongs 1. Assignment description In this assignment, you will need to create a 3 x 7 two dimensional array to store how many pounds of food three monkeys eats each day in a week. The 2D array is then passed to functions to find total, average and least amount of food consumption, etc. The program then need to display: the average amount of food the three monkeys ate per day the least amount of food eaten all week by any one monkey. each monkey’s consumption of food during the week the average of food the 3 monkeys ate on Monday and Saturday, etc. Besides the main() function, you are required to design at least the following two functions inside your program
Due date/Time: Friday, Apr. 26,2019 at 5:30pm What this Assignment Is About: Learn to read data from user and fill a two-dimensional array. Learn how to compute the sum of one row or one column in a 2D array * Learn how to compute the sum, average of a 2D array Important This is an individual assignment, please do not collaborate. Make sure that you write every line of your own code. Using code written by someone else will be considered a violation of the academic integrity and will result in a report sent to the Dean’s office Coding Guidelines for All Labs/Assignments (You will be graded on this) Give identifiers semantic meaning and make them easy to read (examples numStudents, grossPay, etc Keep identifiers to a reasonably short length. Use upper case for constants. Use title case (first letter is upper case) for classes. Use lower case with uppercase word separators for all other identifiers (variables methods, objects) Use tabs or spaces to indent code within blocks (code surrounded by braces). This includes classes, functions, and code associated with ifs, switches and loops. Be consistent with the number of spaces or tabs that you use to indent Use white space to make your program more readable. Use comments properly before or after the ending brace of classes, functions, and blocks to identify to which block it belongs 1. Assignment description In this assignment, you will need to create a 3 x 7 two dimensional array to store how many pounds of food three monkeys eats each day in a week. The 2D array is then passed to functions to find total, average and least amount of food consumption, etc. The program then need to display: the average amount of food the three monkeys ate per day the least amount of food eaten all week by any one monkey. each monkey’s consumption of food during the week the average of food the 3 monkeys ate on Monday and Saturday, etc. Besides the main() function, you are required to design at least the following two functions inside your program
Function Function Description s function takes a 2D array as input parameter and returns the sum of his function akes a 2D array as input parameter and returns the smallest double findGroupTotal (double a2DArray []) all elements inside double findLeastAmtFood (double a2DArray] ) element inside 2. Sample Run Ic sample 3. Misce. Programming Requirements Your program must also meet the specifications stated as below All double value of the program’s output need to be formatted with 2 decimal digits. See the sample run at the end of the specification. The exact spacing is not important, what is important is that the output looks good and the columns align * Pick and use identifiers which are self-descriptive. One-letter variable names should not be used. As an example, if you were referring to the ticket price, the variable needed might be declared as double price; instead of double:x As we stated before, make sure for each of the file, you put the following comment header block on top of the file . FILE Assignment8.cpp Name: your-name /1 Student ID: your-ASU-10-digits-ID / Description: 4. Submission For this assignment, you just need to submit Assignment8.cpp file * Log into to our Blackboard course website, then from the left hand side control panel, click on “Lab & Assignments”, next click on sub-folder “Assignments”, then click on “HW8” * Click on the browse button and find where you saved your project, upload Assignment8.cpp to the site and then click on the Submit button * It’s your responsibility to make sure that you submitted the correct file on server. After the deadline, we will not accept submissions through emails!
5. Grading Rubric (20 pts) * Student submits the relevant source code files Assignment8.cpp, whether the program compiles and/or runs correctly or not. [2 pts] The findGroupTotalO function is designed correctly [2 pt] The findLeastAmtFood) function is designed correctly. [2 pts] · Inside the main(), students correctly use nested loop to read in the input data and store them inside the two-dimensional array successfully. 2 pts Inside the main) function, students correctly called above functions. [2 pts] The program student submitted compiles, runs, and produces the correct output for the two test cases [10 pts] Input
CSE 100 Assignment #8 Sample Run (User input is in bold) Enter pounds of food eaten by monkey #1 on day 1: 6.5 day 2: 5.8 day 3: 7.3 day 4: 7.2 day 5: 6.9 day 6: 8.1 day 7: 5.6 Enter pounds of food eaten by monkey #2 on day 1: 4.9 day 2: 6.1 day 3: 5.8 day 4: 6.9 day 5: 5.7 day 6: 5.6 day 7: 6.3 Enter pounds of food eaten by monkey #3 on day 1: 7.6 day 2: 7.3 day 3: 6.9 day 4: 8.1 day 5: 7.8 day 6: 7.6 day 7: 7.4 Average amount of food eaten per day by the entire family of monkeys20.2 pounds. Least amount of food eaten all week by any monkeys is: 4.90 pounds. Monkey #1 eat total of 47.40 pounds of food in this week. Monkey #2 eat total of 41.30 pounds of food in this week. Monkey #3 eat total of 52.70 pounds of food in this week.
Monkey #3 eat total of 52.70 pounds of food in this week. The 3 monkeys eat an average 6.33 pounds of food on Monday. The 3 monkeys eat an average 7.10 pounds of food on Saturdav.
Expert Answer
Answer to Due date/Time: Friday, Apr. 26,2019 at 5:30pm What this Assignment Is About: Learn to read data from user and fill a two… . . .
OR

