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

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!

Share This With Friends......

+ Click Here To Join also Our facebook study Group.

This Content Originally Published by a member of VU Students.

+ Prohibited Content On Site + Report a violation + Report an Issue


..How to Join Subject Study Groups & Get Helping Material?..


Views: 2395

See Your Saved Posts Timeline

Replies to This Discussion


public class StringVowvels {

public static void main(String[] args) {
String line = "Ahtisham Nawaz";
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') {
++vowels;
}
}

System.out.println("My name is Amnina Liaqat ch\nTotal count of vowels:" + vowels);
}
}

uper neechy name change kr k compile kro

mje nh smjh a ri ap bna do

Amna Liaqat 
 bs itna name h lms me is ke hesab se mje screenshoot ley dy plz

My name is Amna Liaqat
Total count of vowels:5

ye a ry h ab

g amna liaqat  apka mslahal hoa k ni

ye ly

Attachments:

thnkx

Please mujhe b samjha dein ta bata dein

RSS

Latest Activity

Profile IconJawwad Haider, Zuwa Malik, Ghazanfar Ali and 4 more joined Virtual University of Pakistan
38 minutes ago
Anu maik mcs2 updated their profile
1 hour ago
Imii khan posted a status
"Work hard in silence let your success be your noise"
2 hours ago
sara updated their profile
2 hours ago
Imii khan posted a status
"Best lesson I have learned in life came from the worst feeling I ever felt in life"
2 hours ago
+ " Go to HEll updated their profile
3 hours ago
+ " Go to HEll replied to + " Go to HEll's discussion Lets celebrate the birthday of our sariyal boongy member Timbaktu.....
3 hours ago
+ 彡JK彡 B.ED 1.5 ❤️ replied to + Տҽհɑɾ Ƙհɑղ +'s discussion !...منافقوں کی بستی میں اپنا بسیرا ہے
3 hours ago

Study Corner For DigiSkills Students

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

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