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


+ Link For Assignments, GDBs & Online Quizzes Solution


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

Assignment No. 02
Semester: Fall 2018
CS508: Modern Programming Languages
Total Marks: 15
Due Date:
24th January, 2019
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.
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!

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


+ 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



code k screenshot nahi bus result execution ka screenshot maanga hai bus

public class HelloWorld {

public static void main(String[] args) {

String line = "My name is ";

int vowels = 0;

line = line.toLowerCase();

for(int i = 0; i < line.length(); ++i)


char ch = line.charAt(i);

if(ch == 'a' || ch == 'e' || ch == 'i'

|| ch == 'o' || ch == 'u') {




System.out.println("My name is ");

System.out.println("Total count of vowels:" + vowels);



ye code kis software me run krna ha plz jaldi bata de

cmd men

ni name bta dy screenshot send kr deta hun

yar ap ke is code me 8 vowel h 9 q nh a ry
ap String line men bus apna name do ni to ap vowels wrong count ho rhy hain
String line = "Adeela Ali ch"
phir sai aye ga

g phr b 8 aty h 

String line = "My name is Amna Liaqat ch";



String men sirf utny volwels he count hon gy jitny name men hain 

hummmy output wala ni show krwana hummy apny name ka show krwana hai

yar usko chor do

m ny dubara sir ka name likh k b check kiya to bad men teek kiya hai


Latest Activity

zohaib iftikhar replied to zohaib iftikhar's discussion ...* APNY GHARON KO SUFAID MURAGH SY ZEENAT DOO...*
7 minutes ago
zohaib iftikhar liked zohaib iftikhar's discussion ...* APNY GHARON KO SUFAID MURAGH SY ZEENAT DOO...*
7 minutes ago
zohaib iftikhar posted discussions
7 minutes ago
zohaib iftikhar liked zohaib iftikhar's blog post ...* ALLAH PEY B SHAQ HO JATA HAI ...*
14 minutes ago
+M.Tariq Malik liked ╰☆Dr.Economist☆╮'s discussion Account Blocked & want to Check Your Result ( Check this)
31 minutes ago
+M.Tariq Malik liked + "ἠaive Ҿnigma"'s discussion FIN611 All current Final Term papers Fall 2015 at one place from 5th March to 16 March 2015
32 minutes ago
+M.Tariq Malik liked Shanzay's discussion Sab Rasmii Rasmii Batain Hain...!!!
33 minutes ago
+M.Tariq Malik liked Shanzay's discussion Magr Yeh Haar jati hai...
52 minutes ago
+M.Tariq Malik liked afreen tabish's discussion CS504 - Software Engineering - I Quiz No.4 Spring 2013
55 minutes ago
Shahzada Sajid posted a photo
1 hour ago
Munna Bhai MBBS posted videos
1 hour ago
Munna Bhai MBBS posted photos
1 hour ago
Shanzay posted discussions
1 hour ago
balu posted a blog post
1 hour ago
zohaib iftikhar posted a blog post
1 hour ago
+ Abdul Rehman Aทઽα૨i posted a blog post
1 hour ago
Kanwal posted a blog post
1 hour ago
Munna Bhai MBBS posted blog posts
1 hour ago
+M.Tariq Malik liked Sofia_Khan's discussion Need Cs401 GDB SOLUTION
1 hour ago
muhammad salman khan posted a discussion
1 hour ago

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

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