1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Ksenya-84 [330]
4 years ago
12

Consider that a system has two entities, Students, Instructors and Course. The Student has the following properties: student nam

e, ID, and GPA.The instructor has the following properties: name, ID, Salary and department name. Finally the Course has Name, ID , Instructor and array of 3 students.
Implement the above system taking into account the following requirements:

Define array of 4 Courses with instantiating all its properties.[5 points]
Assume that instructor1 and instructor2 are two objects of type Instructor, write a code that enables you to write: if (instructor1.isequal (instructor2)). The statement is true if the two objects have the same name and ID. [3 points]
Define a function with the following signature void PrintCSalary(Course []), The function prints the index and the name of the course that has Instructor with Max Salary. [3 points]
Define a function with the following signature void PrintMaxGPA(Course []), The function prints the index and the name of the course that has Max average of its Students GPA.[3 points]
Define a function that has the following signature Instructor * getInstByID(Course [], int id). The function returns a pointer to one of the instructors in the array of courses, who has the same id (sent to the function).[3 points]
Write a getCourseList(int ID) function that returns a list of courses that the student registered in.[3 points]
Engineering
1 answer:
tekilochka [14]4 years ago
5 0

Answer:

There's no answer ?

Explanation:

You might be interested in
Aiman is 80 inches tall. How tall is Aiman in centimeters? Show your work.
harkovskaia [24]
203.2 centimeters.
This is because 1 inch = 2.54 centimeters which means multiply 80 inches X 2.54 = 203.2 centimeters.
5 0
2 years ago
A motorist is driving his car at 60km/hr when he observes that a traffic light 250m ahead turns red. The traffic light is
Alecsey [184]

Explanation:

Okay soo-

Given-

u = 60 km/hr = 60×1000/3600=50/3 m/s

t = 20 s

s = 250 m

a = ?

v = ?

Solution -

Here, acceleration is uniform.

(a) According to 2nd kinematics equation,

s = ut + ½at^2

250 = 50/3 ×20 + 0.5×a×20×20

250-1000/3=200a

(750-1000)/3=200a

a = -250/(3×200)

a = -5/12

a = 0.4167 m/s^2

The required uniform acceleration of the car is 0.4167 m/s^2.

(b) According to 1st kinematics equation

v = u + at

v = 50/3 + (-5/12)×20

v = 50/3-25/3

v = 25/3

v = 8.33 m/s

The speed of the car as it passes the traffic light is 8.33 m/s.

Good luck!

5 0
3 years ago
1.The moist unit weights and degrees of saturation of a soil are given: moist unit weight (1) = 16.62 kN/m^3, degree of saturati
alexandr1967 [171]

Answer:

Gs = 2.647

e = 0.7986

Explanation:

We know that moist unit weight of soil is given as

\gamma_m \ or\ bulk\ density = \frac{(Gs+Se)\times \gamma_w}{(1+e)}

where,  \gamma_m = moist unit weight of the soil

Gs = specific gravity of the soil

S = degree of saturation

e = void ratio

\gamma_w = unit weight of water = 9.81 kN/m3

From data given we know that:

At 50% saturation,\gamma_m = 16.62 kN/m3

puttng all value to get Gs value;

16.62= \frac{(Gs+0.5*e)\timees 9.81}{(1+e)}

Gs - 1.194*e = 1.694 .........(1)

for saturaion 75%, unit weight = 17.71 KN/m3

17.71 = \frac{(Gs+0.75*e)\times 9.81}{(1+e)}

Gs - 1.055*e = 1.805 .........(2)

solving both  equations (1) and (2), we obtained;

Gs = 2.647

e = 0.7986

6 0
3 years ago
Write a function M-file that takes as input two matrices A and B, and as output produces the product by columns of the two matri
docker41 [41]

Answer:

Here is the code in Matlab for the function.

I have also attached the m file for function as well as the test run of the code  here and screenshot of the result.

Code:

function [ C ] = columnproduct( A, B )

% get the dimesnions of A

sizeA = size(A);

sizeB = size(B);

% check if columns of A are same as rows of B

if(sizeA(2) ~= sizeB(1))

   error('matrix dimensions do not match')

end

% initialize resultant matrix

C = [];

for i = 1:sizeB(2)

   % concatenating product of matrix A with each column of B

   C = [C A*B(:,i)];

end

end

7 0
3 years ago
Which is an example of a subsystem and system relationship?
Zanzabum

The example of a subsystem and system relationship is option

A) mechanical toggle, Xbox controller

Explanation:

  • Controls and Controllers are known as the mechanical, electro-mechanical, or electronic devices which are used to  input signals to change the conditions or values which are in processes or access to buildings, operators, gated areas, etc.
  • When you press and hold the given Shift button, these buttons which are chosen becomes an alternate inputs.
  • Normally, there are three controllers(PID) which are used in any of the process industries inorder to maintain and control the required setpoint.
  • an example of a subsystem and system relationship is a mechanical toggle, Xbox controller
  • Controllers improve the steadiness and state of accuracy by decreasing the steady state error. When the steady state accuracy gets better, the stability also improves.
  • Controllers are also used to help in reducing the unwanted offsets which are produced by the system.

6 0
3 years ago
Other questions:
  • When a traffic officer directs you proceed through the intersection
    6·1 answer
  • An integrated circuit is a set of microscopic electronic circuits etched onto a thin slice of ________ material such as silicon.
    7·1 answer
  • It is said that Archimedes discovered the buoyancy laws when asked by King Hiero of Syracuse to determine whether his new crown
    6·1 answer
  • An ideal gas expands in an adiabatic turbine from 1200 K and 900 kPa to 800 K. Determine the turbine inlet volume flow rate of g
    6·1 answer
  • What Do Solar Engineers Do?
    10·1 answer
  • Determine (with justification) whether the following systems are (i) memoryless, (ii) causal, (iii) invertible, (iv) stable, and
    10·1 answer
  • If you are working with an extension ladder that has 15 rungs in each of the two sliding sections, this
    12·1 answer
  • HELP PLEASE ! TYYYY!!!!!!!!!!!!!!!!!!!!!!!!
    13·1 answer
  • What were some of the challenges to safety resulting from such radical airframe designs as highly swept wings, high wing loading
    15·1 answer
  • Ethylene glycol, the ingredient in antifreeze, does not cause health problems because it is a clear liquid.
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!