CS508 - Modern Programming Languages Assignment No. 2 Solution Fall 2018 Due Date: January 24, 2018 

Assignment No. 02
Semester: Fall 2018
CS508: Modern Programming Languages
Total Marks: 15
Due Date:
24th January, 2019
Instructions:
Please read the following instructions carefully before 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.
 Assignment is copied (partial or full) from any source (websites, forums, students, etc.)
Note: You have to upload only .doc or .docx file. Assignment in any other format (extension) will not be
accepted and will be awarded with zero marks.
Objective:
The objective of this assignment is to provide hands on experience of:
 concepts of Java language
 evaluation of C++ programming language
For any query about the assignment, contact at CS508@vu.edu.pk
Question 1: [10 marks]
Write a Java program that will count total number of vowels in your Full Name. Place your name in a String
variable. In the output, show your name and total vowels on the screen. After running the program, take
screenshot and paste it in your solution file.
The output should be like this:
My name is Muhammad Umair Mujahid
Total count of vowels: 9
NOTE: To run the program, you can use any Java supported IDE like Apache NetBeans or IntelliJ IDEA. If you
do not have any IDE installed on your system, you can also compile and run online at:
https://www.tutorialspoint.com/compile_java_online.php
Both code and screenshot are mandatory in your solution file; otherwise, zero marks will be awarded.
Question 2: [5 marks]
C++ is one of the most widely used programming languages. It has evolved from C language through a sequence
of modifications and it becomes a combination of Imperative and Object Oriented features. Soon after launch, it
exponentially gains popularity, and now it is one of the most commonly used language even though it is more
than 35 years older!
Enlist any three key points in support of its popularity? Why it’s readily adopted by programming community at
the time of its launch? Briefly write any 3 points.
Best of Luck!

Tags: -, 2, 2018, 24, Assignment, CS508, Date:, Due, Fall, January, More…Languages, Modern, No., Programming, Solution

Views: 124

Attachments:

SPONSORED LINKS

Latest Activities on Virtialians Social Network

Irfan Khan MSCS and Cinderella are now friends
3 hours ago
aisha and Muhammad Mursleen are now friends
11 hours ago
aisha and Shoaib Khan are now friends
yesterday
Wasi Zawar and Izzah Malik are now friends
yesterday
Sid commented on AaBeerα (MBA 2nd sems)admin's blog post ****Jumma Mubarak****
Friday
Sid liked AaBeerα (MBA 2nd sems)admin's blog post ****Jumma Mubarak****
Friday
AaBeerα (MBA 2nd sems)admin posted a blog post
Friday
Irfan Khan MSCS liked kashif Rfaique's discussion Admission
Friday
kashif Rfaique added a discussion to the group M.Sc. in Organizational Psychology
Friday
Farwa Sahar is now a member of Virtualians Social Network
Friday
AaBeerα (MBA 2nd sems)admin replied to AaBeerα (MBA 2nd sems)admin's discussion Issuance of First Voucher to continuing students (Spring, 2019)
Thursday
ٹمبکٹو posted a blog post
Thursday
AaBeerα (MBA 2nd sems)admin liked Zain Ali's discussion Allah behtar Tadbir aor chahat krny wala hai
Thursday
AaBeerα (MBA 2nd sems)admin liked Cinderella's blog post ouqt
Thursday
Zain Ali added a discussion to the group Islam
Thursday
Cinderella posted blog posts
Thursday
BSCS *Admin added a discussion to the group Spring 2019 Semester
Thursday
BSCS *Admin posted a discussion
Thursday
Younas Khan (MBA 02 Year) liked Irfan Khan MSCS's discussion Virtual University of Pakistan (VUP) Semester Spring 2019 Mid-Term Exam From Saturday June 22, 2019
Wednesday
Arooj un nisa liked AaBeerα (MBA 2nd sems)admin's discussion Virtual University opening doors to future jobs
Wednesday

SPONSORED LINKS

© 2019   Created by Irfan Khan MSCS.   Powered by

Badges  |  Report an Issue  |  Terms of Service