Question

2-dimensional array in python

Using python 2-dimensional array to find the average marks of all subject for all the following students:

 

Student ID

MidTerm

Project

Assignment

Final Exam

1

40/50

50/100

15/20

50/100

2

50/50

30/100

10/20

10/100

3

22/50

43/100

8/20

30/100

4

40/50

36/100

19/20

43/100

5

20/50

80/100

11/20

51/100

 

 

Rules to follow:

Please make use of 2-Dimensional Array to store the above data and perform calculation. Make sure the average is printed in 2 decimal point.

Please store your two dimension array with variable datass in the submission template. Do not use your own variable. This might affect the accuracy of system grading.

Make sure your algorithm able to support different size of array.


Sample output:

image.png

0 0
Add a comment Improve this question Transcribed image text
Request Professional Answer

Request Answer!

We need at least 10 more requests to produce the answer.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the answer will be notified once they are available.
Know the answer?
Add Answer to:
2-dimensional array in python
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Similar Homework Help Questions
  • A theater seating chart is implemented as a two-dimensional array of ticket prices like presented below....

    A theater seating chart is implemented as a two-dimensional array of ticket prices like presented below. Write a program that prompts the users to pick either a seat or a price. Mark sold seats by changing the price to zero. When a user specifies a seat, make sure it is available. When a user specifies a price, find any seat with that price. Verify that the price is among those offered by the theater. 10 10 10 10 10 10...

  • Please help with this C++ problem using Array Use a one-dimensional array to solve the following...

    Please help with this C++ problem using Array Use a one-dimensional array to solve the following problem. Read in 20 numbers, each of which is between 10 and 100. As each number is read validate it and store it in the array. After reading all the values, display only the unique values that the user entered. Make sure you account for the worst case scenario in which all 20 numbers are different. Use the smallest possible array to solve this...

  • utilizing r, how do you do this function? Make a 2 dimensional array of normally distributed...

    utilizing r, how do you do this function? Make a 2 dimensional array of normally distributed random numbers in R with 20 rows and 2 columns Use array(x , dim = c(20, 2)), make sure that the vector, x, has the correct number of observations to match the dimensionality, namely 40 (20 x 2)

  • By using two-dimensional array, write Python program to display a table that represents a Pascal triangle...

    By using two-dimensional array, write Python program to display a table that represents a Pascal triangle of any size. In Pascal triangle, the first and the second rows are set to 5. Each element of the triangle (from the third row downward) is the sum of the element directly above it and the element to the left of the element directly above it. See the example Pascal triangle(size=6) below:                            5                            5       5                            5        10       ...

  • Python 3 Create a function that takes an array and an integer v, and returns the...

    Python 3 Create a function that takes an array and an integer v, and returns the number of v occurrences in the array. Add a variable Nsteps to count how many times the loops have executed and display that information in a message The main program must take an array / list 2D, call the function, and display the result. >>>l3 = [52, 14, 14, 8, 85, 69, 1, 77, 94, 96, 51, 65, 35, 32, 87, 92, 74, 47,...

  • IN JAVA Write a program that uses a two-dimensional array to store daily minutes walked and...

    IN JAVA Write a program that uses a two-dimensional array to store daily minutes walked and carb intake for a week. Prompt the user for 7 days of minutes walked and carb intake; store in the array.   Write a sort ( your choice which sort ) to report out the sorted minute values -lowest to highest. Write another to report out the sorted carb intake - highest to lowest. These methods MUST be your original code.   Your program should output...

  • create a new Java application called "Scorer" (without the quotation marks) that declares a two-dimensional array...

    create a new Java application called "Scorer" (without the quotation marks) that declares a two-dimensional array of doubles (call it scores) with three rows and three columns and that uses methods and loops as follows. Use a method containing a nested while loop to get the nine (3 x 3) doubles from the user at the command line. Use a method containing a nested for loop to compute the average of the doubles in each row. Use a method to...

  • C++ Lab 11 – Is This Box a Magic Box? Objectives: Define a two dimensional array Understand h...

    C++ Lab 11 – Is This Box a Magic Box? Objectives: Define a two dimensional array Understand how to traverse a two dimensional array Code and run a program that processes a two dimensional array Instructions: A magic square is a matrix (two dimensional arrays) in which the sum of each row, sum of each column, sum of the main diagonal, and sum of the reverse diagonal are all the same value. You are to code a program to determine...

  • ***C++ ONLY*** Menu driven program First load an array(lists) with the values 3, 4, 84, 5,...

    ***C++ ONLY*** Menu driven program First load an array(lists) with the values 3, 4, 84, 5, 2, 47, and 7 in this order Then sort the array(list) Create a program with a menu, with choices 1 for factorial (single value, which everyone will use 20!), 2 for median value , 3 for average, 4 for maximum, 5 for minimum, and 6 to end the program. Use a do loop (not while) Python does not have a Do loop, so instead...

  • ***C++ Program ONLY*** Menu driven program First load an array(lists) with the values 3, 4, 84,...

    ***C++ Program ONLY*** Menu driven program First load an array(lists) with the values 3, 4, 84, 5, 2, 47, and 7 in this order Then sort the array(list) Create a program with a menu, with choices 1 for factorial (single value, which everyone will use 20!), 2 for median value , 3 for average, 4 for maximum, 5 for minimum, and 6 to end the program. Use a do loop (not while) Python does not have a Do loop, so...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT