Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

in python quizResults = [ [1, 0, 1, 1, 0, 1, 1, 1, 1, 1], [0, 1, 1, 0, 1, 1, 0, 0, 0, 1],

in python image text in transcribed

quizResults = [ [1, 0, 1, 1, 0, 1, 1, 1, 1, 1], [0, 1, 1, 0, 1, 1, 0, 0, 0, 1], [1, 0, 1, 1, 1, 0, 1, 0, 1, 1], [1, 1, 0, 1, 1, 0, 0, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 0, 1, 1, 1, 1, 1, 0, 1, 1], [1, 0, 0, 0, 0, 1, 0, 1, 1, 0], [0, 1, 1, 1, 1, 1, 1, 0, 1, 1], [0, 0, 0, 1, 1, 1, 1, 1, 1, 1], [1, 0, 0, 1, 1, 1, 1, 0, 1, 1], [0, 1, 1, 1, 1, 1, 0, 1, 1, 1], [0, 0, 1, 1, 1, 1, 1, 0, 1, 1], [0, 1, 1, 1, 0, 1, 0, 1, 1, 0], [1, 0, 0, 1, 1, 0, 0, 1, 1, 0], [0, 0, 1, 1, 0, 1, 0, 1, 0, 1], [0, 1, 0, 1, 1, 0, 1, 0, 1, 0], [0, 1, 1, 1, 1, 1, 0, 1, 0, 1], [0, 1, 0, 1, 1, 1, 1, 1, 1, 1], [0, 0, 1, 1, 1, 1, 0, 1, 0, 0], [0, 0, 1, 1, 0, 1, 0, 1, 0, 1] ]

please post original- genuine codes

Although in principle this question could be solved using lists only, our goal is to gain practice working with arrays. Therefore, you must convert the quiz data to an array and perform all calculations using array operations. Before you start anything, make sure you have imported the numpy module. This module is NOT standard, so if you are working on your own machine, you may need to install it first. Quiz Data A starter file is provided for you that contains the quiz data as a list-of-lists. The data is organized such that each sublist represents the quiz result for a single student. Each sublist is the same length and contains multiple integers, indicating the student's score on each question on the quiz. A value of 1 means the student got the question right and O means the student got the question wrong. The program you hand in should compute the result for the quizResults list, but two other very small lists are provided to help you perform simple testing. For example, test2 represents a quiz with just 4 questions that was written by 5 students, where all 5 students got the second question right. Program Behaviour Your program should: (a) Create a 2D array from the list of lists for a quiz. Your program should work no matter how many students there are, or how many questions in the quiz. (b) For each question, calculate the percentage of students who answered incorrectly If fewer than 55% answered correctly, print the information (performance and question number) for that question to the console Take advantage of the power of arrays to do this! In particular, you can slice a 2D array across multiple dimensions; think about how this might be useful. Sample Run Poorly done questions: Only 40 percent of students solved question 1 Only 45 percent of students solved question 2 Only 50 percent of students solved question 7

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Flash XML Applications Use AS2 And AS3 To Create Photo Galleries Menus And Databases

Authors: Joachim Schnier

1st Edition

0240809173, 978-0240809175

More Books

Students also viewed these Databases questions

Question

Describe Table Structures in RDMSs.

Answered: 1 week ago