We have been working very hard since 2009 to facilitate in your learning Read More. We can't keep up without your support. Donate Now.

www.bit.ly/vucodes

+ Link For Assignments, GDBs & Online Quizzes Solution

www.bit.ly/papersvu

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

CS508 Assignment No 02 Spring 2020 Solution & Discussion Due Date: 12-06-2020

InstructionsInstructions

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 is corrupt.The assignment is completely or partially copied from (other student or ditto copied from handouts or internet).Student ID is not mentioned in the assignment File or name of file is other than student ID.The assignment is not submitted in .rar format. 

 Submission detailsFollowing files must be submitted in a single zip or rar file.Code file(.adb file) A .gif file which shows working of your application (For Recording .gif a software named Screentogif is uploaded on LMS, or you can use any other gif recording tool as well)Please note if you submit doc or txt file you will be awarded 0 marks. Make sure to write your own VU ID in the assignment file(s) otherwise assignment will not be accepted.  If you do not submit any of the above mentioned file 50% marks per file will be deducted.ObjectiveThe objective of this assignment is to give students idea on how to implement object oriented concepts in ADA.
Lectures Covered: This assignment covers Lecture # 13 – 17You will develop Ada console application in GNAT IDE. You can also use any online compiler to compile Ada. Problem Statement:As you know that we cannot implement inheritance in Ada directly as there is no concept of class in Ada, we need to use a mix of tagged types and packages.You are required to create a tagged type as person and then another as men, the tagged type men will inherit from person type.The person type has following attributes:Name: StringAge: Integer Gender: Boolean
Functions:And also a function named print() [This function will print all three attributes of type person]The tagged type men have following attributesHeight: floatID: StringFunctions:           This type will also have one function named print() which must print all the attributes of type men and   person as well.When application starts an instance of type men will be created and detail of men will be taken from user input and assigned to men type object after that the added details will be printed on the console screen.


+ 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)


Views: 998

Replies to This Discussion

Please upload solution idea if anyone have.

CS508 Modern Programming Languages Assignment 2 Solution & Discussion Spring 2020


 

Assignment No. 02
Semester Spring 2020

CS508- Modern Programming Languages

Total Marks: 20

Due Date:12 June 2020

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 is corrupt.

·       The assignment is completely or partially copied from (other student or ditto copied from handouts or internet).

·       Student ID is not mentioned in the assignment File or name of file is other than student ID.

·       The assignment is not submitted in .rar format.

Submission details

Following files must be submitted in a single zip or rar file.

·       Code file(.adb file)

·       A .gif file which shows working of your application (For Recording .gif a software named Screentogif is uploaded on LMS, or you can use any other gif recording tool as well)

Please note if you submit doc or txt file you will be awarded 0 marks. Make sure to write your own VU ID in the assignment file(s) otherwise assignment will not be accepted.

If you do not submit any of the above mentioned file 50% marks per file will be deducted.

Objective

The objective of this assignment is to give students idea on how to implement object oriented concepts in ADA.

 

Lectures Covered: This assignment covers Lecture # 13 – 17

You will develop Ada console application in GNAT IDE. You can also use any online compiler to compile Ada.

 

Problem Statement:

As you know that we cannot implement inheritance in Ada directly as there is no concept of class in Ada, we need to use a mix of tagged types and packages.

You are required to create a tagged type as person and then another as men, the tagged type men will inherit from person type.

The person type has following attributes:

·       Name: String

·       Age: Integer

·       Gender: Boolean

 

Functions:

And also a function named print() [This function will print all three attributes of type person]

The tagged type men have following attributes

·       Height: float

·       ID: String

 

Functions:

           This type will also have one function named print() which must print all the attributes of type men and   person as well.

When application starts an instance of type men will be created and detail of men will be taken from user input and assigned to men type object after that the added details will be printed on the console screen.

#CS508 #CS508Assignment2 #CS508Assignment2Solution
CS508 Assignment No. 2 Spring 2020 Solution Demo

CS508 Modern Programming Languages Assignment No. 2 Spring 2020 Solution Demo

Objective
The objective of this assignment is to give students idea on how to implement object oriented concepts in ADA.

Problem Statement:
As you know that we cannot implement inheritance in Ada directly as there is no concept of class in Ada, we need to use a mix of tagged types and packages.
You are required to create a tagged type as person and then another as men, the tagged type men will inherit from person type.
The person type has following attributes:
• Name: String
• Age: Integer
• Gender: Boolean

Functions:
And also a function named print() [This function will print all three attributes of type person]
The tagged type men have following attributes
• Height: float
• ID: String
Functions:
This type will also have one function named print() which must print all the attributes of type men and person as well.
When application starts an instance of type men will be created and detail of men will be taken from user input and assigned to men type object after that the added details will be printed on the console screen.

