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

www.bit.ly/vucodes

+ Link For Assignments, GDBs & Online Quizzes Solution

www.bit.ly/papersvu

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

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

.

+ 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

solution please

plz ic ka koi theak solution send kr do ap logo ko allah ka wasta ha plz

plzz koi solution share krdain

Dear mila solution ap ko abi tk k nai 


public class StringVowvels {

public static void main(String[] args) {
String line = "My name is 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 Ahtisham Nawaz");
System.out.println("Total count of vowels:" + vowels);
}
}

write your full name and compile it 

both code and screenshot paste in your solution file 

stay blessed

 

Question no 2 ka solution bhi send kar du please

assignment me diy gy online java compile me ye code run ni kr rha. guide kr dy kindly

AOA Dear Good morning   Please kisi ke pass solution hai to yar chwley na maro send kr do 

solution ideas?

This is first question solution to count vowels of your name, put your name in variable and you are good to go.

http://tpcg.io/xfOdAS

public class StringVowvels {

    public static void main(String[] args) {

        String line = "My name is 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 Ahtisham Nawaz");

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

    }

}

RSS

Latest Activity

Habiba commented on M r . H a a D i . . . ! ! !'s blog post Duffer ;D ...
5 minutes ago
Habiba replied to + M.Tariq Malik's discussion CS506 Current Final Term Papers Fall 2019 (15 to 26 February 2020) & All Solved Past Papers, Solved MCQs & Helping Material in the group CS506 Web Design and Development
20 minutes ago
Mani Siddiqui BS VIII replied to Mani Siddiqui BS VIII's discussion بیٹھ جاتا ہوں جہاں چھاؤں گھنی ہوتی ہے
23 minutes ago
Mani Siddiqui BS VIII replied to Mani Siddiqui BS VIII's discussion مری سادگی دیکھ کیا چاہتا ہوں
23 minutes ago
Mani Siddiqui BS VIII replied to Mani Siddiqui BS VIII's discussion تجھے بھول کر بھی نہ بھلا سکوں ، تجھے چاہ کر بھی نا پا سکوں
24 minutes ago
Mani Siddiqui BS VIII replied to Mani Siddiqui BS VIII's discussion مری سادگی دیکھ کیا چاہتا ہوں
24 minutes ago
Sedra Malik replied to + M.Tariq Malik's discussion CS708 Final Term Papers Spring 2019 (24 August ~ 04 September 2019) & All Solved Past Papers, Solved MCQs & Helping Material in the group CS708 Software Requirement Engineering
26 minutes ago
Sedra Malik joined + M.Tariq Malik's group
26 minutes ago
Habiba replied to + M.Tariq Malik's discussion CS506 Current Final Term Papers Fall 2019 (15 to 26 February 2020) & All Solved Past Papers, Solved MCQs & Helping Material in the group CS506 Web Design and Development
28 minutes ago
Aiman replied to +++A++R+++'s discussion ایک اصول
45 minutes ago
Aiman liked +++A++R+++'s discussion ایک اصول
46 minutes ago
Aiman liked +++A++R+++'s discussion چلتی بس میں نکاح
49 minutes ago

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

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

.