Uploading Instructions:: Assignment No. 01 Semester: Spring 2022 CS508 - Modern Programming Languages Total Marks: 20
Uploading Instructions:: Assignment No. 01 Semester: Spring 2022 CS508 - Modern Programming Languages Total Marks: 20
Uploading Instructions:: Assignment No. 01 Semester: Spring 2022 CS508 - Modern Programming Languages Total Marks: 20
01
Total Marks: 20
Semester: Spring 2022
Due Date: 22 June 2022
CS508 – Modern Programming Languages
Please read the following instructions carefully before solving & submitting assignment, otherwise no email
regarding deduction of marks will be entertained.
Uploading Instructions:
You can use a simple Notepad or any other text editor (like Sublime Text, Atom, VS Code etc.) for coding.
For compilation purpose, any online compiler can be consulted, like https://tio.run/#ada-gnat
Make sure to write your own VU Student ID at top using ADA comments.
After completion, copy all the code; it must be a simple text, which should not contain any format or
style.
Paste it in text editor at Student Inline Solution interface and click on save button (for more, please
watch this video: https://youtu.be/QWfefP4sYLo?t=681).
After submit, make sure the submitted code is properly visible and in readable form.
No assignment will be accepted through email.
Note: Do not put any query on MDB regarding this assignment, if you have any query then email at
cs508@vu.edu.pk
GOOD LUCK
1
Assignment No. 01
Total Marks: 20
Semester: Spring 2022
Due Date: 22 June 2022
CS508 – Modern Programming Languages
2
Assignment No. 01
Total Marks: 20
Semester: Spring 2022
Due Date: 22 June 2022
CS508 – Modern Programming Languages
Problem Statement:
Arrays have been an integral part of many high-level programming languages. Like other programming
languages, Ada also supports arrays. You are required to write a program in Ada which will find the
frequency (i.e., count the occurrence) of each unique element present in the array and print them on screen
in reverse order.
Instructions:
3
Assignment No. 01
Total Marks: 20
Semester: Spring 2022
Due Date: 22 June 2022
CS508 – Modern Programming Languages
4 appears 2 times.
8 appears 2 times.
6 appears 2 times.
7 appears 1 time.
Note:
It is required to make sure that the program should count for both integers and characters ( i.e.,
numbers and alphabets). For example, the program must count frequencies of input "5 a 2 b 5 b" as "5
appears 2 times, a appears 1 time, 2 appears 1 time and b appears 2 times". Furthermore, you may use
spaces or commas (,) as separators among input values while taking input from user.
Compiler:
For compilation purpose, you can consult any online compiler, like
https://tio.run/#ada-gnat
Sample Output:
Good Luck