Gelöst


Maximum value in a matrix
Find the maximum value in the given matrix. For example, if A = [1 2 3; 4 7 8; 0 9 1]; then the answer is 9.

15 Tage vor

Gelöst


Add two numbers
Given a and b, return the sum a+b in c.

15 Tage vor

Gelöst


If-Elseif-Else
If a more than zero, b = true, if a = zero , b = zero, else, b = false.

16 Tage vor

Gelöst


If-Else
If a more than zero, b = true, else, b = false.

16 Tage vor

Gelöst


If
If a more than zero, then b = true.

16 Tage vor

Gelöst


Pizza!
Given a circular pizza with radius z and thickness a, return the pizza's volume. [ z is first input argument.] Non-scored bonus...

16 Tage vor

Gelöst


Solve a System of Linear Equations
Example: If a system of linear equations in x₁ and x₂ is: 2x₁ + x₂ = 2 x₁ - 4 x₂ = 3 Then the coefficient matrix (A) is: 2 ...

16 Tage vor

Gelöst


Brake Mean Effective Pressure (BMEP)
BMEP is a normalised measure of engine work output per cycle per unit displacement. It lets you compare engines of different siz...

16 Tage vor

Gelöst


Engine torque and RPM
Torque and power are related through rotational speed. Knowing brake power and engine RPM, you can back-calculate the torque del...

16 Tage vor

Gelöst


Find the Oldest Person in a Room
Given two input vectors: * |name| - user last names * |age| - corresponding age of the person Return the name of the ol...

16 Tage vor

Gelöst


Convert from Fahrenheit to Celsius
Given an input vector F containing temperature values in Fahrenheit, return an output vector C that contains the values in Celsi...

16 Tage vor

Gelöst


Calculate Amount of Cake Frosting
Given two input variables r and h, which stand for the radius and height of a cake, calculate the surface area of the cake you n...

16 Tage vor

Gelöst


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

16 Tage vor

Gelöst


Simulate full-stop emergency braking scenario.
Emergency braking events demand rapid deceleration to bring the vehicle safely to rest. Given initial vehicle speed and constant...

16 Tage vor

Gelöst


Compute optimal regenerative and friction brake torque blending.
Electric and hybrid vehicles combine regenerative braking with traditional friction braking to maximize energy recovery while en...

16 Tage vor

Gelöst


Estimate brake disc temperature rise during braking.
During braking, kinetic energy is converted into thermal energy, causing brake discs to heat up. Excessive temperature rise can ...

16 Tage vor

Gelöst


Compute optimal front–rear brake force distribution.
Modern braking systems dynamically distribute braking forces between front and rear axles to maintain stability, reduce stopping...

16 Tage vor

Gelöst


Compute wheel slip ratio during braking.
During braking, a difference develops between the vehicle’s forward speed and the rotational speed of its wheels. This differenc...

16 Tage vor

Gelöst


Estimate dynamic load transfer to front axle during braking.
During braking, load shifts from the rear axle to the front axle. Given mass, deceleration, center of gravity height, and wheelb...

16 Tage vor

Gelöst


Estimate brake line pressure required for a given force.
Hydraulic braking systems amplify pedal input to generate braking force. Given braking force and piston area, compute the hydrau...

16 Tage vor

Gelöst


Compute the required brake torque at wheel to stop the car
Brake torque defines how effectively braking force translates into wheel deceleration. Given braking force and wheel radius, det...

16 Tage vor

Gelöst


Compute braking force using vehicle mass and acceleration.
Compute braking force required to stop a vehicle of mass 'm' and with acceleration 'a' Remember: F = m × a.

16 Tage vor

Gelöst


Compute vehicle stopping distance using initial speed and constant deceleration.
Given vehicle speed v (m/s) and constant deceleration a (m/s²), compute stopping distance Remember: d = v² / (2a)

16 Tage vor

Gelöst


Kinetic energy calculation

16 Tage vor

Gelöst


Potential energy calculation

16 Tage vor

Gelöst


Total energy

16 Tage vor

Gelöst


Laws of motion 6

16 Tage vor

Gelöst


Laws of motion 5
Calculate the force is u are given mass and acceleration.

16 Tage vor

Gelöst


Laws of motion 4
Given the initial velocity 'u', final velocity 'v' and acceleration 'a', find the distance travelled.

16 Tage vor

Gelöst


Laws of motion 3

16 Tage vor

Mehr laden