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.

 

Please read all the instructions carefully before attempting the assignment.

You are required to create aC# application Consoleusing Visual Studio.

Problem Statement:

You will declare a new class name as “Student” then you will perform the Operator Overloading for following binary operators:

+ operator

 *operator:

For this you will take

Second last digits and the last digit of your VU id as input.

For example, if your VU id is bc12345678 you will take 7 and 8.

You will write then following functions in class “student:

For + operator overloading1stfunction: concatenate last two digits

Example: Your id is BC12345678

1st function 7+8=78

For * operator overloading2ndfunction: take power of 2nd last digit the times last digit is

Example: your ID is BC12345678

2ndfunction 78=5,764,801

Note: Program must show your own VUID usage.

 

Submission details

Following Files Must be submitted in a single zip or rar file.

·         .C# code file (file name should be your VUID)

·         A .gif file which shows working of your Application (For Recording .gif a software named Screentogif is uploaded on LMS, or you can use any other gif recording tool as well)

You are not required to submit the complete project, only copy these three files from project folder. Please note if you submit doc file you will be awarded 0 marks.

If you do not submit any of the above-mentioned file you will be awarded 0 Marks.

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

.

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

Attachments:

Replies to This Discussion

i also want to know how we can solve this assignment plzz anyone gude 

how to download Visual Studio

Kindly upload the solution 

easy one i'll do this tomorrow. 

plzz soon

cs411 100% correct assignment solution 2019

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace cs411
{
class Program
{
static void Main(string[] args)
{
//for sum
Student std1 = new Student();
Student std2 = new Student();
Student std3 = new Student();

// for *
Student std4 = new Student();
Student std5 = new Student();
Student std6 = new Student();

std3 = std1 + std2;
std6 = std4 * std5;

//Printing Sum
Console.WriteLine("Overloading + Operator Result {0}", std3.concat);


//printing Power
Console.WriteLine("Overloading * Operator Result {0}", std6.raiseToPower);

Console.ReadKey();
}

}

class Student
{
public int secondLast = 7;
public int Last = 8;
public String concat = null;

public double raiseToPower = 0;


public Student() {

secondLast = 7;
Last = 8;
}

public static Student operator *(Student s1, Student s2)
{
Student s3 = new Student();
s3.raiseToPower = Math.Pow(s1.secondLast, s2.Last);
return s3;
}

public static Student operator +(Student s1, Student s2)
{
Student s3 = new Student();
s3.concat= s1.secondLast.ToString() +s2.Last.ToString();
return s3;
}


}
}

// just copy paste the code in your program. 

 IBS thanks for sharing 

100% correct solution 

cs411 assignment 1 solution fall 2019

CS411 Visual Programing  Assignment 1 Solution Fall 2019


 

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace cs411
{
class Program
{
static void Main(string[] args)
{
//for sum
Student std1 = new Student();
Student std2 = new Student();
Student std3 = new Student();

// for *
Student std4 = new Student();
Student std5 = new Student();
Student std6 = new Student();

std3 = std1 + std2;
std6 = std4 * std5;

//Printing Sum
Console.WriteLine("Overloading + Operator Result {0}", std3.concat);


//printing Power
Console.WriteLine("Overloading * Operator Result {0}", std6.raiseToPower);

Console.ReadKey();
}

}

class Student
{
public int secondLast = 7;
public int Last = 8;
public String concat = null;

public double raiseToPower = 0;


public Student() {

secondLast = 7;
Last = 8;
}

public static Student operator *(Student s1, Student s2)
{
Student s3 = new Student();
s3.raiseToPower = Math.Pow(s1.secondLast, s2.Last);
return s3;
}

public static Student operator +(Student s1, Student s2)
{
Student s3 = new Student();
s3.concat= s1.secondLast.ToString() +s2.Last.ToString();
return s3;
}


}
}

output par gif banaooo 

RSS

Latest Activity

+ M.Tariq Malik replied to + M.Tariq Malik's discussion MCM401 Current Mid Term Papers Fall 2019 (14 to 26 December 2019) & All Solved Past Papers, Solved MCQs & Helping Material in the group MCM401 Fundamentals of Public Relations
1 minute ago
+ M.Tariq Malik replied to + M.Tariq Malik's discussion MCM401 Current Mid Term Papers Fall 2019 (14 to 26 December 2019) & All Solved Past Papers, Solved MCQs & Helping Material in the group MCM401 Fundamentals of Public Relations
2 minutes ago
+ M.Tariq Malik replied to + M.Tariq Malik's discussion MCM401 Current Mid Term Papers Fall 2019 (14 to 26 December 2019) & All Solved Past Papers, Solved MCQs & Helping Material in the group MCM401 Fundamentals of Public Relations
3 minutes ago
+ M.Tariq Malik liked + M.Tariq Malik's discussion MCM401 Current Mid Term Papers Fall 2019 (14 to 26 December 2019) & All Solved Past Papers, Solved MCQs & Helping Material
3 minutes ago
+ M.Tariq Malik's 15 discussions were featured
3 minutes ago
+ M.Tariq Malik added a discussion to the group MCM401 Fundamentals of Public Relations
4 minutes ago
Profile IconAmir, Hira rafique, Muhammad Noman and 5 more joined Virtual University of Pakistan
10 minutes ago
+++A++R+++ updated their profile
16 minutes ago
+ ! ! ! ! тαѕнα liked +¢αяєℓєѕѕ gιяℓ's discussion تجارتوں کا رنگ بھی عبادتوں میں آ گیا
24 minutes ago
zohaib iftikhar replied to zohaib iftikhar's discussion ...*...* WAQT MITTI DAL DETA HAI...*...*
49 minutes ago
zohaib iftikhar replied to zohaib iftikhar's discussion ...* MUHABBAT ...*
50 minutes ago
zohaib iftikhar replied to zohaib iftikhar's discussion ...* MUHABBAT ...*
50 minutes ago

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

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

.