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

  Obtain the uncoded ber performance of bpsk modulation

Obtain the uncoded BER performance of BPSK modulation over AWGN and Rayleigh fading channels through computer simulation - Select a suitable range of Eb/NO so that you obtain the BER in the range of (approximately) 10-1 to 10-6 .

  Biorhythm- matlab problem

All three cycles started at zero when you were born. How long does it take until all three simultaneously return to that initial condition? How old were you, or will you be, on that date? Plot your biorhythm near that date. You should ?nd the lcm ..

  Provide matlab code as per the research paper

Provide MATLAB code as per the research paper. Research paper - Decimeter-Level Localization with a Single WiFi Access Point

  Create a function called freefall

Write a function called eapprox that takes the value of K as input and which them approximates e using the method described.

  First ten numbers of the sequence of pseudorandom numbers

write a program that gives the first ten numbers of the sequence of pseudorandom numbers

  Matlab m-script that will generate a damped sinusoid

1.) Write a MATLAB m-script that will generate a damped sinusoid (frequency = 440 Hz) with a time constant of 0.25 sec. Set the time axis for 0 to 6 time constants.

  What is a super-efficiency model

What is a super-efficiency model - distinguish the performance of best-practice DMUs

  Apply svm and baysain for classification

Took the output of segmentation as input and then apply svm and baysain for classification. I want exect(in 3*3 matrix) output as that results from svm and Bayesian both side. Took the fs4 in the code as input do apply the svm and bayesian algo..

  Write a matlab code using the switch statement

Solve the system of equations using the MATLAB functions or operators - Write a MATLAB script to plot the piece-wise function

  Make the size of the fixation dot a variable

Matlab and Psychtoolbox programming for Cognitive Neuroscience Summative Assignment - Make the size of the fixation dot a variable

  Write a function that will convert from kw to hp and and

problem engineers use both english and si units on a regular basis. here are some conversions factors for various

  Write a matlab script that draws the function

Solve numerically the advection equation using the central difference method. Choose appropriate boundary conditions so that the wave is entering on the left side (west side) and is coming out on the right side (east side). Show on the same graph ..

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