We have been working very hard since 2009 to facilitate in your learning Read More. We can't keep up without your support. Donate Now.

www.bit.ly/vucodes

+ Link For Assignments, GDBs & Online Quizzes Solution

www.bit.ly/papersvu

+ Link For Past Papers, Solved MCQs, Short Notes & More

Looking For Something at Site? Search Below

Please discuss


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


Views: 1229

Attachments:

Replies to This Discussion

bhai this is c# , as far as i think we use readline() function to take input from user , what u type is c++ .(cin). which will not run in  c# compiler 

koi to final solution upload kr do

change line cin >> userinput; with following your problem ressolve. but on page 2 another solution has been uploaded.

Console.Write("Hello, {0}", Console.ReadLine());


 

Do change variable name and array name... its a second question answer
and first question answer is already replied by our fellow just you add the reason is
readonly initilized only once we can't used with inilization of the object......... do search google
  1. Create ‘Names’ string array which will contain 10 elements. [2]

             String[] assignment = new String[10];

 

  1. Use For loop to get 10 names from user. [3]

 

for (int i = 0; i < 10; i++)

{

           Console.WriteLine("Please write 10 Name one by one and press enter");

            assignment [i] = Console.ReadLine();

 

        }

 

c. Print Names array using foreach loop. [2.5]

        foreach (string asgn in assignment)

        {

            Console.WriteLine(asgn);

        }

 

d. Get a name and index from user. And replace the name on index (given by

user) with the new name. [5]

Console.WriteLine("Enter Name to replace :");

        String tempname = Console.ReadLine();

        Console.WriteLine("Enter index to replace with :");

        String temp = Console.ReadLine();

 

            int index = Convert.ToInt32(temp);

          

                assignment [index] = tempname;

            Console.WriteLine(assignment [index]);

           

 

e. Now use while loop to print the Names array. [2.5]

            int a = 0;

            while (a < 10)

            {

                Console.WriteLine(assignment [a]);

                a++;

            }

Jazakallah Hu Khair. please confirm have your done all with this code? i am gonna do that but possibly will be needed your help

Tested successfully but in the last after showing replaced index console window go close automatically. but its ok

 

Allah Apko jaza e khair daey.

FIRST QUESTION PLEASE

will you please upload screen shoot ?

why needed screen shot. question 2 ka answer sahi hai,, ap variable name change karen aur use karlaen apnaey assignment maen koi syntax ya logical error nahi hai.

Uploading Instructions:
• Your assignment must be in MS Word format.
• Use this compiler http://ideone.com/ , to compile your code section.
• First paste your code and then paste screen shot of your compiled code.
• Assignment will not be accepted through email.

Will you pleace write here the complete code?

In one compilation form.

Please give me the complete code which need compilation only.

I am confused with these parts of code. where to write which part of code.

Time is too short as you know.

JazakAllah.

RSS

Latest Activity

Muhammad Azeem replied to +M.Tariq Malik's discussion FIN625 GDB No 01 Fall 2020 Solution / Discussion Last Date: 27-11-2020 in the group FIN625 Credit & Risk Management
6 minutes ago
Aden liked hafsa's profile
21 minutes ago
+M.Tariq Malik replied to +M.Tariq Malik's discussion PAK301 Online Quiz No 01 Fall 2020 Solution / Discussion in the group PAK301 Pakistan Studies
22 minutes ago
jawad replied to jawad's discussion Eng501 assignment No 1 Complete and Correct Solution| ENG 501 assignment Solution 2020 by VU help 0 in the group ENG501 History of English Language
28 minutes ago
jawad added a discussion to the group ENG501 History of English Language
29 minutes ago
+M.Tariq Malik replied to +M.Tariq Malik's discussion MGT211 Online Quiz No 01 Fall 2020 Solution / Discussion in the group MGT211 Introduction To Business
30 minutes ago
jawad joined +M.Tariq Malik's group
31 minutes ago
+M.Tariq Malik replied to +M.Tariq Malik's discussion PAK301 Online Quiz No 01 Fall 2020 Solution / Discussion in the group PAK301 Pakistan Studies
32 minutes ago
+M.Tariq Malik replied to +M.Tariq Malik's discussion ISL201 Islamic Studies Assignment 01 Fall 2020 Solution / Discussion in the group ISL201 Islamic Studies
33 minutes ago
+M.Tariq Malik replied to +M.Tariq Malik's discussion MTH501 Linear Algebra Assignment 01 Fall 2020 Solution / Discussion Due Date: 03-12-2020 in the group MTH501 Linear Algebra
37 minutes ago
+M.Tariq Malik replied to +M.Tariq Malik's discussion MTH501 Linear Algebra Assignment 01 Fall 2020 Solution / Discussion Due Date: 03-12-2020 in the group MTH501 Linear Algebra
37 minutes ago
+M.Tariq Malik liked +M.Tariq Malik's discussion MTH501 Linear Algebra Assignment 01 Fall 2020 Solution / Discussion Due Date: 03-12-2020
37 minutes ago

Today Top Members 

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

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

.