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
printrectarea function: function call: printrectarea(length, width) function header: function printrectarea(len, wid)   In the function call, there are two argume

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

Program of passing arguments to functions: This was an illustration of a function which did not receive any input arguments nor did it return any output arguments; it easily a

Evaluating a string: The function eval is used to compute a string as a function. For illustration, below is the string 'plot(x)'is interpreted to be a call to plot the functi

Indexing into Vectors of structures: Frequently, when the data structure is a vector of structures, it is essential to iterate through the vector in order by various fields. F

Example Exit modular program: In the illustration below, the user  Chose the Limit; -   Whenever prompted for n, entered the two invalid values before finally ente

Preallocating a Vector: There are necessarily two programming techniques that can be used to simulate the cumsum function. One technique is to begin with an empty vector and c

Scaling:   change a row by multiplying it by a non-zero scalar sri →  ri For illustration, for the matrix:

Creating a cell array: The other method of creating a cell array is easy to assign values to particular array elements and build it up element by element. Though, as explained

Function call: In the function call, not any arguments are passed so there are no input arguments in the function header. The function returns an output argument, therefore th