ECMM171P - Programming For Engineers MATLAB Assignment

Download Solution Order New Solution

Assignment Task

1. Write a program (script) that asks the user to enter the score of coursework (between 0 and 100). The program should then display this score and the corresponding grade found according to

20240719111053AM-61776332-1563936005.PNG

2. The number π can be approximated by the following series,

20240719111053AM-1404878184-726033989.PNG

  • Write a program (script) that uses a while loop to evaluate the above series and calculates the value of π. To terminate the loop, use the condition that the next term to be evaluated in the series is less than or equal to 1 × 10−6.
  • Your program should save all the estimates of π in a variable called ‘ pie ’ and then plot the first 100

3. Write a Matlab function which takes as an input two numbers a and b, and checks whether the digits of b can be rearranged to give a (or vice versa). For example, the digits of numbers 123 and 321 can be rearranged to give the same number. The function should produce as an output a single variable with a value of 1 when the the rearrangement is possible and 0 when it is not. HINT: consider converting your number to a string to identify each digit of the number.

4. Write a function which takes as an input an array of numbers, and then produces another array which has the numbers mixed according to the following:

  • If the size of the array is even, then the function separates the array into two equal parts, and then interleaves the two parts.
  • If the size of the array is odd, then it separates the array into two parts of size (n+1)/2 and (n-1)/2, where n is the size of the array, and then interleaves the two parts. As an example, consider you are given the array containing 5 numbers: 1 2 3 4 5, then the result of the mixing will be: 1 4 2 5 3 Please consider that the input will be a row or column array (and not a matrix). 

5. Your code will receive an additional [10%] of discretionary marks relating to coding style, comments, structure of code and efficiency. Programs with no comments will receive 20% less than what would normally be awarded.

This Engineering has been solved by our PhD Experts at My Uni Paper. Our Assignment Writing Experts are efficient in providing a fresh solution to this question. We are serving more than 10000+ Students in Australia, the UK, and the US by helping them to score HD in their academics. Our Experts are well-trained to follow all marking rubrics and referencing styles.

Be it a used or new solution, the quality of the work submitted by our assignment experts remains unhampered. You may continue to expect the same or even better quality with the used and new assignment solution files respectively. There’s one thing to be noticed you could choose one between the two and acquire an HD either way. You could choose a new assignment solution file to get yourself an exclusive, plagiarism (with free Turnitin file), expert quality assignment or order an old solution file that was considered worthy of the highest distinction.

Get It Done! Today

Country
Applicable Time Zone is AEST [Sydney, NSW] (GMT+11)
+

Every Assignment. Every Solution. Instantly. Deadline Ahead? Grab Your Sample Now.