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
Semester: Fall  2016
Modern Programming Languages – CS508

 

Total Marks: 20

 

Due Date: Dec. 06, 2016

Lectures Covered: 13 to 17.

 

Objectives:

            Understand and get hands on experience of:

  • Ada GIDE programming tool for Ada language
  • Package/ Enumeration, Array, Loop, Switch-case in Ada Language

 

Instructions:

Please read the following instructions carefully before submitting assignment:

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

 

  • The assignment is submitted after due date.
  • The assignment is submitted via email.
  • The assignment is copied from Internet or any other student.
  • The submitted assignment does not open or file is corrupt.
  • It is in some format other than .adb (Ada Language Code File).

 

Note: All types of plagiarism are strictly prohibited.

 

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

 

 

 

1. You are required to write a program in Ada programming language which will get the name of Fruit from user and display its price on screen.

 

 

Assignment Instructions:

You are required to consider following fruits in your program.

Apple, Grapes, Banana, Pineapple, Pomegranate, Mango, Cherry, Melon, Strawberry, Orange and Peach.

  • If the selected fruit is Apple, Pineapple, Pomegranate or Grapes then price should be 200.
  • If the selected fruit is Banana or Mango then price should be 150.
  • If the selected fruit is Cherry, Strawberry or Orange then price should be 100.
  • For all other fruits the price should be 50.

 

Hints: You should use array to save the names of fruits. Use switch case to match user input (fruit name) with fruits saved in array. Use the loop to repeat this process again and again as shown in output screen.

 

 

 

 

 

 

 

Output Screenshot:

 

 

Assignment Submission Instructions:

For detail regarding programming tool for Ada language see announcement. Write your program in given tool and submit .adb file from your LMS account.

As you know, the procedure name in Ada code and Ada program’s file name should be same. So use Main for procedure and file name. As showing in below screen shot.   

Please note that due date of assignment will not extend, so do not wait for last date and submit your solution as quickly as possible.

Due Date: Tuesday, December 06, 2016.

+ 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: 3914

.

+ 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

End name ghalat hi ap ka........or start name b

kesa theak karu usa

start name or end name (main) rkhna hi ....or save main.adb sy krna hi

program ka or output ka screen shot dena ha kia ?

ya bata da program kesa submit karwana ku ka ma to online compile kia ha

out put main jo space a rahy hain en ka kia karna hai
matlib jaha price a rahe hai es say pahly space ayti kafi wo kasy khtm ho ge

Dear just code wali file submit karni hy ya phir screen short b send karna hy??

RSS

Latest Activity

Alone Struggler replied to Alone Struggler's discussion Kia hum tehzeeb-yafta qaum hain???
1 second ago
Muhammad Hamza Mehmood joined + M.Tariq Malik's group
1 minute ago
Profile IconWaqas, Abdul Hasib and 7 other members joined + M.Tariq Malik's group
3 minutes ago
Zaheer Bashir replied to Muhammad Sarfraz's discussion FIN630 - Investment Analysis & Portfolio Management Fall 2019 Assignment Solution Idea in the group FIN630 Investment Analysis & Portfolio Management
3 minutes ago
Abdul Hasib replied to Muhammad Sarfraz's discussion FIN630 - Investment Analysis & Portfolio Management Fall 2019 Assignment Solution Idea in the group FIN630 Investment Analysis & Portfolio Management
8 minutes ago
vu joined + M.Tariq Malik's group
16 minutes ago
vu joined + M.Tariq Malik's group
17 minutes ago
Arslan Mushtaq replied to + M.Tariq Malik's discussion CS602 Assignment No 03 Fall 2019 Solution & Discussion Due Date: 22-01-2020 in the group CS602 Computer Graphics
20 minutes ago
Abdul Hasib replied to Muhammad Sarfraz's discussion FIN630 - Investment Analysis & Portfolio Management Fall 2019 Assignment Solution Idea in the group FIN630 Investment Analysis & Portfolio Management
34 minutes ago
Faiza liked Dilawar's blog post DAUGHTERS
42 minutes ago
+ ! ! ! ! QueeN ! ! ! ! + commented on + ! ! ! ! PsyChO ! ! ! ! +'s blog post hell true...
46 minutes ago
+ ! ! ! ! QueeN ! ! ! ! + liked + ! ! ! ! PsyChO ! ! ! ! +'s blog post !!!!Doob k Mar jao!!!!
48 minutes ago

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

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

.