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: 3095

.

+ 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

 Mr.Aadii mane code b likha hy or compile and run b kia hy. or mane handout se nhi dekha kuch b. bcz ye mera subject ni hy I Have completed my study. mane ye assign just ap logon ki help k liay bnayi hy. I'll share Soon.

I also done this assignment bro :-) I get the results

AOA Aadiii Bhai kindly, cases ko ada mein kasy likhna hai help kar dain plz aj exdend date hai....!

Here is complete Solution . Enjoy  kren .

Remember me in your prayers.

Shining Moon Dear Your Program is showing Wrong Output.. see 4*10 is 40.00 not 4.00000+E2 something.. here you have to declare fixed Point decimal float with delta keyword. I hope u understand.

Aadii in which software u run the prog ?

online software  is not working properly :(

At last I get this message.. Zalimooooo dimagh ki Dahi kar di :-( Instructors itni tough Assignments daity k hafta dimagh khapana parta.. Bnda exams ki tyari kary ya assignments

Here E=10. 

jaisay C++ ma output show hti ha waisay hi exact  output show krani ha yahan b Moon.. I asked from instructors.. we know that e = 10 but hexa decimal ma output nai laini. pehlay yahi problem aa raha tha mary sath b.

Ok then you can use Delta for Decimal Fixed Point. 

Ma use kar chukka hu ap b kar lain.. upper ma nay yai btaya ha apko

RSS

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

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

.