<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://script.spoken-tutorial.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://script.spoken-tutorial.org/index.php?action=history&amp;feed=atom&amp;title=GUI-in-Scilab%2FC2%2FCreating-a-GUI-based-Interest-calculator%2FEnglish</id>
		<title>GUI-in-Scilab/C2/Creating-a-GUI-based-Interest-calculator/English - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://script.spoken-tutorial.org/index.php?action=history&amp;feed=atom&amp;title=GUI-in-Scilab%2FC2%2FCreating-a-GUI-based-Interest-calculator%2FEnglish"/>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=GUI-in-Scilab/C2/Creating-a-GUI-based-Interest-calculator/English&amp;action=history"/>
		<updated>2026-04-07T15:33:25Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.23.17</generator>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php?title=GUI-in-Scilab/C2/Creating-a-GUI-based-Interest-calculator/English&amp;diff=55554&amp;oldid=prev</id>
		<title>Iswariyas at 10:37, 17 September 2021</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=GUI-in-Scilab/C2/Creating-a-GUI-based-Interest-calculator/English&amp;diff=55554&amp;oldid=prev"/>
				<updated>2021-09-17T10:37:40Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;a href=&quot;https://script.spoken-tutorial.org/index.php?title=GUI-in-Scilab/C2/Creating-a-GUI-based-Interest-calculator/English&amp;amp;diff=55554&amp;amp;oldid=55460&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>Iswariyas</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php?title=GUI-in-Scilab/C2/Creating-a-GUI-based-Interest-calculator/English&amp;diff=55460&amp;oldid=prev</id>
		<title>Iswariyas: Created page with &quot;'''Title of script''': Creating a '''GUI''' based '''Interest''' calculator  '''Author: Rashmi Patankar and Iswariya Sasikumar'''   {| class= &quot;wikitable&quot; ! '''Visual Cue''' !...&quot;</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=GUI-in-Scilab/C2/Creating-a-GUI-based-Interest-calculator/English&amp;diff=55460&amp;oldid=prev"/>
				<updated>2021-08-06T18:13:45Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;#039;&amp;#039;&amp;#039;Title of script&amp;#039;&amp;#039;&amp;#039;: Creating a &amp;#039;&amp;#039;&amp;#039;GUI&amp;#039;&amp;#039;&amp;#039; based &amp;#039;&amp;#039;&amp;#039;Interest&amp;#039;&amp;#039;&amp;#039; calculator  &amp;#039;&amp;#039;&amp;#039;Author: Rashmi Patankar and Iswariya Sasikumar&amp;#039;&amp;#039;&amp;#039;   {| class= &amp;quot;wikitable&amp;quot; ! &amp;#039;&amp;#039;&amp;#039;Visual Cue&amp;#039;&amp;#039;&amp;#039; !...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;'''Title of script''': Creating a '''GUI''' based '''Interest''' calculator&lt;br /&gt;
&lt;br /&gt;
'''Author: Rashmi Patankar and Iswariya Sasikumar'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class= &amp;quot;wikitable&amp;quot;&lt;br /&gt;
! '''Visual Cue'''&lt;br /&gt;
! '''Narration'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Title Slide'''&lt;br /&gt;
|&lt;br /&gt;
Hello and welcome to the Spoken Tutorial on&lt;br /&gt;
&lt;br /&gt;
“'''Creating a GUI based Interest calculator”.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Learning Objectives'''&lt;br /&gt;
|&lt;br /&gt;
In this tutorial, we will:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Learn about '''Radiobuttons''' and&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Calculate simple and compound interest using '''GUI.'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''System Requirements'''&lt;br /&gt;
&lt;br /&gt;
'''Only Narration'''&lt;br /&gt;
|&lt;br /&gt;
To record this tutorial, I am using&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;'''Windows 10 OS'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;'''Scilab 6.1.0 and'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;'''GUI Builder Toolbox 4.2.1'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The process demonstrated in this tutorial is identical in '''Linux OS''' also.&lt;br /&gt;
&lt;br /&gt;
Annotations are added to the tutorial if there are any differences.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Pre-requisites'''&lt;br /&gt;
&lt;br /&gt;
https://spoken-tutorial.org&lt;br /&gt;
|&lt;br /&gt;
To follow this tutorial:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;The learner must have basic knowledge of '''Scilab''' and '''GUI Builder toolbox.'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;For pre-requisite '''Scilab''' tutorials please visit this website.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Code Files'''&lt;br /&gt;
|&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;The files used in this tutorial are provided in the '''Code files''' link.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Please download and extract the files.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Make a copy and then use them while practising.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| What is a '''Radiobutton'''?&lt;br /&gt;
|&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;A '''Radiobutton''' is a button with two states.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;They are intended to be mutually exclusive.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;As a result, at any given time only one '''button''' is in a selected state.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
Objects to calculate '''simple''' and '''compound interest'''&lt;br /&gt;
|&lt;br /&gt;
To calculate the '''interest''', we need three '''Edit boxes''' to take user inputs.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;The first '''Edit box''' for principal amount.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;The second '''Edit box''' for rate of interest.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;The third '''Edit box''' for time.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After that, we need two '''Radiobuttons''' to calculate Simple and Compound interest.&lt;br /&gt;
&lt;br /&gt;
Lastly, one '''Text''' box is required to display the answer.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUIBuilder''' Palette,&lt;br /&gt;
&lt;br /&gt;
Video-editor: Please put a textbox on screen. “guiFigure.sce”.&lt;br /&gt;
&lt;br /&gt;
Hover over '''GUIBuilder''' Palette and '''Graphic window number 1.'''&lt;br /&gt;
&lt;br /&gt;
Hover over three '''Edit''' boxes and one '''Text''' box&lt;br /&gt;
|&lt;br /&gt;
I have already opened the '''guiFigure.sce''' file using the '''GUIBuilder toolbox'''.&lt;br /&gt;
&lt;br /&gt;
The '''GUIBuilder Palette''' and '''Graphic window number 1''' open up.&lt;br /&gt;
&lt;br /&gt;
The graphic window shows the '''GUI''' with three '''Edit''' boxes and one '''Text''' box.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUIBuilder Palette,'''&lt;br /&gt;
&lt;br /&gt;
hover over the first '''Edit''' box.&lt;br /&gt;
&lt;br /&gt;
Video-editor: Please put a textbox on screen. “String: Enter principal amount, Tag: ed_principal”&lt;br /&gt;
| The first '''Edit''' box has the '''String''' ‘'''Enter principal amount’''' with '''Tag ‘ed_principal’.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUIBuilder''' Palette,&lt;br /&gt;
&lt;br /&gt;
hover over the second '''Edit''' box.&lt;br /&gt;
&lt;br /&gt;
Video-editor: Please put a textbox on screen. “String: Enter rate of interest, Tag: ed_rate”&lt;br /&gt;
| The second '''Edit''' box has the '''String ‘Enter rate of interest’''' with '''Tag ‘ed_rate’.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUIBuilder''' Palette,&lt;br /&gt;
&lt;br /&gt;
hover over the third '''Edit''' box. Video-editor: Please put a textbox on screen. “String: Enter time, Tag: ed_time”&lt;br /&gt;
| The third '''Edit''' box has the '''String ‘Enter time’''' with '''Tag ‘ed_time’.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''GUIBuilder''' Palette,&lt;br /&gt;
&lt;br /&gt;
hover over the '''Text''' box.&lt;br /&gt;
&lt;br /&gt;
Video-editor: Please put a textbox on screen. “String: UnName4, Tag: txt_answer”&lt;br /&gt;
| The '''Text''' box has the '''String ‘UnName4’''' with '''Tag ‘txt_answer’'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
| Now l will add two '''Radiobuttons''' for '''Simple interest''' and '''Compound interest'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
On '''GUIBuilder Palette''',&lt;br /&gt;
&lt;br /&gt;
click '''Radiobutton.'''&lt;br /&gt;
| Go to '''GUIBuilder Palette''' and click on '''Radiobutton'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
On '''Scilab Multiple Values Request''' window,&lt;br /&gt;
&lt;br /&gt;
type '''rd_simple''' and type '''Simple interest.'''&lt;br /&gt;
&lt;br /&gt;
Click on '''OK.'''&lt;br /&gt;
|&lt;br /&gt;
Let us type '''rd_simple''' as the '''Tag''' and '''Simple interest''' as the '''String'''.&lt;br /&gt;
&lt;br /&gt;
Then click on '''OK'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
On '''Graphic window number 1,'''&lt;br /&gt;
&lt;br /&gt;
place '''Radiobutton''' in the middle left.&lt;br /&gt;
&lt;br /&gt;
Hover cursor over '''Simple''' '''interest''' '''Radiobutton'''.&lt;br /&gt;
|&lt;br /&gt;
Let us place this '''Radiobutton''' in the middle left of '''Graphic window number 1'''.&lt;br /&gt;
&lt;br /&gt;
'''‘Simple interest’ Radio button''' appears.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
On '''GUIBuilder Palette''',&lt;br /&gt;
&lt;br /&gt;
click '''Radiobutton.'''&lt;br /&gt;
| Let us take another '''Radiobutton''' for the '''Compound interest'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
On '''Scilab Multiple Values Request''' window,&lt;br /&gt;
&lt;br /&gt;
type '''rd_compound''' and type '''Compound interest.'''&lt;br /&gt;
&lt;br /&gt;
Click on '''OK.'''&lt;br /&gt;
|&lt;br /&gt;
Now I will type '''rd_compound''' as the '''Tag''' and ‘'''Compound interest’''' as the '''String'''.&lt;br /&gt;
&lt;br /&gt;
Then click on '''OK'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
On '''Graphic window number 1,'''&lt;br /&gt;
&lt;br /&gt;
place '''Radiobutton''' in the middle right.&lt;br /&gt;
&lt;br /&gt;
Hover cursor over '''Radiobutton'''&lt;br /&gt;
|&lt;br /&gt;
Place this '''Radiobutton''' next to the '''Simple interest Radiobutton'''.&lt;br /&gt;
&lt;br /&gt;
‘'''Compound interest’ Radiobutton''' appears.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
| Now the '''GUI''' part is completed.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
On '''GUIBuilder Palette''' window,&lt;br /&gt;
&lt;br /&gt;
'''Generate&amp;amp;gt;&amp;amp;gt;Generate GUI code.'''&lt;br /&gt;
|&lt;br /&gt;
Let us save the file.&lt;br /&gt;
&lt;br /&gt;
Go to the '''GUIBuilder Palette'''.&lt;br /&gt;
&lt;br /&gt;
Click on '''Generate''' and then on the '''Generate GUI code'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Save as '''interest-calculator'''.&lt;br /&gt;
&lt;br /&gt;
Click on '''Save.'''&lt;br /&gt;
&lt;br /&gt;
Video-editor: Pls put a textbox on screen. “In Ubuntu Linux OS, click on Ok button.”&lt;br /&gt;
|&lt;br /&gt;
I will save this file as '''interest-calculator.'''&lt;br /&gt;
&lt;br /&gt;
Click on '''Save'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
On '''GUI created window,'''&lt;br /&gt;
&lt;br /&gt;
click on '''OK.'''&lt;br /&gt;
|&lt;br /&gt;
A pop up opens with a message “'''GUI created successfully'''.”&lt;br /&gt;
&lt;br /&gt;
Click on '''OK'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
On '''SciNotes''' window,&lt;br /&gt;
&lt;br /&gt;
highlight '''handles''' for '''principal, rate, time, simple interest, compound interest''' and '''answer'''.&lt;br /&gt;
|&lt;br /&gt;
You can see that the corresponding '''Scilab code''' has been generated.&lt;br /&gt;
&lt;br /&gt;
Notice the '''handles''' and '''properties''' of the objects we took on a '''graphic window'''.&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''handles.ed_principal'''.&lt;br /&gt;
| '''handles.ed_principal''' is the '''handle''' for principal amount.&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''handles.ed_rate'''.&lt;br /&gt;
| '''handles.ed_rate''' is the '''handle''' for rate.&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''handles.ed_time'''.&lt;br /&gt;
| '''handles.ed_time''' is the '''handle''' for time.&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''handles.txt_answer'''.&lt;br /&gt;
| '''handles.txt_answer''' is the '''handle''' for answer'''.'''&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''handles.rd_simple'''.&lt;br /&gt;
| '''handles.rd_simple''' is the '''handle''' for simple interest.&lt;br /&gt;
|-&lt;br /&gt;
| Highlight '''handles.rd_compound'''.&lt;br /&gt;
| '''handles.rd_compound''' is the '''handle''' for compound interest.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Hover cursor over '''rd_simple_callback'''&lt;br /&gt;
&lt;br /&gt;
function.&lt;br /&gt;
| Now let us write a '''function definition''' for '''rd_simple_callback function'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''SciNotes''' window,&lt;br /&gt;
&lt;br /&gt;
type within '''rd_simple_callback'''.&lt;br /&gt;
&lt;br /&gt;
'''handles.rd_simple.value = 1'''&lt;br /&gt;
&lt;br /&gt;
'''handles.rd_compound.value = 0'''&lt;br /&gt;
&lt;br /&gt;
'''Principal = strtod(handles.ed_principal.string)'''&lt;br /&gt;
&lt;br /&gt;
'''Rate = strtod(handles.ed_rate.string)'''&lt;br /&gt;
&lt;br /&gt;
'''Time = strtod(handles.ed_time.string)'''&lt;br /&gt;
&lt;br /&gt;
'''SI = (Principal * Rate * Time)/100'''&lt;br /&gt;
&lt;br /&gt;
'''handles.txt_answer.string = string(SI)'''&lt;br /&gt;
|&lt;br /&gt;
Enter the code as seen here with the same '''syntax'''.&lt;br /&gt;
&lt;br /&gt;
The same code can be found under the code files section.&lt;br /&gt;
&lt;br /&gt;
You can use it as explained earlier in this tutorial.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''handles.rd_simple.value = 1'''&lt;br /&gt;
&lt;br /&gt;
'''handles.rd_compound.value = 0'''&lt;br /&gt;
|&lt;br /&gt;
After clicking the '''Simple interest Radiobutton-'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;This line will select the '''Simple interest Radiobutton'''.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;The following line will deselect the '''Compound interest''' '''Radiobutton'''.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This way only one '''button''' remains selected.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''Principal = strtod(handles.ed_principal.string)'''&lt;br /&gt;
| Next line then assigns the user input for principal value to variable '''‘Principal’'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''Rate = strtod(handles.ed_rate.string)'''&lt;br /&gt;
| Its next line assigns the user input for rate of interest to variable '''‘Rate’'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''Time = strtod(handles.ed_time.string)'''&lt;br /&gt;
| The further line assigns the user input for time to the variable '''‘Time’'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''SI = (Principal * Rate * Time)/100'''&lt;br /&gt;
|&lt;br /&gt;
Notice the next line.&lt;br /&gt;
&lt;br /&gt;
This equation will perform the calculations.&lt;br /&gt;
&lt;br /&gt;
The final result will be stored in the variable '''‘SI''''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''handles.txt_answer.string = string(SI)'''&lt;br /&gt;
| The last line will give the value of the variable '''‘SI’''' to the '''Text''' box.&lt;br /&gt;
|-&lt;br /&gt;
| Hover cursor over '''rd_compound_callback''' function.&lt;br /&gt;
| Next I will write a function definition for '''rd_compound_callback''' function'''.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Cursor on '''SciNotes''' window,&lt;br /&gt;
&lt;br /&gt;
type within '''rd_compound_callback'''.&lt;br /&gt;
&lt;br /&gt;
'''handles.rd_compound.value = 1'''&lt;br /&gt;
&lt;br /&gt;
'''handles.rd_simple.value = 0'''&lt;br /&gt;
&lt;br /&gt;
'''Principal = strtod(handles.ed_principal.string)'''&lt;br /&gt;
&lt;br /&gt;
'''Rate = strtod(handles.ed_rate.string)'''&lt;br /&gt;
&lt;br /&gt;
'''Time = strtod(handles.ed_time.string)'''&lt;br /&gt;
&lt;br /&gt;
'''CI = (Principal *(1+( Rate/100))^ Time) - Principal'''&lt;br /&gt;
&lt;br /&gt;
'''handles.txt_answer.string = string(CI)'''&lt;br /&gt;
|&lt;br /&gt;
Enter the code as seen here with the same '''syntax'''.&lt;br /&gt;
&lt;br /&gt;
The same code can be found under the '''Code files''' section.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''handles.rd_compound.value = 1'''&lt;br /&gt;
&lt;br /&gt;
'''handles.rd_simple.value = 0'''&lt;br /&gt;
|&lt;br /&gt;
This action is similar to what we have seen earlier.&lt;br /&gt;
&lt;br /&gt;
After clicking the '''Compound interest''' '''Radiobutton-'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;The first line will now select the '''Compound interest''' '''Radiobutton'''.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;The next line will deselect the '''Simple interest Radiobutton'''.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''Principal = strtod(handles.ed_principal.string)Rate = strtod(handles.ed_rate.string)'''&lt;br /&gt;
&lt;br /&gt;
'''Time = strtod(handles.ed_time.string)'''&lt;br /&gt;
| Notice the next three lines are the same as in the '''rd_simple_callback function.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''CI = (Principal *(1+( Rate/100))^ Time) - Principal'''&lt;br /&gt;
|&lt;br /&gt;
The next line will calculate the '''Compound interest'''.&lt;br /&gt;
&lt;br /&gt;
The final result will be stored in '''variable ‘CI'.'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Highlight,&lt;br /&gt;
&lt;br /&gt;
'''handles.txt_answer.string = string(CI)'''&lt;br /&gt;
| The last line will give the value of '''variable ‘CI’''' to the '''Text''' box.&lt;br /&gt;
|-&lt;br /&gt;
| Press '''Ctrl+S.'''&lt;br /&gt;
| Let us save the '''Scilab code''' by pressing '''Ctrl''' and '''S''' keys together.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
On '''Scinotes''' window,&lt;br /&gt;
&lt;br /&gt;
'''Execute'''&amp;amp;gt;&amp;amp;gt;'''file''' '''with echo'''&lt;br /&gt;
|&lt;br /&gt;
Execute this by clicking '''Execute''' on the '''menubar''' and then on '''File with echo'''.&lt;br /&gt;
&lt;br /&gt;
'''Graphic window number 2''' opens.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
On '''Graphic window number 2,'''&lt;br /&gt;
&lt;br /&gt;
delete '''Enter the principal amount here. '''&lt;br /&gt;
&lt;br /&gt;
Type '''8000.'''&lt;br /&gt;
&lt;br /&gt;
Delete '''Enter rate of interest.'''&lt;br /&gt;
&lt;br /&gt;
Type '''7'''.&lt;br /&gt;
&lt;br /&gt;
Delete '''Enter time.'''&lt;br /&gt;
&lt;br /&gt;
Type '''3'''.&lt;br /&gt;
|&lt;br /&gt;
Now let us test the '''GUI.'''&lt;br /&gt;
&lt;br /&gt;
Delete the '''string “Enter principal amount”''' from the '''Edit''' box and type '''8000'''.&lt;br /&gt;
&lt;br /&gt;
Delete the '''string “Enter rate of interest”''' from the '''Edit''' box and type '''7'''.&lt;br /&gt;
&lt;br /&gt;
Delete the '''string “Enter time”''' from the '''Edit''' box and type '''3'''.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
On '''Graphic window number 1,'''&lt;br /&gt;
&lt;br /&gt;
click on '''Simple interest radiobutton'''.&lt;br /&gt;
&lt;br /&gt;
Hover cursor over '''Text''' box.&lt;br /&gt;
|&lt;br /&gt;
Then click on the '''Simple''' '''interest''' '''Radiobutton.'''&lt;br /&gt;
&lt;br /&gt;
The '''Text''' box shows the desired answer of '''1680''' as expected.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
On '''Graphic window number 1,'''&lt;br /&gt;
&lt;br /&gt;
click on '''Compound interest radiobutton'''.&lt;br /&gt;
&lt;br /&gt;
Hover cursor over '''Text''' box.&lt;br /&gt;
|&lt;br /&gt;
Next click on the '''Compound''' '''interest''' '''Radiobutton.'''&lt;br /&gt;
&lt;br /&gt;
Now the '''Text''' box shows the desired answer of '''1800.344''' as expected.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Summary'''&lt;br /&gt;
|&lt;br /&gt;
This brings us to the end of this tutorial.  Let us summarise.&lt;br /&gt;
&lt;br /&gt;
In this tutorial, we have:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Learnt about '''Radiobuttons''' and&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Calculated simple and compound interest using '''GUI.'''&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
|&lt;br /&gt;
As an assignment, please do the following.&lt;br /&gt;
&lt;br /&gt;
Create a '''GUI''' which has&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;An '''Edit''' box to take user input in meters.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;Two '''Radiobuttons''' to convert it into inches and feet.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;One '''Text''' box to display the output.&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''About Spoken Tutorial Project'''&lt;br /&gt;
|&lt;br /&gt;
The video at the following link summarises the '''Spoken Tutorial''' project.&lt;br /&gt;
&lt;br /&gt;
Please download and watch it.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Spoken Tutorial Workshops'''&lt;br /&gt;
|&lt;br /&gt;
We conduct workshops using '''Spoken Tutorials''' and give certificates.&lt;br /&gt;
&lt;br /&gt;
Please contact us.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Answers for THIS Spoken Tutorial'''&lt;br /&gt;
| Please post your timed queries in this forum.&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''FOSSEE Forum'''&lt;br /&gt;
| Please post your general and technical queries on '''Scilab''' in this forum.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Show Slide:&lt;br /&gt;
&lt;br /&gt;
'''Textbook Companion project'''&lt;br /&gt;
|&lt;br /&gt;
The '''FOSSEE''' team coordinates the '''TBC''' project.&lt;br /&gt;
&lt;br /&gt;
For more details, please visit this site.&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''Lab Migration'''&lt;br /&gt;
|&lt;br /&gt;
The '''FOSSEE''' team coordinates the '''Lab Migration''' project.&lt;br /&gt;
&lt;br /&gt;
For more details, please visit this site.&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''Acknowledgement'''&lt;br /&gt;
| The '''Spoken Tutorial''' project is funded by the '''Ministry of Education, Government of India'''.&lt;br /&gt;
|-&lt;br /&gt;
| Show Slide: '''Thank you'''&lt;br /&gt;
|&lt;br /&gt;
This is '''Iswariya Sasikumar,''' a '''FOSSEE''' intern 2021, IIT Bombay signing off.&lt;br /&gt;
&lt;br /&gt;
Thanks for joining.&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Iswariyas</name></author>	</entry>

	</feed>