Provide details on what you need help with along with a budget and time limit. Questions are posted anonymously and can be made 100% private.
Match with a Tutor
Studypool matches you to the best tutor to help you with your question. Our tutors are highly qualified and vetted.
Get Quality Help
Your matched tutor provides personalized help according to your question details. Payment is made only after you have completed your 1-on-1 session and are satisfied with your session.
EEL 2161 University of South Florida Computing Methods Questions
User Generated
onfnxr93
Programming
EEL 2161
University of South Florida
EEL
Description
Unformatted Attachment Preview
EEL 2161 Compuer Method Module 8 Homework
Problem 1. (2 Points)
(This is redoing of your previous homework problems. This time do this problem by using a user
defined function. Please create a script with A User defined function that DOES NOT takes
arguments AND does not return result value.)
Create a script that will take user input of 3 vertices (6 numbers) to calculate the area of a
triangle by using Heron’ Formula. You will need the “pow” function in “math.h” header file.
PLEASE create an ARRAY for Vertices.
Your output should have the format of
-With the given vertices (Display Vertices) the area of the triangle is (The result.)
Grading Rubric
100%
The Student
uploaded a file
70 %
0
40%
0
0%
0
User Defined
function (0.8
Points)
If user defined
function had right
structure for the
requirements.
Takes User input
and generates
accurate result.
Students
tried to do
something
with user
defined
functions
Students
tried to do
something
User defined function DOES
NOT EXIST
Takes input and
Result is Accurate
(1 Points)
If user defined
function did not
have 100%
right structure
for the
requirements.
Takes User
input and
generates result
with error.
File is uploaded
(0.2 Points)
***User defined function
DOES NOT EXIST
(Regardless of Taking User
Input and / or Accuracy of
the result)***
Problem 2. (3 Points)
Create a script that will calculate each row sum, each column sum and the TRACE of the
matrix (Trace of a matrix: sum of entries of a Matrix on the diagonal line). The TRACE line
should be found if and only if the User’s Matrix is Square (Row number == Column
number).
The sum has to be done by using a “USER DEFINED FUNCTION that takes
arguments but does not return value.”
• 1st) The user should be prompted to type in the row, column number first, 2nd) then type
in individual entries one by one.
Ex. This is a Square Matrix
1
6
11
16
21
2
7
12
17
22
3
8
13
18
23
4
9
14
19
24
5
10
15
20
25
This is NOT a Square Matrix
1
6
2
7
3
8
Grading Rubric
100%
The student
uploaded a file.
70 %
0
40%
0
0%
0
User Defined
function (1.5
Points)
If user defined
function had right
structure for the
requirements.
Takes User input
correctly and
generates accurate
result.
Students
tried to do
something
with user
defined
functions
Students
tried to do
something
User defined function DOES
NOT EXIST
Takes User input
and generates
accurate result. (1.2
Points)
If user defined
function did not
have 100%
right structure
for the
requirements.
Takes User
input and
generates result
with error.
File is uploaded
(0.3 Points)
***User defined function
DOES NOT EXIST
(Regardless of Taking User
Input and / or Accuracy of
the result)***
Suggested Output
Problem 3. (5 Points)
Use the given Taylor Series Expansion on Sine function
http://people.math.sc.edu/girardi/m142/handouts/10sTaylorPolySeries.pdf
to create a script that will compute sin(x) (Try your scripts with angles only between 0 and 90
degrees).
Requirement
1) All numerical Computations have to be done by using User defined functions.
2) The argument of the User defined function needs to be Degree, then your function
should change the degree to radian.
3) Power function SHOULD NOT TO BE USED. USE loop to compute power values
(x3, x5…) in your user defined function.
4) Factorial function SHOULD NOT TO BE USED. Use For loop for your factorials.
5) Create two script – One with a user defined function that will return the result
to the main part of your function – the result will be displayed by a printf() in
the main function and another script with a user defined function that will not
return the result to the main part – the result should be displayed by a printf() in
the user defined function.
Suggested Output!
Grading Rubric
100%
The student
uploaded a file.
70 %
0
40%
0
0%
0
User Defined
functions (3 Points)
If user defined
functions had right
structure for the
requirements.
Generates accurate
result.
Students
tried to do
something
with user
defined
functions
Students
tried to do
something
User defined functions DO NOT
EXIST
Result is Accurate
(for angles between
0 and 90 degrees)
(1.5 Points)
If user defined
functions did
not have 100%
right structure
for the
requirements.
Generates result
with error.
File is uploaded
(0.5 Points)
***User defined functions DO
NOT EXIST (Regardless of
Taking User Input and / or
Accuracy of the result)***
***
1) GRADING SHOULD STRICTLY BE BASED ON THE GRADING RUBRIC.
2) NO BASELESS PENALTY SHALL BE GIVEN. (PENALTY SHOULD BE BASED ON
THE RUBRIC, NOTHING ELSE.)
3) TA’s CAN ASSIGN 10 % BONUS POINT TO STUDENT’S WORK FOR JOB
EXTREMELY WELL DONE.
Purchase answer to see full
attachment
Would you like to help your fellow students? Are you in need of an additional source of income? Apply to become a tutor on Studypool! Our best tutors earn over $7,500 each month!