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.
Tags:
Please upload solution idea if anyone have.
CS508 Modern Programming Languages Assignment 2 Solution & Discussion Spring 2020
Assignment No. 02 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.
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 – 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.
© 2021 Created by + M.Tariq Malik.
Powered by
Promote Us | Report an Issue | Privacy Policy | Terms of Service
We are user-generated contents site. All product, videos, pictures & others contents on site don't seem to be beneath our Copyrights & belong to their respected owners & freely available on public domains. We believe in Our Policy & do according to them. If Any content is offensive in your Copyrights then please email at m.tariqmalik@gmail.com with copyright detail & We will happy to remove it immediately.
Management: Admins ::: Moderators
Awards Badges List | Moderators Group
All Members | Featured Members | Top Reputation Members | Angels Members | Intellectual Members | Criteria for Selection
Become a Team Member | Safety Guidelines for New | Site FAQ & Rules | Safety Matters | Online Safety | Rules For Blog Post