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
kis ka project mobile miss call wala hy????
plzzz share solution ..both questions are too much difficulkt ..
plz tell me records ko show/ print kaise karwana hai i m confused. help me
we have not to change the formula. we have to implement this formula in ada language. be simple and precise
Amna! in which format we have to submit assignment? .doc or compiled file?
what i am being done is.
put_line("Name is: ");
staffrecord is my type name which i used. And this assignment should submit in .doc format. dont try to type code is language editor. it dont needed
Submit your Assignment No. 3 in a two separate notepad files. Those who have already submitted their assignments can upload new updated noted pad files.
procedure <Function name> is
Put_Line("Type your desired text");
end <function name>
How to start and end program please read lecture handouts. there is record given how to record data, exactly like that format make staff member records.
Please see page # 54 for records defination and programming style
please see page # 55 for code and access type.
this assignment doesnt need to compile. Type it on doc format and submit.
All written in page # 54 & 55 i typed according to the assignment need.
and used put_Line(); command for output becuase in hello world program sir used this command to print hello world strings.
put_line(Integer;image()); i dont understand this statement what does it means?
to print integer data type we use this command
but why only this type. what is purpose. i am not gonna disscuss on it but i dont understand. i print integer with same put_line(); command which i used for every datatype printing
it is by default. predefined in language. otherwise it will deduct your marks
for more assistance visit http://www.functionx.com/ada/Lesson02.htm