We are here with you hands in hands to facilitate your learning & don't appreciate the idea of copying or replicating solutions. Read More>>

Looking For Something at vustudents.ning.com? Click Here to Search

www.bit.ly/vucodes

+ Link For Assignments, GDBs & Online Quizzes Solution

www.bit.ly/papersvu

+ Link For Past Papers, Solved MCQs, Short Notes & More


Dear Students! Share your Assignments / GDBs / Quizzes files as you receive in your LMS, So it can be discussed/solved timely. Add Discussion

How to Add New Discussion in Study Group ? Step By Step Guide Click Here.

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

 

Total Marks: 20

 

Due Date:  04/06/2015

Instructions

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

Objective

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

Deadline

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

 

Question

 

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 :  ";

   cin>>First;

   cout"Enter Second value :  ";

   cin>>Second;

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

   cin>>operators;

 

   switch(operators)

   {

   case '+':

         Result = First + Second;

         break;

 

   case '-':

         Result = First - Second;;

         break;

 

   case '*':

         Result = First * Second;

         break;

 

   case '/':

         Result = First / Second;

         break;

 

   default:

         cout"Invalid operation: Program terminated." endl;       

     

   }

   coutendl"Result =  " Result endl;

 

getch();

   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

 

Note:

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

Solution submitted through email will also not acceptable. 

=====================================Ended=======================================

 

             For any query about the assignment, contact at CS508@vu.edu.pk

GOOD LUCK

 

+ How to Follow the New Added Discussions at Your Mail Address?

+ How to Join Subject Study Groups & Get Helping Material?

+ How to become Top Reputation, Angels, Intellectual, Featured Members & Moderators?

+ VU Students Reserves The Right to Delete Your Profile, If?


See Your Saved Posts Timeline

Views: 3110

.

+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)

+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)

+ Click Here to Search (Looking For something at vustudents.ning.com?)

+ Click Here To Join (Our facebook study Group)

Attachments:

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.

http://stackoverflow.com/questions/16886982/fixed-point-type-not-mu...

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.

http://stackoverflow.com/questions/16886982/fixed-point-type-not-mu...

RSS

Latest Activity

Shah Mirza updated their profile
10 minutes ago
Usman Mughal added a discussion to the group CS401 Computer Architecture and Assembly Language Programming
1 hour ago
Moureen Max left a comment for hamna
1 hour ago
Moureen Max left a comment for Rubab Amjad
1 hour ago
Moureen Max left a comment for Navid Khan
1 hour ago
Moureen Max left a comment for Anaya
1 hour ago
Moureen Max left a comment for Iqra Tahir
1 hour ago
Moureen Max left a comment for + ! ! ! ! "Sүε∂α"
1 hour ago
Moureen Max left a comment for Mafia Nazir
1 hour ago
Moureen Max left a comment for Muhammad Amir Hamza Shah
1 hour ago
Moureen Max left a comment for mrs ali
1 hour ago
Moureen Max left a comment for soniamalik
1 hour ago

Today Top Members 

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

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

.