Please find the algorithm below.
BEGIN:
INPUT : N:= NUMBER OF STUDENT IN THE CLASS
TAKE VARIABLE : ROLL_NUMBER[N];
TAKE VARIABLE : ARRAY[N] , COURSE_AVG[N],i=0;
FOOR LOOP: FOR i IN RANGE (0,N-1)
IF (COURSE_AVG[i]>= 40 &&
COURSE_AVG[i]<= 60):
ARRAY[i]=ROLL_NUMBER[i]
FOOR LOOP: FOR i IN RANGE (0,N-1)
PRINT ARRAY[i]
END;
Here , as the for loop will check for each student and the total number of student is n . Then for each studentit will take O(1) time . So , for n number of student the total time will be required : O(1)+O(1)+ .... n = O(n)
Question 5 (8 marks] We want to identify students who might need some help. These are...
Students who successfully registered in the Intermediate Macroeconomics class are defined as “registered students” and those who could not successfully registered in the Intermediate Macroeconomics class are defined as “waiting list students”. Suppose that Marge works for a local university and she would like to find the long-run average fraction of students who are on waiting list per semester for this macroeconomics class. In this local university, “registered students” will drop out from this class if they fail their midterm...
In the United States, Scholastic Aptitude Test (SAT) scores are used by universities when selecting students for admission. Private companies and high schools offer SAT preparatory courses to help students improve their scores. This has led some people to ask, "Do SAT preparatory classes effectively increase SAT scores?" The following study, cited in a major newspaper, claims that they do (but not by a substantial amount): "A new study . . . shows that [SAT preparatory] classes are effective in...
I need help with - (c) Predict the final exam score for a student who misses five class periods. - at the bottom. Thank you! The accompanying data represent the number of days absent, x, and the final exam score, y, for a sample of college students in a general education course at a large state university. Number of absences, x Final exam score, y 0 88.5 1 86.1 2 83.2 3 81.6 4 77.4 5 74.6 6 65.3 7 ...
Question 5.[15 marks] [Chapters 7 and 8] Data from a random sample of a recent large second semester stage 2 statistics course (STATS 20x) were collected. Below is some information on the variables collected. Variable Grade The student's final grade for the course: A, B. C, D Pass Whether the student passed the course: Yes, No Programme The programme the student is enrolled in: BA, BCom BSc, Other Sex The student's sex: Female, Male ผhether the student regularly attended class:...
Question 2 (15 marks in total] University students are expected to attend all classes within a course. But university administrators and teaching staff are aware that student attendance can be adversely impacted by a variety of factors including travel time. Also, when attendance rates drop, there are often concerns expressed that it is students most at risk of performing poorly who are not attending class. To better understand some of these issues, a sample of undergraduate students was drawn from...
Use only a single SQL statement for each of the following questions 1 Give a listing of all the ssns,first names and the class descriptions of all the classes the students are taking. If there are no class _descriptions display 'No description is available yet'. (USE NVL) 2 Give a listing of only the lname and the class_code for students who are taking 'Introduction to C programming'. (Inner join) 3 Give a lising of all the class_descriptions and the number...
need help figuring my unknown and answering these questions please number every question and explain...studying for exam next week. Transmittance 4000 3500 3000 1500 1000 2500 2000 Wavenumbers (cm-1) 500 C:47.358 H:10.598 0:42.06% N:08 X:08 0 10 Solvent We were unable to transcribe this imageMS Analysis When labeling a signal, make sure you are clear which specific one you are labeling (there may be several that are dose! When drawing a structure for a signal, draw directly on the MS...
Need help asap. This course is management principle EXERCISE 2 Case study: Managing a seven-day dairy You are the owner and manager of a successful seven-day dairy. Your shop is open seven days a week from 7 a.m. until 10 p.m. A lot of university students live in the area and the shop is on a busy road with constant vehicle and foot traffic. Your busiest times are from 8 to 10 a.m., 12 noon to 1.30 p.m., 3 to...
I only need help for the last question "What Went Wrong?". Thank you! After seeing the problem, your classmate Alice immediately argues that we can apply a linear regression model, as the labels are numbers from 0-9, very similar to the example we learned from Unit 1. Though being a little doubtful, you decide to have a try and start simple by using the raw pixel values of each image as features. Alice wrote a skeleton code run_linear_regression_on_MNIST in main.py,...
Need some help I am not understanding this programming class at all. We are using Microsoft visual studio with python in console mode to complete these labs. Double-click to hide white space CIS115 Week 4 Lab Overview Title of Lab: Multiplication Table in Python Summary This week's lab is to create a simple multiplication table using nested loops and if statements. Prompt the user for the size of the multiplication table (from 2x2 to 10x10). Use a validation loop to...