<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[CS508 Assignment 2 Solution and Discussion]]></title><description><![CDATA[<p dir="auto">Assignment No. 02<br />
Semester Fall 2019<br />
CS508-  Modern Programming Languages	<br />
Total Marks: 20</p>
<p dir="auto">Due Date:29 November 2019<br />
Instructions<br />
Please read the following instructions carefully before solving &amp; submitting assignment:<br />
It should be clear that your assignment will not get any credit  if:<br />
•	The assignment is submitted after due date.<br />
•	The submitted assignment does not open or file is corrupt.<br />
•	The assignment is completely or partially copied from (other student or ditto copied from handouts or internet).<br />
•	Student ID is not mentioned in the assignment File or name of file is other than student ID.<br />
•	The assignment is not submitted in .rar format.</p>
<p dir="auto">Submission details<br />
Following files must be submitted in a single zip or rar file.<br />
•	Code file(s)<br />
•	A .gif file which shows working of your application (For Recording .gif a software named Screentogif is uploaded on LMS, or you can use any other gif recording tool as well)<br />
You are not required to submit the complete project, only copy these files from project folder. Please note if you submit doc or txt file you will be awarded 0 marks. Make sure to write your own VU ID in the assignment file(s) otherwise assignment will not be accepted.<br />
If you do not submit any of the above mentioned file 50% marks per file will be deducted.</p>
<p dir="auto">Objective<br />
The objective of this assignment is to give hands on practice on Ada programming language.</p>
<p dir="auto">Lectures Covered: This assignment covers Lecture # 13 – 15</p>
<p dir="auto">Output.gif has been attached with this Assignment file please observe this file carefully your program’s output must be like this output file.</p>
<p dir="auto">You are required to create an Ada Console Program using GNAT.<br />
Problem Statement:<br />
Create an Ada program which will read a text file and print all the data on the console.<br />
•	Create a text file named as StudentID.txt.<br />
•	Add Name, Student ID and semester in the text file.<br />
•	The program will print all the data line by line on the console.<br />
•	If the file is not found then appropriate error must be printed.<br />
•	If the file is found but no data exist inside the file then “no data inside file” must be printed.<br />
Make sure to write your id on top of the program otherwise your assignment will not be accepted.</p>
<p dir="auto"><img src="https://i.imgur.com/Cnvg9D9.gif" alt="output.gif" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.secnto.com//topic/670/cs508-assignment-2-solution-and-discussion</link><generator>RSS for Node</generator><lastBuildDate>Mon, 08 Jun 2026 23:01:18 GMT</lastBuildDate><atom:link href="https://community.secnto.com//topic/670.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 25 Nov 2019 13:58:25 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to CS508 Assignment 2 Solution and Discussion on Thu, 05 Dec 2019 08:33:57 GMT]]></title><description><![CDATA[<p dir="auto"><a href="/assets/uploads/files/1575534821917-fall-2019_cs508_2_sol-1.rar">Fall 2019_CS508_2_SOL-1.rar</a></p>
]]></description><link>https://community.secnto.com//post/2205</link><guid isPermaLink="true">https://community.secnto.com//post/2205</guid><dc:creator><![CDATA[zareen]]></dc:creator><pubDate>Thu, 05 Dec 2019 08:33:57 GMT</pubDate></item><item><title><![CDATA[Reply to CS508 Assignment 2 Solution and Discussion on Mon, 02 Dec 2019 15:09:06 GMT]]></title><description><![CDATA[<pre><code>with Ada.Text_IO; use Ada.Text_IO;


procedure Main is
 Input, Output : File_Type;
begin
   Open (File =&gt; Input,
         Mode =&gt; In_File,
         Name =&gt; "input.txt");
   Create (File =&gt; Output,
           Mode =&gt; Out_File,
           Name =&gt; "output.txt");
   loop
      declare
         Line : String := Get_Line (Input);
      begin
         -- You can process the contents of Line here.
         Put_Line (Output, Line);
         Put_Line (Line);

      end;
   end loop;
   Close (Input);
   Close (Output);
exception
   when End_Error =&gt;
      if Is_Open(Input) then
         Close (Input);
      end if;
      if Is_Open(Output) then
         Close (Output);
      end if;
end Main;

</code></pre>
]]></description><link>https://community.secnto.com//post/2081</link><guid isPermaLink="true">https://community.secnto.com//post/2081</guid><dc:creator><![CDATA[cyberian]]></dc:creator><pubDate>Mon, 02 Dec 2019 15:09:06 GMT</pubDate></item><item><title><![CDATA[Reply to CS508 Assignment 2 Solution and Discussion on Mon, 25 Nov 2019 14:01:29 GMT]]></title><description><![CDATA[<p dir="auto"><a href="https://youtu.be/Y3NIBdqUCOI" target="_blank" rel="noopener noreferrer nofollow ugc">https://youtu.be/Y3NIBdqUCOI</a></p>
]]></description><link>https://community.secnto.com//post/1904</link><guid isPermaLink="true">https://community.secnto.com//post/1904</guid><dc:creator><![CDATA[zareen]]></dc:creator><pubDate>Mon, 25 Nov 2019 14:01:29 GMT</pubDate></item></channel></rss>