# Coding guidelines

**All the guidelines should be followed without fail for timely acceptance of code. Failure to do so might result in rejection of your work. **

Visit this page and click on your proposed Scilab TBC. You will now get an option to download the Scilab code for the chosen TBC.

System Requirement

You have to use Scilab 6.1.0 and above for creating the Xcos examples.

You may use a different version of Scilab for executing the Scilab TBC code, if required.

You may use a Windows/Linux/Mac OS

If the 3rd solved problem from chapter 1 is to be represented (Example 1.3), then your file must be named as Ex1_3.xcos.

Dependency files

Use .sce extension for writing code while setting up the parameters for an Xcos diagram.

Use .sci extension for writing code for user defined functions.

These dependencies (if any) must be mentioned in a textbox clearly in the Xcos diagram.

Do not include problem statements/text from the book in the diagram.

Plotting

All the plots must have appropriate labels on its axes.

If a single plot contains several graphs then a legend must be added to help differentiate between different plots.

The symbols used in the code should be the same as those being used in the textbook. If you are unable to write a symbol, you can write the name of the symbol in words. For example, 'θ' can be written as 'theta'.

Check that you are using the correct formula while using in-built functions (For example, the angles must be converted to degree (or radians) before calculating the sine or cosine etc).

Label the input/output blocks and superblocks (if applicable) used in Xcos diagram using a textbox.

Label the numeric output blocks that display the results, with proper units.

If the

**textbook contains errors**in calculations/results,**mention**the same in the block diagram itself by using the textbox.If the degree of error is less than +/- 2 then

*"The answers vary due to round off error"*must be mentionedIf the degree of error is more than +/- 2 then

*"The answer provided in the textbook is wrong"*must be mentioned.