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: 2180

.

+ 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

Zainsha malik and Mian Mahmood are now friends
11 minutes ago
SILA updated their profile
12 minutes ago
Biya and ♦_"Tooba"_♦ are now friends
21 minutes ago
niceperson and Madeha Naqvi are now friends
30 minutes ago
Asad posted discussions
32 minutes ago
кндмөөѕнї +++ replied to ٢٤ دن's discussion ......آج کل کے بچے یہ کبھی نہیں جان پائیں گے کہ
38 minutes ago
+ ! ! ! ! ! ! ! ! dReAm gIr❣❣❣❣❣ updated their profile
1 hour ago
Aisar Karim updated their profile
1 hour ago
Aisar Karim liked Aisar Karim's profile
1 hour ago
Aisar Karim liked Isha Chuhdary's photo
1 hour ago
A.B !!!AWAN!!! liked Asad's discussion تیری جستجو کے حصار سے ...
1 hour ago
A.B !!!AWAN!!! liked + M.Tariq Malik's discussion Moaaz Mid Term Past Solved Papers
1 hour ago

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

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

.