Problem 1: Write a script file (file1.m) that defines the following three points that represents the
vertices of a triangle based off your student ID: ABCDEFG.
P1 = (A,B)
P2 = (C,D)
P3 = (E,F)
After defining these points in the script, call a function, TriangleNew, that inputs the three points and outputs the Area and the Perimeter of the triangle. Recall, the area of a triangle is one half times the base times the height. Also, the perimeter is the sum of the length of the three sides. If the triangle is a right triangle, the base and height are simply the two shorter lengths of the sides. If the triangle is not a right triangle, Heron’s formula can be used for the calculation of the area, A, based on s, the semi- perimeter. The semi-perimeter is just half of the actual perimeter and a, b, and c are the lengths of the three sides.
Within the function, TriangleNew, embed a subfunction, SideLength, that inputs two points and returns the length of the side connecting those two points. Additionally, embed another subfunction, Slope, that inputs two points and returns the slope of the line connecting those two points. Before leaving the TriangleNew function, write to the command window, formatted statements given the lengths (L12, L13, and L23) and slopes (m12, m13, m23) of the three sides of the triangle. After returning to the script file, write formatted statements giving the Area and Perimeter of the triangle. Additionally, pass out a string, type, to represent whether the triangle is an acute, a right, or an obtuse triangle.
Problem 2: (based on problem 1 on page 76) Write a function with header [tip] = myTipCalc(bill, party)
Where bill is the total cost of a meal and party is the number of people in the group. The tip should be calculated as 15% for a party of less than 6, 18% for a party less than 8, and 20% for a party of 8 or larger. It should give an error if the bill or the party is less than or equal to 0. Test cases:
>>t = myTipCalc(109.29, 3) t = 16.3935
>>t = myTipCalc(109.29, 7) t = 19.6722
I have a team of 10 people and all Ph.D. holders in Engineering, Computer Science, Humanities like Sociology, Psychology, Physics, Chemistry, Project Management, Information Technology etc.
I offer course work help on blackboard, pearsonlabs, safeassign, turnitin submissions to the students across United States and Australian Universities only.
I can also do Finite Element Analysis in ANSYS, circuit analysis in Multisim and other relevant software’s.
What I can offer;
Essays; Research Papers; Term Papers; Coursework Help on Blackboard; Literature Reviews; Numerical Problems in Science & Engineering etc.
Quality will be absolutely great and free from any plagiarism on Turnitin or safeassign.
Contact me;
Regards
Full Grade Experts
WhatsApp: +1-631-973-9497
$25 USD em 1 dia
4,9 (27 avaliações)
4,8
4,8
8 freelancers estão ofertando em média $34 USD for esse trabalho
Helo. Uzair here. I have done masters in Electrical engineering with research in Biomedical signal processing and machine learning.
I have more than 3 years of experience in MATLAB specially in signal processing and machine learning.
I am sure I can provide you a quality work.
Looking forward.
Regards
hello kindly assign the work and it will be done on time since this is my major module and am online always to help out with this skills Algorithm, Engineering, Mathematics, Matlab and Mathematica, Software Architecture.