Question: Problem Description: The number 12(N1) can be presented with 5(N2) and the four arithmetical operations as the example below 12=5+5+ (5/5) + (5/5) case

Problem Description: The number 12(N1) can be presented with 5(N2) and the four arithmetical operations as

Problem Description: The number 12(N1) can be presented with 5(N2) and the four arithmetical operations as the example below 12=5+5+ (5/5) + (5/5) case I case II case III Using MATLAB, please write your code to solve the following problem 12= (55/5) + (5/5) 12= (55+5)/5) As you know, 5s are used with 6, 5, and 4 times for each case. In case III, 5s are less used than other cases; 4 (N3)times used. =>n3 should be the minimum number Now, we want to make a solution code to calculate the minimum number N3 when N1 and N2 are given. Given (Input) N1 12 11 N2 5 2 Solution (Output) N3 3 Finalize your MATLAB function as below. function [N3] 12= (55+5)/5) 11= (22/2) myFunction (N1, N2) Limits: 10 < < < N1 < < 1000 1 < < < N2 < < < 9 Problem Description: The number 12(N1) can be presented with 5(N2) and the four arithmetical operations as the example below 12=5+5+ (5/5) + (5/5) case I case II case III Using MATLAB, please write your code to solve the following problem 12= (55/5) + (5/5) 12= (55+5)/5) As you know, 5s are used with 6, 5, and 4 times for each case. In case III, 5s are less used than other cases; 4 (N3)times used. =>n3 should be the minimum number Now, we want to make a solution code to calculate the minimum number N3 when N1 and N2 are given. Given (Input) N1 12 11 N2 5 2 Solution (Output) N3 3 Finalize your MATLAB function as below. function [N3] 12= (55+5)/5) 11= (22/2) myFunction (N1, N2) Limits: 10 < < < N1 < < 1000 1 < < < N2 < < < 9

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Solution Griven 12 and its representation with the nu... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!