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.

CS508: Modern Programming Languages
Assignment No. 02 Graded
Semester: Spring 2018 

In this assignment, you have to write and execute ADA program. This ADA program will save records of students of Computer Science. This program will contain 3 parts as described below: 
Part 1: [5 Marks]

Data of each student will be StudentID, Marks, and Status (Pass/Fail). Use appropriate data type for these attributes.
The record should be used to save student data and you are required to initialize records of 2 students only by assigning proper values. While initializing, StudentID should be your VU Roll Number in both records. For Marks, and Status field, use arbitrary values.

Part 2: [2 Marks] 

After completing Part 1, define your own type by the name of FinalScore. Its range should be from 50 to 100. After that, create a variable Marks1 of FinalScore data type.

Part 3: [8 Marks] 

After completing Part 2, initialize Marks1 with 50 and then begin a loop. During each iteration of the loop, increment the value of Marks1 by 10. Following output should be shown in each iteration:
      If Marks1 is greater than or equal to 50 and less than or equal to 65, the output will be:      Marks range is 50-65, PASS, Needs Improvement
      If Marks1 is greater than 65 and less than or equal to 75, the output will be:      Marks range is 65-75, PASS, Average
      If Marks1 is greater than 75 and less than equal to 90, the output will be:     Marks range is 75-85, PASS, Very Good


After completing the program, run the code in gnatmake 8.1.0 [see Note below], take the screenshot, and paste it in your solution file.
Your solution file must be a single Word file (.doc or .docx) containing the following:
1)Complete code written in Word [you can use Consolas font for enhancing the readability of the code]
2)Output screenshot (take multiple screenshots by scrolling appropriate area if your code and output window do not fit in one screen) 



Read more at https://www.vu-lms.tk/2018/05/cs508-assignment-no-2-solution-and.ht...

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

.

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

Replies to This Discussion

plzzz help us..

to much short time...

then share it plz

plzzz share the code...

dear iffah plz share the code....time is too short ......

Iffah  plzzzzzzzzz share the code...

Friend Share your code please

check last comment, I've shared it

help us we have no time

plzzz share the code

here's the complete code guys... chill

n remember me in ur prayers 

with Ada.Text_IO; use Ada.Text_IO;

with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;

procedure jdoodle is

 type Boolean is (Fail, Pass);

 type student is record

  StudentID:String(1..11);

  Marks:Natural;

  Status: Boolean;

 end record;

 Student1: student;

 Student2: student;

 type FinalScore is range 50..100;

 Marks1: FinalScore:=50;

begin

 student1.studentID:= "BC000000000";

 student1.marks:=95;

 student1.status:= Pass;

 student2.studentid:= "BC000000000";

 student2.marks:=60;

 student2.status:= Pass;

 Put("First Student");

 New_Line;

 Put("Student ID is ");

 Put(student1.studentid);

 New_Line;

 Put("Student Marks are");

 Put(student1.marks);

 New_Line;

 Put("Student is "& Boolean'image(student1.status));

 New_Line;

 Put("Second Student");

 New_Line;

 Put("Student ID is ");

 Put(student2.studentid);

 New_Line;

 Put("Student Marks are");

 Put(student2.marks);

 New_Line;

 Put("Student is "& Boolean'image(student2.status));

 New_Line;

 for M in 50..100 loop

  if Marks1>=50 and Marks1<=65 then

   Put_Line("Marks range is 50-65, PASS, Needs Improvement");

  end if;

  if Marks1>=65 and Marks1<=75 then

   Put_Line("Marks range is 65-75 , PASS, Average");

  end if;

  if Marks1>=75 and Marks1<=90 then

   Put_Line("Marks range is 75-85 , PASS, Very Good");

  end if;

  Marks1:=Marks1+10;

  exit when marks1=100;

   end loop;

end jdoodle;

Thaaanxx JazaKallah

Thanku So Much

RSS

Latest Activity

Muhammad Umar Nazir posted a status
"MCM301 - Communication skills MidTerm 2019 Critical Listening Effective Oral Speech Effective Communication skills important foe employe"
24 minutes ago
Rabia kiran left a comment for Mahmood Rana
38 minutes ago
abdul ghafoor replied to + M.Tariq Malik's discussion PSY101 Current Mid Term Papers Fall 2019 (14 to 26 December 2019) & All Solved Past Papers, Solved MCQs & Helping Material in the group PSY101 Introduction to Psychology
44 minutes ago
zoobi noor commented on Zainab Mughal's blog post LAMBA DHAGA AUR LMBI ZUBAN
47 minutes ago
zoobi noor liked Zainab Mughal's blog post LAMBA DHAGA AUR LMBI ZUBAN
47 minutes ago
zoobi noor liked +!!!StRaNGeR!!! +'s discussion ﺗﺮﺍ ﻧﺎﻡ ﺗﮏ ﺑﮭﻼ ﺩﻭﮞ، ﺗﺮﯼ ﯾﺎﺩ ﺗﮏ ﻣﭩﺎ ﺩﻭﮞ
48 minutes ago
zoobi noor liked +¢αяєℓєѕѕ gιяℓ's discussion ٹی وی پر ڈرامہ چل رہا تھا
50 minutes ago
Desert11 Hakru commented on + M.Tariq Malik's group MGMT615 Transportation & Logistics Management
50 minutes ago
Imran bs(i.t) updated their profile
54 minutes ago
Desert11 Hakru joined + M.Tariq Malik's group
58 minutes ago
+ "αяsαℓ " Ќąƶµяɨ •" replied to + " J ɨ y α •" ⋆'s discussion Let's celebrate the Birthday of our Beloved Mod + "αяsαℓ " Ќąƶµяɨ •"
1 hour ago
+ "αяsαℓ " Ќąƶµяɨ •" replied to + " J ɨ y α •" ⋆'s discussion Let's celebrate the Birthday of our Beloved Mod + "αяsαℓ " Ќąƶµяɨ •"
1 hour ago

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

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

.