#CS508
#CS508Assignment2
#CS508Assignment2Solution
#CS508Assignment2020
#CS508SolutionSpring2020
#VU
#VUACADEMY
#Assignment
#ADA
#VUAssignment
#AssignmentSolution
#GNAT
#ModernProgrammingLanguages
#VUACADEMYSOLUTIONS
#CS508Spring2020
#CS508Assignment2Spring2020
#CS508SolutionFIle
#CS508AssignmentNo2Solution
#CS508CompleteSolution
#CS508Pdf
#CS508SolutionLink
#CS508Assignment2SolutionSpring2020

GNAT Studio Download Link :https://mega.nz/file/cB5WDI6K#Hn1aMzgmnY4iUZGlBVKet2MxiZ-Dz0wSRl3WP...

ScreentoGif Download Link : https://mega.nz/file/FJxhWIyS#CiC740f8XkJzYZfUgn32prVBKOxEXSqx1Qz_B...

"Declarations must come before begin" ye error aa rha hai jab single file me compile karen is ko kese thek karen gen??

#CS508 #CS508Assignment2 #CS508Assignment2Solution
CS508 Assignment No. 2 Spring 2020 Complete Solution with Code File

CS508 Modern Programming Languages Assignment No. 2 Spring 2020 Solution by VU ACADEMY

Objective
The objective of this assignment is to give students idea on how to implement object oriented concepts in ADA.

Problem Statement:
As you know that we cannot implement inheritance in Ada directly as there is no concept of class in Ada, we need to use a mix of tagged types and packages.
You are required to create a tagged type as person and then another as men, the tagged type men will inherit from person type.
The person type has following attributes:
• Name: String
• Age: Integer
• Gender: Boolean

Functions:
And also a function named print() [This function will print all three attributes of type person]
The tagged type men have following attributes
• Height: float
• ID: String
Functions:
This type will also have one function named print() which must print all the attributes of type men and person as well.
When application starts an instance of type men will be created and detail of men will be taken from user input and assigned to men type object after that the added details will be printed on the console screen.

#CS508
#CS508Assignment2
#CS508Assignment2Solution
#CS508Assignment2020
#CS508SolutionSpring2020
#VU
#VUACADEMY
#Assignment
#ADA
#VUAssignment
#AssignmentSolution
#GNAT
#ModernProgrammingLanguages
#VUACADEMYSOLUTIONS
#CS508Spring2020
#CS508Assignment2Spring2020
#CS508SolutionFIle
#CS508AssignmentNo2Solution
#CS508CompleteSolution
#CS508SolutionPdf
#CS508SolutionLink
#CS508Assignment2SolutionSpring2020
#CS508AssignmentSolution2
#CS508AssignmentLink

Thanks.

RSS

Latest Activity

Volunteer replied to Miss. Churhail's discussion HIPPOCAMPUS YANI MEMORY!!!
5 minutes ago
Abu Sufyan posted a status
1 hour ago
+M.Tariq Malik replied to +M.Tariq Malik's discussion CS606 GDB No 01 Fall 2020 Solution / Discussion in the group CS606 Compiler Construction
1 hour ago
+M.Tariq Malik replied to +M.Tariq Malik's discussion CS607 Assignment 01 Fall 2020 Solution / Discussion Due Date: 30-11-2020 in the group CS607 Artificial Intelligence
1 hour ago
+M.Tariq Malik replied to +M.Tariq Malik's discussion CS615 Assignment No 01 Fall 2020 Solution / Discussion Due Date: 27-10-2020 in the group CS615 Software Project Management
1 hour ago
Profile IconShahid Iqbal, atta, sania saeed and 13 more joined Virtual University of Pakistan
1 hour ago
+M.Tariq Malik liked Miss. Churhail's discussion cs101 assignmnt solution
1 hour ago
+M.Tariq Malik replied to +M.Tariq Malik's discussion CS101 Assignment 01 Fall 2020 Solution / Discussion in the group CS101 Introduction to Computing
1 hour ago
Profile IconBS MATH and Ata Ur Rehman joined +M.Tariq Malik's group
1 hour ago
+M.Tariq Malik replied to +M.Tariq Malik's discussion MCD401 Assignment 01 Fall 2020 Solution / Discussion in the group MCD401 Camera basics, principles and practices
1 hour ago
+M.Tariq Malik replied to +M.Tariq Malik's discussion CS702 Advanced Algorithms Analysis and Design Assignment 01 Fall 2020 Solution / Discussion in the group CS702 Advanced Algorithms Analysis and Design
1 hour ago
+M.Tariq Malik liked +M.Tariq Malik's discussion CS702 Advanced Algorithms Analysis and Design Assignment 01 Fall 2020 Solution / Discussion
1 hour ago

Looking For Something? Search Here

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

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

.