Write a program in assembly language using 2-Dimenisonal Array and display the value 20 in MIPS
Draw a binary search tree and AVL tree from the following traversals:
{15, 5, 20, 70, 3, 10, 60, 90, 16}
· Convert Binary Search Tree into Binary Tree such that sum of all greater keys is added to every key and Write a code in java to Convert Binary Search Tree drawn into Balanced Binary Search Tree·
1
TOPIC: SQL Stored procedures:
S_ID
101
201
301
401
501
601
Name
Ella
Christian
Sofia
Lillian
John
Joseph
Gender
F
M
F
F
M
M
City
California
Texas
Arizona
Maryland
California
Hawaii
Attendance %
69
88
68
82
60
72
Quiz 1 (10)
5
6
5
6
7
8
Quiz 2 (10)
8
7
2
3
5
6
Quiz 3 (10)
6
7
5
4
8
Assign 1(10)
5
5
8
5
9
5
Assign 2 (15)
12
11
10
9
8
14
Assign 3 (10)
7
6
3
7
6
4
Final (45)
34
43
26
34
41
22
T_ID CourseName S_ID
1101 Digital marketing 101
1102 AI and data science. 301
1103 Web development 401
1104 Cyber Security. 201
CASE: The above tables are extracted an examination department of an institution. The examination department wants to have a consolidated total of students’ scores in each subject, where, the weightage of quizzes, assignments and attendance are 25%, 35% and 5% respectively. The remaining weightage belongs to the final term result. Also, they requested the IT department for a procedure which generates Letter Grades and respective Grade Points (as mentioned in the table below). As the institution has many campuses over the country, they also need to have a City-wise students’ progress for campus-wise comparison.
Marks Grade Points
88-100 A. 4
81-87. B+ 3.5
74-80. B. 3
67-73. C+ 2.5
60-66. C 2
Below 60 F. 0
Suppose that a bird watching club has collected data on the number of sightings of 20 different
bird species in each of 100 different cities. The data has been stored in an two dimensional array
as:
int sightings[20][100];
The value stored in sightings [i][j] is the number of times that a bird belonging to
species number i was sighted in city number j.
(i)
Write a code segment that will compute and print the total number of bird sightings for
city number 0, then for city number 1, and so forth, up to city number 99.
(ii)
Let's say that a species is endangered if it has been sighted in only 4 cities or fewer.
(Species number i was sighted in city number j if sightings[i][j] is greater than zero.) Write
a code segment that will print a list of all the species that are endangered.
in one way selection, if a semicolon is placed after the expression in a if statement, the expression in the if statement is it always true
Explain why the scenario below fails to ensure the likelihood of error free code.
Situation: Sam has been organized about his code. He uses code hinting to help him write code faster, and uses the find and replace all function to
edit faster.
Develop a C++ program of the givenUML Class diagram and program description below. Program Description:An application that would compute and display the total area which is the summation of all the areas of the three given shapes (Pentagon, Square, Triangle). The sides of the pentagon, square and triangle are all equal.
1.
Create a class named Student. A Student has fields for an ID number, number of credit hours earned, and number of points earned.
(For example, many schools compute grade point averages based on a scale of
4, so a three
-
credit
-
hour class in which a student earns an A is worth 12 points.)
a. Create 5 objects under Student class.
b. Include procedure to assign values to ID number, number of credit hours of each student. Also an input f or the standard scale
c. Display Students ID and number of credit hours with the computed points earned.
d. Compute for an average points earned of the student