# Elec Engr Computer Methods

Elec Engr Computer Methods

I’m working on a C Programming exercise and need support.

Using C

1. Create a script that will take user input of 3 vertices to calculate the area of a triangle by using Heron’ Formula. You will need the “pow” function in “math.h” header file.

Your output should have the format of

-With the given vertices (Display Vertices) the area of the triangle is (The result.)

2. Create a script that will solve a set of simultaneous equations.

a, b, c, d, e, and f are user input.

Your script should be able to calculate x and y.

Also the script should ask the user whether he /she would like to continue on finding answers for other equations and then continue on with the answer “Y”.

Your output should have the format of

-With given values of “a”, “b”, “c”, “d”, “e”, and “f”, the answer for x is “Answer” and y is “Answer”

3. Create a script that will find the roots of quadratic equations “x2+3.8x+3.25=0” by using continuously changing the value of x within a certain range (I.E: -10<=x<=10. )

4. Create a script that will find the sum of the all multiples of 3 between two user input integers by using For Loop.

5. Create a script that will find all the prime numbers between user input integers.

6. Create a script with if, else if, and else conditionals to calculate the Total Resistance (R_T)

1) r1 , r2, and r3 are connected in series manner. (R_T= r1+r2+r3)

2) r1, r2, and r3 are connected in parallel manner.(R_T = 1/((1/r1)+(1/r2)+(1/r3)) )

3) r1 is connected to the parallelly connected r2 and r3 in series manner. (Let’s call this Combination) (R_T = r1 + r2xr3/(r2+r3) )

The output should be What is the resistance of R1? [You type in the value]

What is the resistance of R2? [You type in the value]

What is the resistance of R3? [You type in the value]

What kind of combination result are you looking for? [You type in S, P, or C]

The Total Resistance is [your result] ohms since r1, r2, r3 are connected in [series, parallel, combination] manner. Test the result with r1 = 10 Ω, r2 = 20 Ω, and r3 = 30 Ω.

7. Repeat problem 6. This time use “switch”.

* Do some reading on issues with scanf() when we have multiple user input

Grading: Problems 1 and 3 (2 Points – 1.50 Actual Scripts 0.5 Pseudo Codes)

Try to make Pseudo Code as detailed as possible

Problems 4,5,,6,7 (1 Points Each Scripts)

##### Looking for a Similar Assignment? Our ENL Writers can help. Get your first order at 15% off!

Hi there! Click one of our representatives below and we will get back to you as soon as possible.

Chat with us on WhatsApp