Exercise 2: Exercise Objectives Creating 2D array Perform various operations on 2D array. Problem Description: • Creates

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Exercise 2: Exercise Objectives Creating 2D array Perform various operations on 2D array. Problem Description: • Creates

Post by answerhappygod »

Exercise 2 Exercise Objectives Creating 2d Array Perform Various Operations On 2d Array Problem Description Creates 1
Exercise 2 Exercise Objectives Creating 2d Array Perform Various Operations On 2d Array Problem Description Creates 1 (53.1 KiB) Viewed 51 times
Exercise 2: Exercise Objectives Creating 2D array Perform various operations on 2D array. Problem Description: • Creates a float (4 x 3) 2D array named score using empty function (which represents the score values of three atterrpt for four players in a given game). • Fills the array with the score values entered by the user, where the user enters for each player three scores. Ensure that all values should be between 0 and 10. • Prints the array elements in a (4 * 3) tabular format (See the sample output). • rescale all scores to the sacle of [0,100). • Reprints the array after the above modifications • Print the minimum and maximum attempt score per player. • which player achieved the highest average score (provide the row index)? • what is the lowest score in the second attempt? Sample Output Enter the score of attempt 1 for player 1: 6 Enter the score of attempt 2 for player 1: 5 Enter the score of attempt 3 for player 1: 6 Enter the score of attempt 1 for player 2: -1 Invalid Value... Enter the score of attempt 1 for player 2: 1 Enter the score of attempt 2 for player 2: 5 Enter the score of attempt 3 for player 2: 6 Enter the score of attempt 1 for player 3: 8 Enter the score of attempt 2 for player 3: 1 Enter the score of attempt 3 for player 3: 7 Enter the score of attempt 1 for player 4: 8 Enter the score of attempt 2 for player 4:9 Enter the score of attempt 3 for player 4: 2 Player 1 Player 2 Player 3 Player 4 atti 6.0 1.0 8.0 8.0 att2 5.0 5.0 1.0 9.0 atta 6.0 6.0 7.0 2.0 att 60.0 60. 70.0 20.0 atti att Player 1 60.0 50.0 Player 2 10.0 50. Player 3 80.0 10.0 Player 4 80.0 90.0 Minimum score per player: P1 P2 P3 P4 (50. 10. 10. 20.) Maximum score per player PI P2 P3 P4 [60. 60.80.90. C
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply