Choose a division or multiplication operation

Assignment Help MATLAB Programming
Reference no: EM132156717

Assignment

Write a Matlab script that works as below:

1. Take in 2 or 3 integers from the user

2. Ask the user to either choose a division or multiplication operation

3. Ask the user to either continue with the program or to quit

4. If the user chooses to continue, the program will again ask the user to input 2 or 3 integers and choose either a division or multiplication operation

5. If the user chooses to quit, the program will output all the calculations performed in a single image as shown below.

Example of output image for 7 sets of input values:

Distribution of marks:

1316_marks.jpg

3 marks Program outputs the image of the whole number of an input value.

Example:

Enter first integer: 568 Output image: 568

6 marks Program outputs the image of the multiplication solution of 2 integers in a single line

5 X 2 = 10

9 marks Program outputs the image of the division solution of 2 integers, including decimal places, in a single line

32/65 = 0.4923 I

12 marks Program outputs the image of the multiplication solution of 3 integers in a single line

5 x 6 x 8 = 240

15 marks Program outputs the image of the division solution of 3 integers, including decimal places, in a single line

23/43/12 = 0.044574

20 marks Program outputs the image of the solutions for multiple pairs of integers in multiple lines

2280_Outputs.jpg

22 marks Program does an error check to make sure that the divisional operation does not involves a division with zero. If zero was input as a 2nd or 3rd value for the division operation, the program will ask the user to re-enter the 2nd or 3rd value until a non-zero integer is entered.

25 marks Program outputs the image of the solutions for multiple pairs of integers in multiple lines, with the 1st multiplication/division symbol and the equal symbol aligned in a column.

619_Output1.jpg

Attachment:- Assignment.rar

Reference no: EM132156717

Questions Cloud

Determine the quality baseline for the project : With your "sponsor", determine the quality baseline for the project. What standards will you use?
Develop a pre-assessment in the social studies : Develop a pre-assessment in the social studies content area that aligns to the standards and unit that your mentor teacher shared with you during Clinical Field
Discuss how woolfs own experiences shaped her depiction : Discuss how Woolf's own experiences shaped her depiction of female characters and how Woolf contributed to contemporary feminism?
Designing layouts from minimize materials handling cost : Briefly discuss how the users can choose a suitable method for designing layouts from the Minimize Materials Handling Cost,
Choose a division or multiplication operation : ENG 60104 Computing Applications for Engineers - Program outputs the image of the multiplication solution of 2 integers in a single line
How is the expense budget developed : In a rehabilitation hospital, how is the expense budget developed?
Is a operating system a hardware or software : Is a Operating system a hardware or software and what is its use
How you will differentiate the instruction : Using the "Class Profile," select three students who are performing below or above grade level (at least one of each) and complete the template.
How do you understand the character of akakii akaievich : This story has had a tremendous influence on the development of Dostoevsky, Tolstoy, and many other 19th- and 20th-century writers.

Reviews

Write a Review

MATLAB Programming Questions & Answers

  Finite difference method

Use the finite difference method to calculate the temperature at the point specified since it is easier.

  Determine the necessary shell temperature

In a shell-and-tube heat exchanger, one fluid passes through a central tube while another fluid flows through an outer shell in the opposite direction. The purpose is to heat the fluid passing through the central tube.

  Find the integral of a function at an arbitrary location

Write a Matlab function to perform numerical integration of a set of evenly spaced data points using the trapezoidal rule

  Compute the speed of single-stage planetary gear train

Write a MATLAB function [speed] = planetary (N, emesh, first, last, arm) that computes the speed of a given link in a single-stage planetary gear train.

  Calculate and plot the error in the numerical derivative

Write a program to calculate and plot the error in the numerical estimate of the derivative.

  Create the graph using matlab functions

Create the graph, which contains a piecewise function where a line exists in the first interval, a parabola in the second interval, and the sine function in the third interval.

  Develop a simulation program

Develop a simulation program

  Create a vector in matlab

Create a three dimensional diagram of function.

  Open a named pipe and to read data from the pipe

Open a named pipe and to read data from the pipe in matlab

  Write the commands that will create the matrix

Write the commands that will create the matrix.

  Lagrange interpolating polynomial of degree

Lagrange interpolating polynomial of degree

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd