Modern Programming Languages (CS508)
Assignment No. 3
Total Marks: 20 Dead line: 29th Nov, 2012
Purpose of Assignment:
Intended purpose of this assignment is to give students an exercise that can facilitate them
while working in any professional software development environments. After attempting
this assignment students will be able to:
• Familiarize with the core concepts of a programming language ‘ADA’ which is
used in a wide variety of Military systems.
• Learn the language basic syntax and purpose.
• Students will get comprehensive understanding of at which different military
areas this language can be used.
IdevSpot-Solutions for Software Companies
Consider yourself as a part of Software Development team in IdevSpot that provides a
range of innovative and reliable eBusiness softwares for companies intending to start
their own online business and earn profits by offering membership services.
Idevspot is specifically designed for software markets, It’s scalable and integrated
solution includes a full-featured, modular and secure eCommerce platform, a partner
order and revenue management system, as well as a constantly expanding worldwide
Idevspot market-proven eCommerce solution enables software companies to rapidly
embrace industry shifts, reach customers effectively, and adopt new business models with
a view to optimizing profitable revenue across online and offline channels.
Pakistan Air Force gives a contract to Idevspot to develop a software application named
IdevSpot-PAF-Rentals. This software will create a directory of apartments, houses and
accommodations given to PAF staff members. PAF authorities will be able to visually
search location of apartments and houses on Google Maps and toggle 3D Google Earth
view. In addition, PAF authorities will also be able to search by category and specific
criteria, such as location, code number, etc. The main concerns of PAF are:
• Highly reliable software
• Avoids error-prone notation
• Concurrent programming support
IdevSpot-Software Development team has decided to use Ada language to develop this
application. Now being a part of this project answer the following questions:
A. Suppose (a+b)*(x-y) is the formula to calculate the location of apartment or
house. Now you as a programmer write a complete program in Ada to solve this
formula. Note that each mathematical operator (such as +) should be solved in a
separate subprogram. 
B. Suppose to save apartment or house information of any staff member, you are
using records of Ada. You as programmer write a program in Ada to store the
records of staff member. The record should contain staff member’s name, CNIC,
rank, apparment_Id, and apartment_ Address. Add one complete record for a staff
member in your application. And also print that record. The use of access type is
must. Use Put_Line(Integer'Image()); command to print the values of Integer
type variables. The Output should like this: 
Name is: ABC
CNIC is: 3
Rank is: Captain
ApparmentId is: 1
ApartmentAddress is: FlatNo.4
MAIN ni srf ik question submit ki question 2 ,,,qk pehlay question ki samaj he nahi ae k us mai karna kya hai question ki samaj aty to kuch karty pir im so upset kisi ni help b nahi ki k us question ka matlab kya ta...
@madmoney question 2 mai help chahye to batao us mai tory bht kar sakty hu mgr q1 ki to question ka maltab he nahi ata sir ka matlab kya hai us mai
i think q1 mai apnai aisa formula bana hai kai ap kisi b apartment ki location bata sako
es kai andar ap nai functions sai kam laina hai jaise google earth quake or google map location ko trase karta hai ab samaj aai amna apko
@naumaan thx mgr ab mai ni only one question submit kar li hai ab time nahi k ab ye question karu mera abhi ik assignment or b rehta wo kar rahy hu cs402 ka wo b itna fazool hai k nahi horaha hai....sab itnay mushkil assignment ditay hai o sikatay wo nahi hai bas pir search kartay rehna parta hai o us din lecture b miss hojatay hai assignmt ki waja se o ik subject to nahi hota sab k ik k bad ik assignment hota hai insaan sara din rath b baeta rahay to na assignmt khatam hotay na lecture puray ho patay hai
dear AMna can u plz tell me that how to solve 2nd question :(
Agreed with you cs402 is a easy subject only if your basis are strong. i got 77% marks init. so be easy in first question i find a distance formula (please search this word on goog to see formula). i convert it into above q1 string you should do this and submit.
or project konsa sai apka mera miscall wala hai.
or han q2 aise he hona hai na
type PAFrecords is record
etc.............. plz reply must
can u give idea solution of 1st question plz
ye kiya he ?
plz plz plz 1st ya 2nd question jo ap ne solve kiya hai share keriye ta k idea ho ske plz :( :( :( :(
rosee plz see handout page no.54 first line is starting to make records in ADA..