Latest Activity In Study Groups

Join Your Study Groups

VU Past Papers, MCQs and More

We non-commercial site working hard since 2009 to facilitate learning Read More. We can't keep up without your support. Donate.

Assignment No. 02 (PPT Audio)
SEMESTER Spring 2015
CS508- Modern Programming Languages


Total Marks: 20


Due Date:  04/06/2015


Please read the following instructions carefully before solving & submitting assignment:

It should be clear that your assignment will not get any credit  if:

  • The assignment is submitted after due date.
  • The submitted assignment does not open or file corrupt.
  • The assignment is full or partially copied from (other student or ditto copy from handouts or internet).
  • Student ID is not mentioned in the assignment File or name of file is other than student ID.

Uploading instructions

Your submission must include:


  • Assignment should be in .ppt or pptx format.
  • Save your assignment with your ID (e.g. bx020200786.ppt).
  • Assignment submission through email is highly discouraged


The objective of this assignment is

  • To give some comparison, knowledge for syntax of Ada programming languages. It will also enable students how write simple programs in Ada programming language.



Lectures Covered: This assignment covers Lecture #  13-17


Your assignment must be uploaded/submitted at or before 04/06/2015.




Ada is one of the Standardized and strongest programming language and has rich set of operators. Consider the following C++ code and write the equivalent code in Ada programming language to get the similar results by using the variables and constructs.                                                                                                                                              


#include <iostream>

#include <conio.h>

using namespace std;


int main()


   float First, Second, Result;

   char operators;

   cout"Enter First values :  ";


   cout"Enter Second value :  ";


   coutendl"Enter any operator like +, -, /,* : ";





   case '+':

         Result = First + Second;



   case '-':

         Result = First - Second;;



   case '*':

         Result = First * Second;



   case '/':

         Result = First / Second;




         cout"Invalid operation: Program terminated." endl;       



   coutendl"Result =  " Result endl;



   return 0;



Guidelines :

Ø  You are required to submit your solution as power point presentation with audio recording (ppt or pptx).

Ø  Use the template for solution that is attached with assignment file.

Ø  The total time for audio recording should not exceed 4 minutes.

Ø  Make sure that your recorded voice is clear before submission on LMS.

Ø  If audio is unclear or corrupt, then zero markswill be awarded.

Ø  Record your presentation as given in demo video attached with assignment. For MS-Office 2003, watch “Audio Narration Recording Office 2003” while in case of Office 2007 follow “Audio Narration Recording Office 2007”.

Ø  If you are using Office 2010, then save your solution file with “Save as type”= “PowerPoint 97-2003 Presentation”.

Ø  On first slide write your name, VU-ID and version of MS-Office you are going to use.

Ø  In rest of the slides, show your solution with audio explanation in a step by step fashion.

Ø Moreover, don’t forget to record your name and VU-ID on the very first slide



Solution submitted in MS Word, PDF, Image or any other format will not acceptable.

Solution submitted through email will also not acceptable. 



             For any query about the assignment, contact at



Views: 3253


Replies to This Discussion

Bhai g ye meri Assignment ni hy. me just ap logon ki help k liay code likh k dia hy. Ap to gusa he kr gay ho 

mari jan app wrong output wala code yahan dal kar confuse kar rahy hain students ko apka to ya subject ha nai but jin ka ha wo latak jain gay apki help daikh k.. agr help karni ha to sahi tariqay say karo.. anyhow well try keep it up..

hahaha bs baten kr lo help na krna kisi ki. confuse to ap khud kr rhy ho students ko. correct solution ko wrong keh k. ap is code ma se single line of code b wrong prove kr k dekha do. 

or 2nd ye subject mane parha hua hy BSCS ma itna b unknown ni hy ye subject mery liay. hm ne b assignment ki the. so please student ko ya to khud code dy do jo ap ne right likha hy ya un ko is code se help leny do confuse na kro. 

me waiting ur reply.

or jis bat ka ap issue bna k is code ko wrong keh rhy hen wo as such koi issue ni hy. Here is my old assignment solution and sir gave me full marks there is no problem with E. every knows about E and Sir also. and it is default output of Ada.

Float main E ana koi ghalat cheez nahi hai.. its fine. float or double values zyada bits ki hoti hain i think 32 and 64 respectively.

so Shining moon ka solution theak hai.

mazeed clarifcation k liye online converter ka result dekh lain attatched image main 

Mr.Aadii  I think U did not use GNAT before. This output iz absolutely correct. Its problem with GNAT not in code of + §ђȋήȋήğ ஜ๏๏ή + . 

U should search about this problem of GNAT from net. Check the link below, I think u wll get ur answer.

shine bro coding ms word ma to lekh kar send to kar do plz abi

IDE Adagide k sath Gnat Compiler use kiya ha peace

dobara Install Kar lain

program compile successfully but how to run it as i run it in executable dir  but the run window is empty  i didnot understand

Muhammad Ibrahim Bhai agr ap Gnat compiler use kar rahy hain to us k sath hi Adagide IDE b download kar k install kar lain choti c file ha 7MB ki. phir Adagide ma apna code likh kar compile and then run karain.

Mr.Aadii  I think U did not use GNAT before. This output iz absolutely correct. Its problem with GNAT not in code of + §ђȋήȋήğ ஜ๏๏ή + 

U should search about this problem of GNAT from net. Check the link below, I think u wll get ur answer.


© 2022   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service