CS508 Assignment No 2 Solution Spring 2018
Here, I am providing you "Solution of CS-508 Assignment No 2 Due date 28-05-2018
Note: Please don't make exact copy of this document and make Changes in this assignment, write it in your own words always correct any errors if you found. I am not responsible for zero Marking.
Update: If you want to source file in docx format then just visit the link given below to download Solution file of CS508
How to Download the File : Watch video below to see the steps to download file
Instructions
Steps 1: Click at link given above
2: Enter Captcha Code
3: Wait for 8 Seconds
4: Click at Link Generated below the captcha box
5: That's it. You have downloaded
Note: We guarantee you that our site is 100% Malware and virus free so please Please Disabled your Ad-blocker to Download the file from our site..
|
If you still facing any problem then please let me know about your problem regarding downloading file and leave a comment below because your feed back is very important to us to make our website more reliable and useful.
CS508 Assignment No. 2 Solution explanation is given below;
CS 508 Assignment No 2 Solution idea
Solution:
Code are as following!!!
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use
Ada.Integer_Text_IO;
procedure assignment_Solution is
--part 1
stdntID:String:="BC00";
status: String:="fail";
marks : Integer:=0;
type stdent is record
stdntID: String(1..12);
status : String(1..9);
marks : Integer;
end record;
first : stdent;
second : stdent;
--part 2____________________________
type FinalScore is range 10..100;
Marks1 : FinalScore := 50;
--part 2
end__________________________________
begin
first.stdntID := "BC0000000000";
first.status := "pass/fail";
first.marks := 65;
second.stdntID :=
"BC0000000000";
second.status := "pass/fail";
second.marks := 77;
--___________part 1 end
--part
3_______________________________________
Marks1:=Marks1+10;
for Marks1 in Integer range 50..100 loop
if Marks1 >= 50 and Marks1 <= 65
then
put_Line("Marks range is 50-65 ,
pass , needs improvment");
elsif Marks1 >= 65 and Marks1 <=
75 then
put_Line("Marks range is 65-75 ,
pass , Average");
elsif Marks1 >= 75 and Marks1 <=
90 then
put_Line("Marks range is 75-90 ,
pass , Very Good");
end if;
exit when Marks1<=100;
end loop ; end assignment_Solution;
--part 3 end_____________________________________________
<tr><td><br>
Name:
</td>
<td>
<Input type="Text" Name="one" value="" id="one">
</td>
</tr>
<tr><td><br>
Father Name:
</td>
<td>
<Input type="Text" Name="one" value="" id="two">
</td>
</tr>
<tr><td><br>
VIID:
</td>
<td>
<Input type="Text" Name="one" value="" id="three">
</td>
</tr>
<tr>
<td>
</td>
<td>
<input Type="Button" Name="Display" Value="Display" onclick=func() ">
<input type="reset" value="Reset">
</td>
</tr>
</table>
</form>
</div>
<h1 align = "Center"> For more assignment solutoins, quiz and gdb please follow my blog <a href="www.infopalaces.blogspot.com">INFOPALACES</a></h1>
</body>
</html>
NOTE: IF YOU FOUND ANY MISTAKE THEN CORRECT IT PLEASE DON’T MAKE EXACT COPY OF THIS SOLUTION, MAKE CHANGES TO AVOID ZERO MARKING. IM NOT RESPONSIBLE FOR IT.
0 Comments