# Module 6 assignment

posted in: Research Paper | 0
1. Create a script that will take user input of 3 verticesto 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.)

1. 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”

1. 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.)
2. Create a script that will find the sum of the all multiples of 3 between two user input integers by using For Loop.
3. Create a script that will find all the prime numbers between user input integers.
4. 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 Ω.

1. 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

Problems4,5,,6,7 (1 Points Each Scripts)

Last Updated on October 7, 2019 by EssayPro