Menu driven modular program, MATLAB in Engineering

Application: Menu driven Modular Program

Numerous longer, more involved programs which have interaction with the user are menu-driven, that means that the program prints a menu of choices and then continues to loop to print the menu of choices until the user selects to end the program. A modular menu-driven program usually would have a function which presents the menu and gets the user's choice, and also functions to implement the action for each selection. Such functions may have subfunctions. The functions would also error-check the entire user input.

 

 

Posted Date: 10/19/2012 8:24:01 AM | Location : United States







Related Discussions:- Menu driven modular program, Assignment Help, Ask Question on Menu driven modular program, Get Answer, Expert's Help, Menu driven modular program Discussions

Write discussion on Menu driven modular program
Your posts are moderated
Related Questions
ischar function: The ischar function return the logical true if an array is a character array, or logical false if not. >> vec = 'EK127'; >> ischar(vec) ans =


Removing Whitespace Characters: The MATLAB has functions which will eliminate trailing blanks from the end of a string and/or leading blanks from the starting of a string.

Example of Plotting from a Function: For illustration, the function can be called as shown below:      >> y = [1:2:9].^3      y =     1  27  125  343  729

Displaying expressions: The good-looking function will show such expressions by using exponents; for illustration, >> b = sym('x^2') b = x^2 >> pretty(b)

Illustration of initializing the data structure: illustration of initializing the data structure by preallocating is here as shown: >> cyls(3) = struct('code', 'c', 'dimen

Finding a sting - function strfind: The function strfind does necessarily similar thing, except that the order of the arguments does make dissimilarity. The common form is str

readlenwid function: function call: [length, width] = readlenwid; function header: function [l,w] = readlenwid In the function call, not any argument is passed; henc

Intersect function and setdiff function: The intersect function rather than returns all the values which can be found in both of the input argument vectors. >> intersect(v

Passing Structures to Functions: The whole structure can be passed to a function, or separate fields can be passed. For illustration, here are the two distinct versions of a f